Commit 486d791b by Finley Ge Committed by GitHub

fix: extract node can not extract when using tool-calling-able model. (#5555)

parent 8e77060f
...@@ -248,8 +248,10 @@ const toolChoice = async (props: ActionProps) => { ...@@ -248,8 +248,10 @@ const toolChoice = async (props: ActionProps) => {
temperature: 0.01, temperature: 0.01,
messages: filterMessages, messages: filterMessages,
tools, tools,
tool_choice: { type: 'function', function: { name: agentFunName } } tool_choice: { type: 'function', function: { name: agentFunName } },
toolCallMode: 'toolChoice'
} as const; } as const;
const { const {
answerText: text, answerText: text,
toolCalls, toolCalls,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment