Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:工具调用(例如FastGPT等)时返回reply.content为数组时报错的问题 #2304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zhenyi-Wang
Copy link

@Zhenyi-Wang Zhenyi-Wang commented Sep 16, 2024

当调用FastGPT等OpenAI兼容接口进行工具调用时,返回的reply.content为数组,造成can only concatenate str (not "list") to str报错。

增加了判断逻辑,检测到数组时,先将其合并为string。

相关issues:
#2111
#2131
#2137
#2274
#2275

@FEEHarrison
Copy link

优秀

@Zhenyi-Wang
Copy link
Author

没办法,两个项目的灰色地带,只好自己改了。。😂

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.

3 participants