pub struct OpenAIUnifiedModel { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for OpenAIUnifiedModel
impl Clone for OpenAIUnifiedModel
Source§fn clone(&self) -> OpenAIUnifiedModel
fn clone(&self) -> OpenAIUnifiedModel
Returns a duplicate 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 Debug for OpenAIUnifiedModel
impl Debug for OpenAIUnifiedModel
Source§impl Model for OpenAIUnifiedModel
impl Model for OpenAIUnifiedModel
fn name(&self) -> &str
fn request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
messages: &'life1 [ModelMessage],
settings: Option<&'life2 ModelSettings>,
params: &'life3 ModelRequestParameters,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn request_stream<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
messages: &'life1 [ModelMessage],
settings: Option<&'life2 ModelSettings>,
params: &'life3 ModelRequestParameters,
) -> Pin<Box<dyn Future<Output = Result<ModelStream, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn count_tokens<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_messages: &'life1 [ModelMessage],
_settings: Option<&'life2 ModelSettings>,
_params: &'life3 ModelRequestParameters,
) -> Pin<Box<dyn Future<Output = Result<RequestUsage, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for OpenAIUnifiedModel
impl !RefUnwindSafe for OpenAIUnifiedModel
impl Send for OpenAIUnifiedModel
impl Sync for OpenAIUnifiedModel
impl Unpin for OpenAIUnifiedModel
impl !UnwindSafe for OpenAIUnifiedModel
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