Manish
04/10/2025, 8:17 AMVapi Support Bot
04/10/2025, 8:19 AMchat/completions?api-version=
without including the version number
- Use the shorter resource endpoint, not the longer deployment endpoint
- Example format: openai/deployments/<deployment_name>/chat/completions?api-version
[Discord user feedback](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336754090880798765) confirms this format requirement.
## 2. Authentication Method
There might be a discrepancy in the authentication method:
- Vapi might be expecting the Ocp-Apim-Subscription-Key
header
- Azure OpenAI now requires the api-key
header
- This could explain why credentials work in Python but not in Vapi
According to [user discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339956981297057892), this authentication method mismatch is a common issue.
## 3. Model and Deployment Name
Make sure:
- The deployment name exactly matches the model name in Vapi (e.g., "gpt-4o-2024-08-06")
- You're using the OpenAI provider standard model name (e.g., gpt-4o) not a custom name
- You're using "OpenAI" as the provider
## 4. Region Configuration
Check your region settings:
- Vapi might default to "australia" for the region
- Manually select the correct region for your Azure OpenAI resourceVapi Support Bot
04/10/2025, 8:19 AMcanada
is now canadaeast
)
[Changelog documentation](https://docs.vapi.ai/changelog/2025/1/21) shows these region name updates.
## 5. Credential Precedence
If you have both OpenAI and Azure OpenAI credentials:
- The system might be favoring OpenAI over Azure OpenAI
- Try removing the OpenAI credential if you want to exclusively use Azure OpenAI
Would you like me to help troubleshoot any specific part of this issue in more detail?
Sources:
- [Discord user feedback](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336754090880798765)
- [User discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339956981297057892)
- [Changelog documentation](https://docs.vapi.ai/changelog/2025/1/21)Kings_big💫
04/10/2025, 8:41 AMKyle Brunker
04/11/2025, 3:37 PM