chatgpt-on-wechat
chatgpt-on-wechat copied to clipboard
fix:工具调用(例如FastGPT等)时返回reply.content为数组时报错的问题
当调用FastGPT等OpenAI兼容接口进行工具调用时,返回的reply.content为数组,造成can only concatenate str (not "list") to str报错。
增加了判断逻辑,检测到数组时,先将其合并为string。
相关issues: https://github.com/zhayujie/chatgpt-on-wechat/issues/2111 https://github.com/zhayujie/chatgpt-on-wechat/issues/2131 https://github.com/zhayujie/chatgpt-on-wechat/issues/2137 https://github.com/zhayujie/chatgpt-on-wechat/issues/2274 https://github.com/zhayujie/chatgpt-on-wechat/issues/2275