pub struct DeepSeekProvider;Expand description
DeepSeek provider.
DeepSeek is mostly compatible with standard Chat API. Minimal transformation needed - all trait methods use default implementations.
Implementations§
Trait Implementations§
Source§impl Default for DeepSeekProvider
impl Default for DeepSeekProvider
Source§impl Provider for DeepSeekProvider
impl Provider for DeepSeekProvider
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 DeepSeekProvider
impl RefUnwindSafe for DeepSeekProvider
impl Send for DeepSeekProvider
impl Sync for DeepSeekProvider
impl Unpin for DeepSeekProvider
impl UnsafeUnpin for DeepSeekProvider
impl UnwindSafe for DeepSeekProvider
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