labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.49k stars 4.69k forks source link

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

Closed vary closed 5 months ago

vary commented 6 months ago

例行检查

你的版本

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

image
hd19820806 commented 6 months ago

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

vary commented 6 months ago

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

c121914yu commented 6 months ago

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

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

vary commented 6 months ago
image

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

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

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

vary commented 6 months ago

https://community.openai.com/t/gpt-4-turbo-model-function-call-doesnt-work/712218

image

看起来是OpenAI修改了校验的逻辑

c121914yu commented 6 months ago
image

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

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

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

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