Azure OpenAI on your data API access returns Internal Server Error

2023-06-23T01:27:58.9666667+00:00

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

https://github.com/Azure/azure-rest-api-specs/blob/c7d8f2eade1f9192dc07d7ce70c83e44dce6d922/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/inference.json#L1138

I tried to use azure openai rest api by seeing sample parameter above.

However, requests returned following error.

I have no idea how to resolve.

{"error":{"code":"InternalServerError","message":"Backend returned unexpected response. Please contact Microsoft for help."}}

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
{count} votes

3 answers

Sort by: Most helpful
  1. システム管理者(検証環境) 5 Reputation points
    2023-06-29T00:03:32.5833333+00:00

    Solved

    -H "chatgpt_url: YOUR_RESOURCE_URL" \
    

    It shoud be like

    https://XXXXX.openai.azure.com/openai/deployments/XXXXX/chat/completions?api-version=2023-03-15-preview"

    Will be worked


  2. Dairton Lopes Martins Filho 0 Reputation points
    2023-08-04T15:23:14.0066667+00:00

    Hi @vijay sai mutyala !

    I am facing the same problem. Did you find a solution?

    Thanks!

    0 comments No comments

  3. Nicolas Robert 20 Reputation points
    2023-11-13T10:40:00.48+00:00

    Sorry / Wrong topic, cannot delete answer

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.