Provider credentials for Azure OpenAI model not wo...
# support
s
When providing our own API keys and endpoint URL under "provider credentials", I got an error as shown in the screenshot. I have verified that my model has been deployed correctly (correct model and model version) and works when I send a request outside of Vapi. But when trying to link to Vapi by using provider credentials, it fails with the error as provided in the screenshot. Woudl appreciate if you could fix this bug thank you https://cdn.discordapp.com/attachments/1336754090880798765/1336754091195502592/image.png?ex=67a4f4c3&is=67a3a343&hm=2ddc890e9f1d0fb6b99d84da26a85031590fc6455ed4eed5085bdcd1e3c472aa& https://cdn.discordapp.com/attachments/1336754090880798765/1336754091489099816/image.png?ex=67a4f4c3&is=67a3a343&hm=32c660cd140b871611cbde865b3ab053d5d8b4ca19a475f5ff5bdc3592f43551&
v
message has been deleted
@sf3f I'm sorry to hear you're experiencing issues with setting up your provider credentials in Vapi. To assist you better, could you please provide me with the following details: 1. The exact error message you're seeing in the screenshot. 2. The API key and endpoint URL format you're using (please do not share the actual key or URL for security reasons). 3. Any specific steps you took when you encountered the error. Once I have this information, I'll be able to guide you more effectively. If the issue persists, it may be necessary to escalate this to our support team for a deeper investigation.
You can continue this conversation by mentioning me in the message.
s
@sf3f Can you join office hours today? I will help you resolve this live over a call. Does that work for you? Here's the link: https://discord.gg/8xsMTjEp?event=1336875614413525063 . I know you have the API keys so you don't need to reveal them.
g
I am facing the same situation
did this get solved, im on the same boat.
s
@sf3f @gzqq checking if resolved for you guys?
g
nope
s
@gzqq what error response your getting? Most probably you might be using wrong endpoint url.
g
i have tried all possible combinations honestly, {"message":"Couldn't Validate Azure OpenAI Credential. Error: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.","error":"Bad Request","statusCode":400}%
the main endpoint, the model endpoint, the model endpoint without the api version, etc.
s
ccing: @Sahil to help you with this.
g
thnak you
s
@gzqq FYI: you need to use model deployed endpoint w/o API Version.
g
i have tried up to completions/ up to chat/
with the key from the deployment, with the key for the main. idk what else to try
Appreciate the help, hope we can solve it with @Sahil once he gets back online.
I think i solved it by mistake, the endpoint should go up to -- chat/completions?api-version= -- without the version, up to the equal lol, this is the weirdest thing ever .
s
@Shubham Bajaj Ahh yes @gzqq is right. It works but would have to append "openai/deployments//chat/completions?api-version"
But although it works such that I am able to provide provider credentials, when I try to call an assistant and ask if something, I get an error saying "Error: Exiting meeting because room was deleted" and the call ends. When I remove my preovider keys though, this error disappears and the call works fine.
10 Views