opto.utils.llm

opto.utils.llm#

Functions

auto_construct_oai_config_list_from_env

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}]

Classes

AbstractModel

A minimal abstraction of a model api that refreshes the model every reset_freq seconds (this is useful for long-running models that may require refreshing certificates or memory management).

AutoGenLLM

This is the main class Trace uses to interact with the model.