-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Azure OpenAI 出现 400 Invalid parameter 错误 #193
Comments
Title: [Bug] 400 Invalid parameter error occurs in Azure OpenAI |
我又花了半天时间调查该问题,发现当模型名为 |
I spent another half day investigating the problem and found that the problem must occur when the model name is |
相关问题已经提交到了 one-api 项目,可以关注该 issue:songquanpeng/one-api#1019 |
描述错误
当尝试在聊天中使用工具时出现
400 Invalid parameter
错误,猜测是与Azure对工具调用的API格式变动有关。复现步骤
gpt-4-1106-preview
模型,使用 one-api 程序反代的 Azure OpenAI 端点,Azure API 版本为2024-02-15-preview
或2023-12-01-preview
时均能稳定复现400 Invalid parameter: messages with role 'tool' must be a response to a preceding message with 'tool_calls'.
。预期行为
根据最新的Azure OpenAI API指南处理新的
tools
和tool_calls
参数部署方式
桌面端(请提供以下信息):
程序版本
附加日志
发送如下请求
报错如下:
详细信息请见:Azure OpenAI服务中的函数调用。
The text was updated successfully, but these errors were encountered: