pub struct KimiTemplate { /* private fields */ }Expand description
Kimi/Moonshot AI provider template
Implementations§
Source§impl KimiTemplate
impl KimiTemplate
pub fn new(variant: KimiVariant) -> Self
pub fn k2() -> Self
pub fn k2_thinking() -> Self
pub fn kimi_for_coding() -> Self
Trait Implementations§
Source§impl Clone for KimiTemplate
impl Clone for KimiTemplate
Source§fn clone(&self) -> KimiTemplate
fn clone(&self) -> KimiTemplate
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 KimiTemplate
impl Debug for KimiTemplate
Source§impl Template for KimiTemplate
impl Template for KimiTemplate
Source§fn template_type(&self) -> TemplateType
fn template_type(&self) -> TemplateType
Get the template type identifier
Source§fn env_var_name(&self) -> &'static str
fn env_var_name(&self) -> &'static str
Get the environment variable name for the API key
Source§fn display_name(&self) -> &'static str
fn display_name(&self) -> &'static str
Get display name for the template
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get description for the template
Source§fn api_key_url(&self) -> Option<&'static str>
fn api_key_url(&self) -> Option<&'static str>
Get API key acquisition URL (if available)
Source§fn has_variants(&self) -> bool
fn has_variants(&self) -> bool
Check if this template has sub-variants (like Pro/Air versions)
Source§fn get_variants() -> Result<Vec<Self>>where
Self: Sized,
fn get_variants() -> Result<Vec<Self>>where
Self: Sized,
Get available variants if this template supports them
Source§fn create_interactively() -> Result<Self>where
Self: Sized,
fn create_interactively() -> Result<Self>where
Self: Sized,
Create a template instance interactively (for templates with variants)
Source§fn create_settings(
&self,
api_key: &str,
scope: &SnapshotScope,
) -> ClaudeSettings
fn create_settings( &self, api_key: &str, scope: &SnapshotScope, ) -> ClaudeSettings
Create Claude settings for this template
Source§fn requires_additional_config(&self) -> bool
fn requires_additional_config(&self) -> bool
Check if this template requires additional configuration (like endpoint ID)
Auto Trait Implementations§
impl Freeze for KimiTemplate
impl RefUnwindSafe for KimiTemplate
impl Send for KimiTemplate
impl Sync for KimiTemplate
impl Unpin for KimiTemplate
impl UnwindSafe for KimiTemplate
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