kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
161e1575df
commit
a1fbc7b8ec
|
@ -199,7 +199,14 @@ export class OpenAIChatModelBuilder<
|
||||||
: z.object(this._options.output)
|
: z.object(this._options.output)
|
||||||
|
|
||||||
const { node } = zodToTs(outputSchema)
|
const { node } = zodToTs(outputSchema)
|
||||||
const tsTypeString = printNode(node)
|
const tsTypeString = printNode(node, {
|
||||||
|
removeComments: true,
|
||||||
|
// TODO: this doesn't seem to actually work, so we're doing it manually below
|
||||||
|
omitTrailingSemicolon: true,
|
||||||
|
noEmitHelpers: true
|
||||||
|
})
|
||||||
|
.replace(/^ /gm, ' ')
|
||||||
|
.replace(/;$/gm, '')
|
||||||
|
|
||||||
messages.push({
|
messages.push({
|
||||||
role: 'system',
|
role: 'system',
|
||||||
|
|
Ładowanie…
Reference in New Issue