MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.31k stars 21.49k forks source link

Azure OpenAI Chat completions API returns 404 if api-version is not present as query param #114602

Closed sjanorkar closed 1 year ago

sjanorkar commented 1 year ago

Azure OpenAI Service Chat Completions REST API reference

API Reference:

https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions

API Call (api-version is present as query param)

https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2023-05-15

Response Code: 200

API Call (api-version is not present as query param)

https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions

Response Code: 404

Returning HTTP 404 response code in case api-version is not present as query param in request look incorrect. Ideally it should be 400 (Bad Request) as required param by the server is missing in the request.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 1 year ago

@sjanorkar Thanks for your feedback! We will investigate and update as appropriate.

RamanathanChinnappan-MSFT commented 1 year ago

@sjanorkar Thanks for your contribution. Please add your ideas in below link, so our production team can review it and update the same. Ideas · Community (azure.com)

sjanorkar commented 12 months ago

Hi @RamanathanChinnappan-MSFT Is there any update on this suggestion?

RamanathanChinnappan-MSFT commented 12 months ago

@sjanorkar Thanks for your response. Once the PG team updates, I will reflect it in the document.