LLMConfig
Configuration class for managing various Language Learning Model (LLM) providers and their settings. This class allows integration with different LLM services such as OpenAI, Anthropic, Google, OpenRouter, DeepSeek, and Ollama. Users can also define fallback configurations and custom LLM clients.
Types
Functions
Adds a custom Large Language Model (LLM) client to the configuration.
Configures the Anthropic API client with the specified API key and additional settings.
Configures and initializes the DeepSeek API with the provided API key and optional configuration.
Configures fallback settings for the LLM (Large Language Model) configuration. This is used to define a fallback provider and model in case primary configurations are unavailable.
Configures the Google client for the application.
Configures the Ollama integration using the provided configuration block. This method allows customization of settings for communicating with the Ollama service.
Configures the OpenAI integration for the system using the provided API key and optional configuration.
Configures and initializes the OpenRouter API with the provided API key and optional configuration.