xlang-ai / OpenAgents

[COLM 2024] OpenAgents: An Open Platform for Language Agents in the Wild
https://arxiv.org/abs/2310.10634
Apache License 2.0
4k stars 444 forks source link

support for Azure OpenAI api #85

Closed georgehu0815 closed 10 months ago

georgehu0815 commented 1 year ago

need support for Azure OpenAI API

config_list = autogen.config_list_from_dotenv( dotenv_file_path='.env', model_api_key_map={ "gpt-4": "OPENAI_API_KEY", "gpt-3.5-turbo": { "api_key_env_var": "ANOTHER_API_KEY", "api_type": "aoai", "api_version": "v2", "base_url": "https://api.someotherapi.com" } }, filter_dict={ "model": { "gpt-4", "gpt-3.5-turbo", } } )

config_list

Reference: https://github.com/microsoft/autogen/blob/main/notebook/oai_openai_utils.ipynb

Timothyxxx commented 12 months ago

Agree, we are going to add that later.

ZuoVJ commented 11 months ago

needed +1

geniuszxd commented 10 months ago

needed +1

koalazf99 commented 10 months ago

solved in #117