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

**URL:** https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315
**Category:** Support
**Tags:** ai, ai-bot
**Created:** [2024年二月6日 10:08 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315 "2024-02-06T10:08:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [2024年二月6日 10:08 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/1 "2024-02-06T10:08:56Z")

</div>

大家好

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

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

```plaintext
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 |

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

提前感谢

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2024年二月6日 10:25 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/2 "2024-02-06T10:25:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [2024年二月6日 10:40 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/3 "2024-02-06T10:40:10Z")

</div>

感谢您的快速回复，@sam！

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

您是指这里吗？

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2024年二月6日 11:21 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/4 "2024-02-06T11:21:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Parker1090](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/parker1090/32/119862_2.png) [@Parker1090](https://meta.discourse.org/u/Parker1090)
#### Post date: [2024年二月7日 09:57 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/5 "2024-02-07T09:57:17Z")

</div>

太棒了。如果你知道你在找什么，那简直太简单了 😅

但它确实奏效了！

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2024年二月7日 10:10 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/6 "2024-02-07T10:10:29Z")

</div>

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

微软和他们定制的 API！😅

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年四月16日 11:09 UTC](https://meta.discourse.org/t/unrecognized-request-argument-supplied-tools/294315/7 "2024-04-16T11:09:42Z")

</div>

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