pub struct MiniMaxProvider;Expand description
MiniMax provider.
MiniMax specific handling:
- Content must be string, not array
- Does not support ‘developer’ role, convert to ‘user’
Implementations§
Trait Implementations§
Source§impl Default for MiniMaxProvider
impl Default for MiniMaxProvider
Source§impl Provider for MiniMaxProvider
impl Provider for MiniMaxProvider
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
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.
Auto Trait Implementations§
impl Freeze for MiniMaxProvider
impl RefUnwindSafe for MiniMaxProvider
impl Send for MiniMaxProvider
impl Sync for MiniMaxProvider
impl Unpin for MiniMaxProvider
impl UnsafeUnpin for MiniMaxProvider
impl UnwindSafe for MiniMaxProvider
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