# 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.<br>**TYPE:**`str`**DEFAULT:**`'.'`                                                                                 |
| `openai_api_key_file`   | The file name of the openai api key.<br>**TYPE:**`str`**DEFAULT:**`'key_openai.txt'`                                                          |
| `aoai_api_key_file`     | The file name of the azure openai api key.<br>**TYPE:**`str`**DEFAULT:**`'key_aoai.txt'`                                                      |
| `aoai_api_base_file`    | The file name of the azure openai api base.<br>**TYPE:**`str`**DEFAULT:**`'base_aoai.txt'`                                                  |
| `exclude`               | The api type to exclude, "openai" or "aoai".<br>**TYPE:**`str`**DEFAULT:**`None`                                                         |

| RETURNS | DESCRIPTION                                             |
|---------|---------------------------------------------------------|
| `list`  | A list of configs for openai api calls.<br>**TYPE:**`list[dict[str, Any]]` |

Source code in `autogen/oai/openai_utils.py`

|     |     |
| --- | --- |
| ``` | ``` |
| 417 | @export_module("autogen")<br>def config_list_gpt4_gpt35(<br>    key_file_path: Optional[str] = ".",<br>    openai_api_key_file: Optional[str] = "key_openai.txt",<br>    aoai_api_key_file: Optional[str] = "key_aoai.txt",<br>    aoai_api_base_file: Optional[str] = "base_aoai.txt",<br>    exclude: Optional[str] = None,<br>) -> list[dict[str, Any]]:<br>    """Get a list of configs for 'gpt-4' followed by 'gpt-3.5-turbo' API calls.<br>    Args:<br>        key_file_path (str, optional): The path to the key files.<br>        openai_api_key_file (str, optional): The file name of the openai api key.<br>        aoai_api_key_file (str, optional): The file name of the azure openai api key.<br>        aoai_api_base_file (str, optional): The file name of the azure openai api base.<br>        exclude (str, optional): The api type to exclude, "openai" or "aoai".<br>    Returns:<br>        list: A list of configs for openai api calls.<br>    """<br>    return config_list_from_models(<br>        key_file_path,<br>        openai_api_key_file,<br>        aoai_api_key_file,<br>        aoai_api_base_file,<br>        exclude,<br>        model_list=["gpt-4", "gpt-3.5-turbo"],<br>    )<br>``` |
