pub struct OfflineModelInfo {
pub name: &'static str,
pub context_window: usize,
pub max_output_tokens: usize,
}
Expand description
モデル情報。 API からは得られない、ドキュメントにのみある情報。
Fields§
§name: &'static str
§context_window: usize
総トークン数制限。入力と出力その他コントロールトークン全てを合わせた値。
max_output_tokens: usize
最大出力トークン数。
Trait Implementations§
Source§impl Clone for OfflineModelInfo
impl Clone for OfflineModelInfo
Source§fn clone(&self) -> OfflineModelInfo
fn clone(&self) -> OfflineModelInfo
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 OfflineModelInfo
impl Debug for OfflineModelInfo
Source§impl Serialize for OfflineModelInfo
impl Serialize for OfflineModelInfo
impl Copy for OfflineModelInfo
Auto Trait Implementations§
impl Freeze for OfflineModelInfo
impl RefUnwindSafe for OfflineModelInfo
impl Send for OfflineModelInfo
impl Sync for OfflineModelInfo
impl Unpin for OfflineModelInfo
impl UnwindSafe for OfflineModelInfo
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
§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CloneableStorage for T
impl<T> CloneableStorage for T
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more