mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Feat/update ollama for function calling (#2892)
update ollama for function calling
This commit is contained in:
+2
-1
@@ -71,7 +71,8 @@ class StructuredOutputParser implements INode {
|
||||
const autoFix = nodeData.inputs?.autofixParser as boolean
|
||||
|
||||
try {
|
||||
const structuredOutputParser = LangchainStructuredOutputParser.fromZodSchema(z.object(convertSchemaToZod(jsonStructure)))
|
||||
const zodSchema = z.object(convertSchemaToZod(jsonStructure)) as any
|
||||
const structuredOutputParser = LangchainStructuredOutputParser.fromZodSchema(zodSchema)
|
||||
|
||||
// NOTE: When we change Flowise to return a json response, the following has to be changed to: JsonStructuredOutputParser
|
||||
Object.defineProperty(structuredOutputParser, 'autoFix', {
|
||||
|
||||
Reference in New Issue
Block a user