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

Azure OpenAI auth #104

Closed
aleixvilaseca opened this issue Jun 20, 2024 · 2 comments
Closed

Azure OpenAI auth #104

aleixvilaseca opened this issue Jun 20, 2024 · 2 comments

Comments

@aleixvilaseca
Copy link

Hello,
I am trying to use Azure OpenAI to run the agent but this is not possible for me because I have to add a key and endpoint for it to work properly. Everything works correctly when I set the variable with the openAI token (sk-xx-xxxx), but it is impossible for me to do it from Azure OPenAI. Any recommendations? Is there a way to do it?

Thanks!

@betnevs
Copy link

betnevs commented Jun 24, 2024

You can set Azure OpenAI endpoint and key in system environment, for example:

export AZURE_API_KEY=my-api-key
export AZURE_API_BASE=my-api-base
export AZURE_API_VERSION=2024-02-01

Then run your command,the underlying code uses LiteLLM to do the transformation.

@EmbeddedDevops1
Copy link
Collaborator

Thanks @betnevs!

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

No branches or pull requests

3 participants