config_list_gpt4_gpt35 - AG2
config_list_gpt4_gpt35
autogen.config_list_gpt4_gpt35
config_list_gpt4_gpt35(key_file_path='.', openai_api_key_file='key_openai.txt', aoai_api_key_file='key_aoai.txt', aoai_api_base_file='base_aoai.txt', exclude=None)
Get a list of configs for 'gpt-4' followed by 'gpt-3.5-turbo' API calls.
| PARAMETER | DESCRIPTION |
|---|---|
key_file_path |
The path to the key files. TYPE: str DEFAULT: '.' |
openai_api_key_file |
The file name of the OpenAI API key. TYPE: str DEFAULT: 'key_openai.txt' |
aoai_api_key_file |
The file name of the Azure OpenAI API key. TYPE: str DEFAULT: 'key_aoai.txt' |
aoai_api_base_file |
The file name of the Azure OpenAI API base. TYPE: str DEFAULT: 'base_aoai.txt' |
exclude |
The API type to exclude, "openai" or "aoai". TYPE: str DEFAULT: None |
| RETURNS | DESCRIPTION |
|---|---|
list |
A list of configs for OpenAI API calls. TYPE: list[dict[str, Any]] |
Source code in autogen/oai/openai_utils.py
| ``` | ``` |
| @export_module("autogen") def config_list_gpt4_gpt35( key_file_path: str |
None = ".", openai_api_key_file: str |