old-agentic-v1^2
Travis Fischer 2023-05-23 23:36:42 -07:00
rodzic 161e1575df
commit a1fbc7b8ec
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -199,7 +199,14 @@ export class OpenAIChatModelBuilder<
: z.object(this._options.output)
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({
role: 'system',