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 6 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

Commits on Nov 26, 2024

  1. Configuration menu
    Copy the full SHA
    ad139bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b207c6e View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. Configuration menu
    Copy the full SHA
    7ad4c87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2497bc4 View commit details
    Browse the repository at this point in the history