[Bug]: Azure OpenAI Service #374
Replies: 3 comments 1 reply
-
I'm not sure I completely follow. Does the deployment name determine which models are used? |
Beta Was this translation helpful? Give feedback.
-
Let me provide an example. Given the model names of the endpoints:
The OpenAI model "gpt-3.5-turbo-0301" will match the Azure model "xxx-gpt-3_5-turbo-0301" because it contains the name of the OpenAI model within the Azure deployment name. |
Beta Was this translation helpful? Give feedback.
-
From what I understand, deployment names will vary from organization. It might be convention to name after the model being used. It would help if you submit a PR to see what your logic is doing exactly, I've been given azure access for testing things like this but I only have one deployment name/model |
Beta Was this translation helpful? Give feedback.
-
Contact Details
[email protected]
What happened?
This is not exactly a bug, it's more of an improvement suggestion that I have already implemented for a need I had. However, I may have misunderstood the code and what I did may have been completely unnecessary. Here it goes:
I need the project to work exclusively via Azure endpoint. To do so, I filled in the session variables in the .env file. However, I noticed that the models used in the combo box of the interface follow the OpenAI session variable, even if they are not being filled in:
Therefore, I ended up creating a logic with the AZURE_OPENAI_API_DEPLOYMENT_NAME variable so that, in the same way as with the OPENAI_MODELS variable, they are separated by commas and correspond in position to the OpenAI models. Example:
There is still a technical debt in that the names of the deployments in Azure must contain a reference to the name of the original OpenAI model for matching purposes.
But... as I mentioned, I may not have understood how to use the application correctly, and I may have done all this for nothing. What do you think?
Thank you!
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions