pub struct KimiProvider;Expand description
Kimi (Moonshot AI) provider.
Kimi API accepts both “kimi-” and “moonshot-v1-” model name prefixes natively. No model name normalization needed - all trait methods use default implementations.
Implementations§
Source§impl KimiProvider
impl KimiProvider
Trait Implementations§
Source§impl Default for KimiProvider
impl Default for KimiProvider
Source§impl Provider for KimiProvider
impl Provider for KimiProvider
Source§fn normalize_model(&self, model: String) -> String
fn normalize_model(&self, model: String) -> String
Normalize model name from Responses API to provider’s format.
Source§fn chat_completions_path(&self) -> String
fn chat_completions_path(&self) -> String
Get the chat completions path for this provider.
Only returns the endpoint path, e.g., “/chat/completions”.
The version prefix (e.g., “/v1”) should come from the backend URL’s base_path.
Source§fn transform_request(&self, _request: &mut ChatRequest)
fn transform_request(&self, _request: &mut ChatRequest)
Transform request before sending to provider. Read more
Source§fn transform_response(&self, _response: &mut ChatResponse)
fn transform_response(&self, _response: &mut ChatResponse)
Transform response after receiving from provider. Read more
Source§fn transform_stream_chunk(&self, _chunk: &mut ChatStreamChunk)
fn transform_stream_chunk(&self, _chunk: &mut ChatStreamChunk)
Transform streaming chunk in real-time. Read more
Auto Trait Implementations§
impl Freeze for KimiProvider
impl RefUnwindSafe for KimiProvider
impl Send for KimiProvider
impl Sync for KimiProvider
impl Unpin for KimiProvider
impl UnsafeUnpin for KimiProvider
impl UnwindSafe for KimiProvider
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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