pub struct LLMConfig {
pub model_name: String,
pub base_url: String,
pub api_key: String,
pub temperature: f32,
pub max_tokens: u32,
}Expand description
Configuration for a remote Language Model (LLM).
Fields§
§model_name: StringThe name of the model to use.
base_url: StringThe base URL of the LLM API.
api_key: StringThe API key for the LLM API.
temperature: f32The temperature to use for the LLM.
max_tokens: u32The maximum number of tokens to generate.
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
Auto Trait Implementations§
impl Freeze for LLMConfig
impl RefUnwindSafe for LLMConfig
impl Send for LLMConfig
impl Sync for LLMConfig
impl Unpin 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