pub struct ModelSelected {
pub tag: ModelTag,
pub endpoint: String,
pub model: String,
pub context_tokens: u64,
pub max_output_tokens: Option<u64>,
pub ceiling_from: Option<String>,
pub input: InputKinds,
pub input_price: UsdMicros,
pub output_price: UsdMicros,
pub cache_read_price: UsdMicros,
pub cache_write_price: UsdMicros,
}Expand description
model_selected: this model answers for this tag, with the facts no
probe returns.
Fields§
§tag: ModelTag§endpoint: StringThe attached endpoint the model is called through.
model: StringThe model id as the endpoint spells it.
context_tokens: u64The context window; zero where nobody stated one.
max_output_tokens: Option<u64>The output ceiling, written as null when none was resolved.
Read it through ModelSelected::ceiling, which owns what a
zero means.
ceiling_from: Option<String>Which rung of the ceiling ladder supplied the figure, in the
spelling gateway::CeilingSource::as_str owns. Absent when no
rung did.
input: InputKindsAbsent on a line written before the key existed, which replays as text-only rather than as a broken record.
input_price: UsdMicros§output_price: UsdMicros§cache_read_price: UsdMicros§cache_write_price: UsdMicrosImplementations§
Trait Implementations§
Source§impl Clone for ModelSelected
impl Clone for ModelSelected
Source§impl Debug for ModelSelected
impl Debug for ModelSelected
Source§impl<'de> Deserialize<'de> for ModelSelected
impl<'de> Deserialize<'de> for ModelSelected
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 ModelSelected
Source§impl PartialEq for ModelSelected
impl PartialEq for ModelSelected
Source§impl Serialize for ModelSelected
impl Serialize for ModelSelected
impl StructuralPartialEq for ModelSelected
Auto Trait Implementations§
impl Freeze for ModelSelected
impl RefUnwindSafe for ModelSelected
impl Send for ModelSelected
impl Sync for ModelSelected
impl Unpin for ModelSelected
impl UnsafeUnpin for ModelSelected
impl UnwindSafe for ModelSelected
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