# 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`

|     |     |
| --- | --- |
| ```<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>``` | ```<br>@export_module("autogen")<br>def config_list_gpt4_gpt35(<br>    key_file_path: str | None = ".",<br>    openai_api_key_file: str | None = "key_openai.txt",<br>    aoai_api_key_file: str | None = "key_aoai.txt",<br>    aoai_api_base_file: str | None = "base_aoai.txt",<br>    exclude: str | None = 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>``` |
