Syntropy.LLMClient.Config
(syntropy v0.2.0)
Copy Markdown
Runtime provider settings for Syntropy completions.
Summary
Functions
Builds a config struct from an explicit keyword list instead of the Application environment. Used to validate candidate configurations before they are applied.
Types
@type provider() :: :mock | :openai | :ollama | :unsupported
@type t() :: %Syntropy.LLMClient.Config{ api_key: String.t() | nil, assistant_prefill: String.t() | nil, base_url: String.t() | nil, disable_thinking: boolean(), max_concurrency: pos_integer() | nil, max_tokens: pos_integer() | nil, model: String.t() | nil, profile: String.t(), provider: provider(), provider_module: module() | nil, repeat_penalty: float() | nil, retry_count: non_neg_integer(), temperature: float() | nil, timeout_ms: pos_integer(), top_p: float() | nil }
Functions
@spec call_timeout(t()) :: pos_integer()
@spec load() :: t()
Builds a config struct from an explicit keyword list instead of the Application environment. Used to validate candidate configurations before they are applied.