Skip to content

Conversation

undingable0
Copy link

Fix the preprocess_fncall_maessages function to address the issue of escape character errors in messages.

针对issue中提出的 NousFnCallPrompt 类的 preprocess_fncall_messages 函数会错误地构造 messages 的问题,解决了二次转义带来的错误,防止 preprocess_fncall_messages 对输入 functions 作出的错误修改,将 json 字符串化之后的 tool_descs 进行反向转义解码,使输出 messages 与函数输入保持一致。

Fix the preprocess_fncall_maessages function to address the issue of escape character errors in messages
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