Open NaiveteYaYa opened 5 days ago
File "/xxx/lib/python3.11/site-packages/qianfan/extensions/openai/adapter.py", line 168, in openai_base_request_to_qianfan for tool in tools: TypeError: 'NoneType' object is not iterable
这个问题是 extentions/openai/adapter.py
if "tools" in openai_request: qianfan_request["functions"] = [] tools = openai_request["tools"] for tool in tools: if tool["type"] == "function": qianfan_request["functions"].append(tool["function"])
没有判断 tools 是否为None 造成的
感谢您的反馈,我们会对这个问题进行分析
Issue you'd like to raise.
No response
Suggestion:
No response