OllamaClient

org.llm4s.llmconnect.provider.OllamaClient
See theOllamaClient companion class
object OllamaClient

Attributes

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

Members list

Value members

Concrete methods

Constructs an OllamaClient, wrapping any construction-time exception in a Left.

Constructs an OllamaClient, wrapping any construction-time exception in a Left.

Value parameters

config

Ollama configuration with model name and server base URL.

metrics

Receives per-call latency and token-usage events. Defaults to MetricsCollector.noop.

Attributes

Returns

Right(client) on success; Left(LLMError) if construction fails (e.g. invalid base URL).

Concrete fields

val DefaultRequestTimeout: FiniteDuration

The timeout of a non-streaming call when the section sets no timeouts.request: two minutes.

The timeout of a non-streaming call when the section sets no timeouts.request: two minutes.

Attributes

val DefaultStreamTimeout: FiniteDuration

The timeout of a streamed call when the section sets no timeouts.stream: ten minutes.

The timeout of a streamed call when the section sets no timeouts.stream: ten minutes.

Attributes