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

Add Azure openAI API failed #1427

Open
treblam opened this issue Dec 23, 2024 · 2 comments
Open

Add Azure openAI API failed #1427

treblam opened this issue Dec 23, 2024 · 2 comments
Labels
answered bug Something isn't working

Comments

@treblam
Copy link

treblam commented Dec 23, 2024

I am trying to use azure openai service, but the initialization failed, it gave an error "sed: 1: "s/^AZURE_API_BASE=.*/AZ ...": bad flag in substitute command: '/'" as shown in the screenshot below, and after that it only provided one available model for me to choose, it's AZURE_OPENAI_GPT4V.
screenshot

@wintonzheng wintonzheng added the bug Something isn't working label Dec 23, 2024
@wintonzheng
Copy link
Contributor

@treblam
Thanks for reporting the bug.

A workaround for now:

  • rerun setup.sh
  • pick OpenAI, and give it a random api key
  • after the script runs successfully, go to your .env file and update these environment variables:
ENABLE_AZURE=true
LLM_KEY=AZURE_OPENAI
AZURE_API_KEY=xxx
AZURE_DEPLOYMENT=xxx
AZURE_API_BASE=https://auto-browser.openai.azure.com/
AZURE_API_VERSION=2024-02-01

@treblam
Copy link
Author

treblam commented Dec 24, 2024

OK, thank you, I will try it when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@treblam @suchintan @wintonzheng and others