提供了未识别的请求参数:tools

大家好

在找到 AI 机器人博客文章后,我们想在我们的社区网站上试用一下,看看如何使用它。这是第一次使用,所以如果这是一个简单的解决方案,请原谅 :sweat_smile:

我们已经使用 Azure 和以下设置进行了设置,但在 /logs 中看到了以下错误:

DiscourseAi::Completions::Endpoints::OpenAi: status: 404 - body: {
  "error": {
    "message": "Unrecognized request argument supplied: tools",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}

Job exception: DiscourseAi::Completions::Endpoints::Base::CompletionFailed

设置 -

设置
ai_openai_gpt35_url https://[custom url].openai.azure.com/openai/deployments/[deployment name]/chat/completions?api-version=2023-07-01-preview
ai_openai_gpt35_16k_url https://[custom url].openai.azure.com/openai/deployments/[deployment-name]/chat/completions?api-version=2023-07-01-preview
ai_openai_api_key api key
ai_bot_enabled checked / ticked
ai_bot_enabled_chat_bots gpt-3.5-turbo

我们是否错过了什么,或者有什么特别需要注意的吗?

提前感谢

你需要在 Azure 中使用最新的 API 版本,它在 ? 参数中提供。

2 个赞

感谢您的快速回复,@sam

我们也尝试了 ?api-version=2023-05-15,我们相信这是最后一个稳定版本,但仍然无效。

您是指这里吗?

是的,就是这样,您想要 api-version=2023-12-01-preview

2 个赞

太棒了。如果你知道你在找什么,那简直太简单了 :sweat_smile:

但它确实奏效了!

1 个赞

最近我遇到了和聊天机器人几乎完全一样的问题。

微软和他们定制的 API!:sweat_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.