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

Update utils.py- Fix error when using AzureOpenAI services #4254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 18, 2024

  1. Update utils.py

    Seems `_kwargs.update(kwargs)` will cause errors when using the Azure OpenAI service. It forces the model set in the environment to change to "gpt-4o", which can cause issues (e.g., `The API deployment for this resource does not exist.`). 
    
    The model name in Azure can be customized. For example, I created a model based on gpt-4o, but its name is `my-gpt-4o`, and this name should be used in the API call.
    genlin authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    cb85832 View commit details
    Browse the repository at this point in the history
  2. Update utils.py

    genlin authored Nov 18, 2024
    Configuration menu
    Copy the full SHA
    8afd0fd View commit details
    Browse the repository at this point in the history