pub struct ModelMetadata {
pub name: String,
pub prompt_format: Option<u8>,
pub orders: Option<Value>,
pub media: Option<Vec<MediaKind>>,
pub temperature_per_prim: Option<IndexMap<String, f64>>,
pub extra: Map<String, Value>,
}Expand description
Model metadata. The exact name is accepted by basal-rs as a request’s model.
Fields§
§name: StringModel name.
prompt_format: Option<u8>Prompt protocol version.
orders: Option<Value>Fixed numeric or adaptive string order policy.
media: Option<Vec<MediaKind>>Supported media kinds when enabled.
temperature_per_prim: Option<IndexMap<String, f64>>Calibration temperature by primitive.
extra: Map<String, Value>Native metadata fields, retained without interpretation.
Trait Implementations§
Source§impl Clone for ModelMetadata
impl Clone for ModelMetadata
Source§impl Debug for ModelMetadata
impl Debug for ModelMetadata
Source§impl<'de> Deserialize<'de> for ModelMetadata
impl<'de> Deserialize<'de> for ModelMetadata
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
Auto Trait Implementations§
impl Freeze for ModelMetadata
impl RefUnwindSafe for ModelMetadata
impl Send for ModelMetadata
impl Sync for ModelMetadata
impl Unpin for ModelMetadata
impl UnsafeUnpin for ModelMetadata
impl UnwindSafe for ModelMetadata
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