pub struct ModelFacts {
pub temperature: bool,
pub output_limit: Option<u32>,
}Expand description
The two facts drep reads about a model.
Fields§
§temperature: boolWhether the model accepts a temperature parameter at all.
Defaulted to true when the document omits it - 448 of models.dev’s
entries do - because withdrawing the parameter is a decision, and
silence is not evidence for it.
output_limit: Option<u32>The model’s own completion ceiling, when it publishes one.
Trait Implementations§
Source§impl Clone for ModelFacts
impl Clone for ModelFacts
Source§fn clone(&self) -> ModelFacts
fn clone(&self) -> ModelFacts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelFacts
Source§impl Debug for ModelFacts
impl Debug for ModelFacts
Source§impl<'de> Deserialize<'de> for ModelFacts
impl<'de> Deserialize<'de> for ModelFacts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelFacts
Source§impl PartialEq for ModelFacts
impl PartialEq for ModelFacts
Source§impl Serialize for ModelFacts
impl Serialize for ModelFacts
impl StructuralPartialEq for ModelFacts
Auto Trait Implementations§
impl Freeze for ModelFacts
impl RefUnwindSafe for ModelFacts
impl Send for ModelFacts
impl Sync for ModelFacts
impl Unpin for ModelFacts
impl UnsafeUnpin for ModelFacts
impl UnwindSafe for ModelFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.