pub struct LlmConfig {
pub backend: String,
pub model: String,
pub base_url: Option<String>,
}Expand description
LLM provider settings. The API key lives in the OS keychain — see
crate::secrets.
Fields§
§backend: StringLLM vendor: one of anthropic, openai, gemini, openrouter,
mistral, groq, deepseek, xai, or openai-compatible for a
custom/local OpenAI-style endpoint (see base_url). See
crate::llm::is_backend_wired.
model: StringModel name passed to the vendor API.
base_url: Option<String>Base URL for the openai-compatible backend — a local
Ollama / LM Studio server or any other OpenAI-style endpoint, up
to but not including /chat/completions
(e.g. http://localhost:11434/v1). The named cloud backends
ignore it and use their own built-in URLs, so it’s None for
them and omitted from the TOML.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmConfig
impl<'de> Deserialize<'de> for LlmConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LlmConfig
impl StructuralPartialEq for LlmConfig
Auto Trait Implementations§
impl Freeze for LlmConfig
impl RefUnwindSafe for LlmConfig
impl Send for LlmConfig
impl Sync for LlmConfig
impl Unpin for LlmConfig
impl UnsafeUnpin for LlmConfig
impl UnwindSafe for LlmConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.