Companion object providing LLM provider instances and utilities.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
LLMProvider.type
Members list
Type members
Classlikes
Anthropic provider for Claude models.
Anthropic provider for Claude models.
Supports Claude 3.5 Sonnet, Claude 3 Opus, and other Anthropic models. Features extended thinking capability for complex reasoning tasks.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Anthropic.type
Azure OpenAI Service provider.
Azure OpenAI Service provider.
Provides access to OpenAI models via Azure cloud infrastructure. Requires Azure-specific configuration including endpoint and API version.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Azure.type
Cohere provider for Command models.
Cohere provider for Command models.
Minimal v1 support: non-streaming chat/text generation only.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Cohere.type
DeepSeek provider for DeepSeek models.
DeepSeek provider for DeepSeek models.
Supports DeepSeek-Chat (V3), DeepSeek-Reasoner (R1) and other DeepSeek models. Features reasoning capability for complex tasks. Requires a DeepSeek API key.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
DeepSeek.type
Google Gemini provider for Gemini models.
Google Gemini provider for Gemini models.
Supports Gemini 2.0, 1.5 Pro, 1.5 Flash and other Gemini models. Features large context windows (up to 1M+ tokens) and multimodal capabilities. Requires a Google AI API key.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Gemini.type
Mistral AI provider for Mistral models.
Mistral AI provider for Mistral models.
Supports Mistral Large, Mistral Small, Codestral and other Mistral models. Uses OpenAI-compatible chat completions API. Requires a Mistral AI API key.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Mistral.type
Ollama provider for local model inference.
Ollama provider for local model inference.
Runs models locally without external API dependencies. Supports various open-source models like Llama, Mistral, etc.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Ollama.type
OpenAI provider for GPT models.
OpenAI provider for GPT models.
Supports GPT-4, GPT-3.5-turbo, and other OpenAI models. Requires an OpenAI API key.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
OpenAI.type
OpenRouter provider for unified model access.
OpenRouter provider for unified model access.
Provides access to multiple LLM providers through a single API. Supports reasoning effort parameter for compatible models.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
OpenRouter.type
Z.ai (ZhipuAI) provider for GLM models.
Z.ai (ZhipuAI) provider for GLM models.
Provides access to GLM-4 series models via OpenAI-compatible API. Supports GLM-4.7 and GLM-4.5-air models.
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait LLMProviderclass Objecttrait Matchableclass AnyShow all
- Self type
-
Zai.type
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Parses a provider name string to an LLMProvider.
Parses a provider name string to an LLMProvider.
Matching is case-insensitive. "google" is accepted as an alias for Gemini for compatibility with the LLM_MODEL=google/... environment variable format.
Value parameters
- name
-
Provider name; see all for the canonical set of names.
Attributes
- Returns
-
Some(provider)for recognised names;Nonefor unrecognised input.
Concrete fields
All available providers
All available providers