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: strDEFAULT:'.' |
openai_api_key_file |
The file name of the openai api key. TYPE: strDEFAULT:'key_openai.txt' |
aoai_api_key_file |
The file name of the azure openai api key. TYPE: strDEFAULT:'key_aoai.txt' |
aoai_api_base_file |
The file name of the azure openai api base. TYPE: strDEFAULT:'base_aoai.txt' |
exclude |
The api type to exclude, "openai" or "aoai". TYPE: strDEFAULT: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
<br>463<br>464<br>465<br>466<br>467<br>468<br>469<br>470<br>471<br>472<br>473<br>474<br>475<br>476<br>477<br>478<br>479<br>480<br>481<br>482<br>483<br>484<br>485<br>486<br>487<br>488<br>489<br>490<br> |
``` @export_module("autogen") def config_list_gpt4_gpt35( key_file_path: str |