تم تقديم وسيط طلب غير معروف: tools

Hi everyone

After finding the AI bot blog post, thought we’d give it a go on our community site and see how we can use it. First time using it, so apologies if this is a simple solution :sweat_smile:

We’ve set it up with Azure, with the below settings, but seeing the following error in /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

Settings -

Setting Value
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

Have we missed anything, or is there anything in particular we should be looking for?

Thanks in advance

Oh yeah you need to use the latest api version for azure it’s supplied in the ? arg

إعجابَين (2)

Thanks for the quick reply @sam!

We’ve tried it with ?api-version=2023-05-15, too, which we believe to be the last stable version, but still no joy.

Is that what you’re referring to, here?

Yeah that’s it , you want api-version=2023-12-01-preview

إعجابَين (2)

Brilliant. So simple if you know what you’re looking for :sweat_smile:

But it works!

إعجاب واحد (1)

Almost exactly the issue I ran into with Chatbot recently.

Microsoft and their bespoke API’s! :sweat_smile:

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