Welcome to Portkey Forum

Updated last week

Troubleshooting Azure OpenAI Virtual Key Usage

I have a problem, with use virtual key for AzureOpenAI:
Attachment
image.png
G
G
20 comments
Hey @GuidoRM, I can see from the error message that your azure-openai resource-name is not correct, do you have the correct deployment resource name?
I fixed, using this:
But I have an other problem
For any reason, the embeddings failed
Attachment
image.png
But other models like gpt-4o and gpt-4o-mini work well
Can you help me?
I can see from this image that your deployment id is gpt-4o that's not an embedding model
if you have an azure deployment for an embedding model, you should use that
But I'm indicating it to you in the code, model: text-embedding-3-large
For some reason you are taking gpt-4o, when I actually pass text-embedding-3-large
the model field inside the .createEmbedding() function invocation is ignored since each azure deployment supports only one model, you should create another client for embeddings with the correct deploymentId
is the params.model that you are passing to your initalizePortkey() method "text-embedding-3-large"?
Yes, I am initializing portkey based on each model, but I do not understand why it fails.
we can get on a quick 5 min call and debug
yeah whenever you're free, but I think it's essenstially your resourceName and deploymentId might be incorrect while initializing the client
Hey @GuidoRM, just following up, were you able to fix your issue?
Yes, I was able to fix it. Thanks for your help
Add a reply
Sign up and join the conversation on Discord