LLMProvider

org.llm4s.llmconnect.provider.LLMProvider
See theLLMProvider companion trait
object LLMProvider

Companion object providing LLM provider instances and utilities.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object Anthropic extends LLMProvider

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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LLMProvider
class Object
trait Matchable
class Any
Show all
Self type
Anthropic.type
case object Azure extends LLMProvider

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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LLMProvider
class Object
trait Matchable
class Any
Show all
Self type
Azure.type
case object Ollama extends LLMProvider

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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LLMProvider
class Object
trait Matchable
class Any
Show all
Self type
Ollama.type
case object OpenAI extends LLMProvider

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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LLMProvider
class Object
trait Matchable
class Any
Show all
Self type
OpenAI.type
case object OpenRouter extends LLMProvider

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 Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait LLMProvider
class Object
trait Matchable
class Any
Show all
Self type
OpenRouter.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromName(name: String): Option[LLMProvider]

Parses a provider name string to LLMProvider.

Parses a provider name string to LLMProvider.

Value parameters

name

provider name (case-insensitive)

Attributes

Returns

Some(provider) if valid, None otherwise

Concrete fields

val all: Seq[LLMProvider]

All available providers

All available providers

Attributes