opto.utils.llm.auto_construct_oai_config_list_from_env

opto.utils.llm.auto_construct_oai_config_list_from_env#

auto_construct_oai_config_list_from_env() List[source]#

Collect various API keys saved in the environment and return a format like: [{“model”: “gpt-4”, “api_key”: xxx}, {“model”: “claude-3.5-sonnet”, “api_key”: xxx}]

Note this is a lazy function that defaults to gpt-40 and claude-3.5-sonnet. If you want to specify your own model, please provide an OAI_CONFIG_LIST in the environment or as a file