get_config_list

get_config_list(
    api_keys: list[str],
    base_urls: list[str] | None = None,
    api_type: str | None = None,
    api_version: str | None = None
) -> list[dict[str, typing.Any]]

Get a list of configs for OpenAI API client.

Parameters:
NameDescription
api_keysThe api keys for openai api calls.

Type: list[str]
base_urlsThe api bases for openai api calls.

If provided, should match the length of api_keys.

Type: list[str] | None

Default: None
api_typeThe api type for openai api calls.

Type: str | None

Default: None
api_versionThe api version for openai api calls.

Type: str | None

Default: None
Returns:
TypeDescription
list[dict[str, typing.Any]]list: A list of configs for OepnAI API calls.