Azure OpenAI Response API request fails #9576
-
What happened?According to this https://github.com/danny-avila/LibreChat/pull/8195 it should be implemented, but we do not manage to use it. Here is our setup:
There are two problems. First is that version value is not used and always replaced with "preview". Why?
it seems that ![]() There is nothing wrong with the model endpoint or credentials, we can hit it succesfully from standalone code. Though we might be using different payload - a bit hard to compare. Version Informationv0.8.0-rc3 Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log output2025-09-11 10:48:02 error: [api/server/controllers/agents/client.js #sendCompletion] Operation aborted 400 Invalid 'response_id': 'responses'. Expected an ID that contains letters, numbers, underscores, or dashes, but this value contained additional characters. ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Azure explains this here: https://learn.microsoft.com/en-us/azure/ai-foundry/openai/api-version-lifecycle?tabs=key#api-evolution The following config works for me: # librechat.yaml
azureOpenAI:
# Group level config under `azureOpenAI`
- group: "arbitrary-group-name"
apiKey: "${YOUR_API_KEY}" # .env var reference
instanceName: "your-instance-name"
version: "2025-04-01-preview" # whichever version works for non-responses
models:
o3-pro:
deploymentName: "o3-pro" # librechat.yaml
modelSpecs:
list:
- name: o3-pro
label: o3-pro (azure, response)
preset:
modelLabel: AI Assistant (azure)
endpoint: azureOpenAI
model: o3-pro
useResponsesApi: true ![]() You need to omit # librechat.yaml
endpoints:
azureOpenAI:
groups:
- group: response
apiKey: "${AZURE_FOUNDRY_API_KEY}"
instanceName: "oai-ai-assistant-response-sc"
# -- baseURL: https://oai-ai-assistant-dev-sc.openai.azure.com/openai/responses <--------- omit this
version: 2025-04-01-preview
models:
o3-pro:
deploymentName: "o3-pro" |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot. So you assume that people will use v1 API, and that's why you on purpose replace any api-version with "preview"? |
Beta Was this translation helpful? Give feedback.
Azure explains this here: https://learn.microsoft.com/en-us/azure/ai-foundry/openai/api-version-lifecycle?tabs=key#api-evolution
The following config works for me: