pub struct DeepSeekCompletionModel {
pub client: Client,
pub model: String,
}Expand description
The struct implementing the CompletionModel trait
Fields§
§client: Client§model: StringTrait Implementations§
Source§impl Clone for DeepSeekCompletionModel
impl Clone for DeepSeekCompletionModel
Source§fn clone(&self) -> DeepSeekCompletionModel
fn clone(&self) -> DeepSeekCompletionModel
Returns a copy 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 CompletionModel for DeepSeekCompletionModel
impl CompletionModel for DeepSeekCompletionModel
Source§type Response = DeepSeekResponse
type Response = DeepSeekResponse
The raw response type returned by the underlying completion model.
Source§async fn completion(
&self,
request: CompletionRequest,
) -> Result<CompletionResponse<DeepSeekResponse>, CompletionError>
async fn completion( &self, request: CompletionRequest, ) -> Result<CompletionResponse<DeepSeekResponse>, CompletionError>
Generates a completion response for the given completion request.
Source§fn completion_request(&self, prompt: &str) -> CompletionRequestBuilder<Self>
fn completion_request(&self, prompt: &str) -> CompletionRequestBuilder<Self>
Generates a completion request builder for the given
prompt.Auto Trait Implementations§
impl Freeze for DeepSeekCompletionModel
impl !RefUnwindSafe for DeepSeekCompletionModel
impl Send for DeepSeekCompletionModel
impl Sync for DeepSeekCompletionModel
impl Unpin for DeepSeekCompletionModel
impl !UnwindSafe for DeepSeekCompletionModel
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