pub struct LlmConfig {
pub base_url: String,
pub api_key: String,
pub timeout: Duration,
}Expand description
Configuration for LlmClient.
Fields§
§base_url: StringBase URL of the OpenAI-compatible API, e.g. http://litellm:4000/v1.
api_key: StringBearer token. May be empty when the proxy handles auth upstream.
timeout: DurationPer-request timeout.
Implementations§
Trait Implementations§
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