Module llm

Source

Functionsยง

get_available_provider_names
Returns a list of available LLM providers as strings
get_combined_config
Combines default, saved, and command-line configurations
get_default_model_for_provider
Returns the default model for a given provider
get_default_token_limit_for_provider
Returns the default token limit for a given provider
get_message
Generates a message using the given configuration
get_message_with_provider
Generates a message using the given provider (mainly for testing purposes)
provider_requires_api_key
Checks if a provider requires an API key
validate_provider_config
Validates the provider configuration