Link-AGI / AutoAgents

[IJCAI 2024] Generate different roles for GPTs to form a collaborative entity for complex tasks.
https://huggingface.co/spaces/LinkSoul/AutoAgents
MIT License
1.2k stars 147 forks source link

Azure Open AI API #31

Open nPokemon opened 1 year ago

nPokemon commented 1 year ago

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"