SongSongK
SongSongK
> > 根据 openai 官方,fc 已经弃用了。 > > 经过我自己的测试,我发现当使用chatGLM3的fc功能时需要将extract.ts和classifyQuestion.ts中的 response?.choices?.[0]?.message?.tool_calls?.[0]?.function?.arguments || '{}' 替换为 response?.choices?.[0]?.message?.function_call?.arguments || '{}' 才可使用,否则会一直返回空字段,可能chatGLM3返回的response的json结构与openai的不同,不知作者能否将这个小适配加入到工程中 @c121914yu 支持这个功能了吗,我试了下 ChatGLM3 tools调用解析还是不太正常。
> > 这个配置就会报错 > > 一样的配置,我用这个测试正常: > > ```python > import openai > > tools = [{ > "type": "function", > "function": { > "name": "get_current_weather", > "description": "获取当前天气", >...