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