Skip to content
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

工具调用报错:unknown_parameter Unknown parameter: 'messages[2].tool_calls[0].index'. #1253

Closed
6 of 7 tasks
vary opened this issue Apr 19, 2024 · 6 comments
Closed
6 of 7 tasks
Labels
bug Something isn't working

Comments

@vary
Copy link

vary commented Apr 19, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: 4.7.1

问题描述
使用工具调用时报错:unknown_parameter Unknown parameter: 'messages[2].tool_calls[0].index'.看起来是OpenAI的接口在tool_calls中不支持index字段
复现步骤
使用工具调用连接获取当前时间,如图所示,然后问几点了,就会报错,刚开始使用oneapi报错,切换成OpenAI官方的地址后也报同样的错误
预期结果
能够正常使用工具调用
相关截图
image

@vary vary added the bug Something isn't working label Apr 19, 2024
@hd19820806
Copy link

mark 同样问题 而且发现3.5的api比4.0的更不容易报错,但是回复质量太堪忧

@vary
Copy link
Author

vary commented Apr 19, 2024

是的,最新的gpt-4-turbo出问题的概率最大

@c121914yu
Copy link
Collaborator

是的,最新的gpt-4-turbo出问题的概率最大

gpt4,直接用官方接口也报错,不知道为啥。

@vary
Copy link
Author

vary commented Apr 21, 2024

image tool_calls返回里有index,但是根据报错提示感觉是在请求的时候不让带index

是的,最新的gpt-4-turbo出问题的概率最大

gpt4,直接用官方接口也报错,不知道为啥。

@vary
Copy link
Author

vary commented Apr 21, 2024

https://community.openai.com/t/gpt-4-turbo-model-function-call-doesnt-work/712218
image
看起来是OpenAI修改了校验的逻辑

@c121914yu
Copy link
Collaborator

image tool_calls返回里有index,但是根据报错提示感觉是在请求的时候不让带index

是的,最新的gpt-4-turbo出问题的概率最大

gpt4,直接用官方接口也报错,不知道为啥。

收到,后面做个优化😂这文档没更新头大

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants