Skip to content

fix(llm):修复深度思考bug:获取工具类json拼接问题#353

Open
ehgptnew-alt wants to merge 1 commit intojd-opensource:data_agentfrom
ehgptnew-alt:data_agent_bugfix
Open

fix(llm):修复深度思考bug:获取工具类json拼接问题#353
ehgptnew-alt wants to merge 1 commit intojd-opensource:data_agentfrom
ehgptnew-alt:data_agent_bugfix

Conversation

@ehgptnew-alt
Copy link

  • 避免直接覆盖 function 对象,造成arguments重复拼接问题
image

- 避免直接覆盖 function 对象,造成arguments重复拼接问题
@ehgptnew-alt
Copy link
Author

这里存在问题 currentToolCall.function 本来是 null , toolCall.function 赋值给 currentToolCall.function 后 , currentToolCall.function.arguments 也被赋值了,造成了 currentToolCall.function.arguments 内容重复拼接。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant