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 Open AI API #31

Open
nPokemon opened this issue Oct 16, 2023 · 0 comments
Open

Azure Open AI API #31

nPokemon opened this issue Oct 16, 2023 · 0 comments

Comments

@nPokemon
Copy link

How can I run using Azure Open AI API ?
I even comment out Open AI API , and using Azure API , and still asking to input the API Key for Open AI ?
Can you help ?

DO NOT MODIFY THIS FILE, create a new key.yaml, define OPENAI_API_KEY.

The configuration of key.yaml has a higher priority and will not enter git

if OpenAI

OPENAI_API_KEY: "YOUR_API_KEY"

OPENAI_API_BASE: "YOUR_API_BASE"

OPENAI_PROXY: "http://127.0.0.1:8118"

#OPENAI_API_MODEL: "gpt-4"
#MAX_TOKENS: 1500
#RPM: 10

if Anthropic

#Anthropic_API_KEY: "YOUR_API_KEY"

if AZURE, check https://github.com/openai/openai-cookbook/blob/main/examples/azure/chat.ipynb

OPENAI_API_TYPE: "azure"
OPENAI_API_BASE: "xxxx"
OPENAI_API_KEY: "xxxxx"
OPENAI_API_VERSION: "2023-08-01-preview"
DEPLOYMENT_ID: "xxxxx"

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

1 participant