I’m trying to use GPT-5 with Azure OpenAI, but I’m...
# questions
w
I’m trying to use GPT-5 with Azure OpenAI, but I’m getting the following error:
Copy code
BadRequestError: litellm.BadRequestError: AzureException - Azure OpenAI Responses API is enabled only for api-version 2025-03-01-preview and later
GPT-4.1 works fine. I noticed a difference in the base URL for Chat 4.1
https://mydeploy.openai.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview
compared to GPT-5
https://mydeploy.openai.azure.com/openai/responses?api-version=2025-04-01-preview
p
OPENAI_API_VERSION="2025-04-01-preview"
works for me, @witty-carpet-44257 actually, never mind, I only tried it outside OpenHands for now; leaving it here in case you get it working
w
It didn't work, I've already tested it, I believe it's because gpt-5 uses Responses API and not the Chat API, I'll try to implement support for responses API