fuzhengwei / fuzhengwei/WaLiCode
responses协议配置后无法正常使用
- Dominant language
- No language data
- Stars
- 133
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
我的环境
电脑;window 10
版本;v0.6.2
模型;agnes-2.0-flash
问题描述
用walicode访问chat/completions协议的模型都正常,每次访问responses协议的模型(包括中转站的responses协议gpt模型和waliapi代理的responses协议模型)都提示“与 AI 通信出错”之类的错误。
与 AI 通信出错,请稍后重试。
Error: ❌ API Error (502): All channels failed for model agnes-2.0-flash after 1 attempt(s): agnes-ai: {"error":{"message":"***.BadRequestError: OpenAIException - Failed to deserialize the JSON body into the target type: tools[0]: missing field function at line 1 column 1707","type":"upstream_error","param":"","code":"422"}}
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce on Windows 10 with v0.6.2 using the responses protocol and the agnes-2.0-flash model, then compare its outgoing request with the working chat/completions request. Inspect the tools[0] JSON reported by the upstream error; done means responses requests no longer fail with the missing function field and receive a normal response.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100