pub struct Kimi { /* private fields */ }Expand description
Kimi’s native Chat Completions provider.
Implementations§
Trait Implementations§
Source§impl Model for Kimi
impl Model for Kimi
Source§fn supports_image_input(&self) -> bool
fn supports_image_input(&self) -> bool
Reports whether this provider accepts native image input.
Source§fn prompt_cache_capability(&self) -> PromptCacheCapability
fn prompt_cache_capability(&self) -> PromptCacheCapability
Reports the provider’s prompt-cache mode without exposing transport details.
Source§fn respond<'a>(
&'a self,
request: ModelRequest<'a>,
events: ModelEventSink,
) -> BoxFuture<'a, Result<ModelOutput>>
fn respond<'a>( &'a self, request: ModelRequest<'a>, events: ModelEventSink, ) -> BoxFuture<'a, Result<ModelOutput>>
Produces one streamed response.
Source§fn pricing(&self) -> Option<ModelPricing>
fn pricing(&self) -> Option<ModelPricing>
Returns current token pricing when this provider owns a known billing schedule.
Source§fn compaction_endpoint(&self) -> bool
fn compaction_endpoint(&self) -> bool
Reports whether this provider exposes a native compaction endpoint.
Source§fn compact<'a>(
&'a self,
_request: CompactRequest<'a>,
) -> BoxFuture<'a, Result<CompactOutput>>
fn compact<'a>( &'a self, _request: CompactRequest<'a>, ) -> BoxFuture<'a, Result<CompactOutput>>
Calls the native history-compaction endpoint when advertised.
Auto Trait Implementations§
impl !RefUnwindSafe for Kimi
impl !UnwindSafe for Kimi
impl Freeze for Kimi
impl Send for Kimi
impl Sync for Kimi
impl Unpin for Kimi
impl UnsafeUnpin for Kimi
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