Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Azure OpenAI chat model baseURL construction logic. #1385

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doin4
Copy link

@doin4 doin4 commented Mar 22, 2025

Hi, I noticed that when using Azure OpenAI as the chat model provider, the generated URL is incorrect. I modified the code to use the user-provided endpoint URL, and it worked correctly for me.

However, there is still an issue when using Azure OpenAI as the embedding model provider. Unfortunately, I am not familiar enough with this part of the script to rewrite the URL logic. I can, however, provide some error details: the script generates a default URL in the format https://{model_name}xx.openai.xx, which is not the correct format for the Azure OpenAI API. I strongly recommend using the user-provided endpoint URL instead of constructing the URL programmatically based on rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant