Azure model provider key issue
# support
t
Hello I'm having trouble adding my Azure OpenAI provider keys. I've tried two different deployments in different regions but can't get passed a "Couldn't Validate Azure credentials: Resource Not Found" error. Is this the correct format for the endpoint URL? https://{resource}.openai.azure.com/openai/deployments/{deployment}
v
Hi @Tripp (Summit), I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Call Ended Reason]() * [Provider Keys]() * [Web Calling]() * [Create Credential]() -----------------------------
### Answer Hello! It seems like you might be facing an issue with the format of your Azure endpoint URL or the way your API keys are being validated. While I don't have specific details on the correct URL format for Azure provider keys in the context of Vapi, typically the endpoint URL should match the format provided by Azure's documentation for accessing specific resources. To troubleshoot your issue: 1. Ensure that the
{resource}
and
{deployment}
placeholders in the URL are replaced with the actual resource name and deployment identifier provided by Azure. 2. Verify that your Azure API keys have the necessary permissions and are correctly configured for the resources you are trying to access. If you continue to experience issues, it might be helpful to check the configuration settings in the Azure portal and ensure that all details are correctly entered and that there are no restrictions that might be blocking your requests. For more detailed assistance, consulting Azure's official documentation or reaching out to their support might provide you with the specific guidance needed for your setup.
s
Can you first check from your end whether your API key is correct? By making an request to your endpoint with your key?
t
Hey @Sahil Ive confirmed the api key is correct, as I successfully curl the /chat/completions endpoint with the api key
s
can you send me any call_id or anything?
t
@Sahil unfortunately i cant start a call yet because im having trouble with the initial integration
Here's an example curl using the same credentials which succeeds
j
Following. Tried adding azure keys today and ran into the same issues
s
Will look into it by tomorrow.
j
@Tripp (Summit) @Sahil I managed to add the credential. region: east - wasn't working for me, I kept getting errors saying wrong API keys or endpoint. I had to use east 2, and name the deployment "gpt-4o-2024-05-13" Exactly how vapi expects it
s
Thanks for the update!
t
@Jotham thanks that worked for me as well. @Sahil one idea is to add a "deployment name" field to the azure openai provider section since I doubt most people will typically name it what Vapi currently expects. Alternatively, maybe some help text explaining what the deployment name should be would be helpful Thanks both of you!!
Oh and fwiw i didnt try any other regions but us-west-3 worked for me
s
@Tripp (Summit) @User Which doc link did you guys followed?
s
I mean to fix this credential issue.
j
Oh I just found the fix from trial and error. You could maybe change the name of the "model" field to "deployment" then in the info part write "azure deployment name must match exactly how Vapi expects eg: azure deployment name: gpt-4o-2024-05-13"
s
Ah, I see. Okay!
t
j
Yes! Forgot to question that when I saw it. thanks for bringing it up. Is that a bug @Sahil
@Tripp (Summit) I assume you can also see your azure usage being used with every call. Have you found where it shows your azure usage costs within the azure platform? I can't find mine - maybe Vapi handles the azure billing side, but uses our usage? I'm abit lost in the azure platform
t
I have not been able to find a good cost graph in azure either but this is my first experience with azure... the best Ive found is this monitoring workbook and manually calculating cost using the token charts: https://techcommunity.microsoft.com/t5/fasttrack-for-azure/azure-openai-insights-monitoring-ai-with-confidence/ba-p/4026850
6 Views