You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
NaiveteYaYa
changed the title
Issue: <Title for brief intro about this issue. 'Issue: ' prefix> 如何结合swarm。 利用qianfan openai 总是报错。
如何结合swarm。 利用qianfan openai 总是报错。
Nov 27, 2024
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"])
Issue you'd like to raise.
No response
Suggestion:
No response
The text was updated successfully, but these errors were encountered: