pub struct LLMConfigRaw {
pub provider: String,
pub model: String,
pub anthropic_api_key: Option<String>,
pub anthropic_base_url: Option<String>,
pub openai_api_key: Option<String>,
pub openai_base_url: Option<String>,
pub ollama_base_url: Option<String>,
pub openai_compatible_api_key: Option<String>,
pub openai_compatible_base_url: Option<String>,
}Expand description
Raw LLM configuration from graphify.toml’s [llm] section.
Used to avoid a 9-parameter resolve() signature.
Fields§
§provider: String§model: String§anthropic_api_key: Option<String>§anthropic_base_url: Option<String>§openai_api_key: Option<String>§openai_base_url: Option<String>§ollama_base_url: Option<String>§openai_compatible_api_key: Option<String>§openai_compatible_base_url: Option<String>Trait Implementations§
Source§impl Debug for LLMConfigRaw
impl Debug for LLMConfigRaw
Source§impl Default for LLMConfigRaw
impl Default for LLMConfigRaw
Source§fn default() -> LLMConfigRaw
fn default() -> LLMConfigRaw
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LLMConfigRaw
impl RefUnwindSafe for LLMConfigRaw
impl Send for LLMConfigRaw
impl Sync for LLMConfigRaw
impl Unpin for LLMConfigRaw
impl UnsafeUnpin for LLMConfigRaw
impl UnwindSafe for LLMConfigRaw
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more