pub enum LlmBackendSettings {
OpenAI {
api_key: String,
base_url: Option<String>,
model: String,
},
Anthropic {
api_key: String,
model: String,
},
Ollama {
base_url: Option<String>,
model: String,
},
Zhipu {
api_key: String,
base_url: Option<String>,
model: String,
},
Aliyun {
api_key: String,
model: String,
},
Volcengine {
api_key: String,
model: String,
},
Tencent {
api_key: String,
model: String,
},
Longcat {
api_key: String,
model: String,
},
Moonshot {
api_key: String,
model: String,
},
Minimax {
api_key: String,
model: String,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LlmBackendSettings
impl Clone for LlmBackendSettings
Source§fn clone(&self) -> LlmBackendSettings
fn clone(&self) -> LlmBackendSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlmBackendSettings
impl Debug for LlmBackendSettings
Source§impl<'de> Deserialize<'de> for LlmBackendSettings
impl<'de> Deserialize<'de> for LlmBackendSettings
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 LlmBackendSettings
impl RefUnwindSafe for LlmBackendSettings
impl Send for LlmBackendSettings
impl Sync for LlmBackendSettings
impl Unpin for LlmBackendSettings
impl UnwindSafe for LlmBackendSettings
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