pub struct ModelsJsonModel {Show 16 fields
pub id: String,
pub name: Option<String>,
pub api: Option<String>,
pub base_url: Option<String>,
pub reasoning: Option<bool>,
pub thinking_level_map: Option<ThinkingLevelMap>,
pub input: Option<Vec<InputModality>>,
pub input_limits: Option<InputLimits>,
pub cost: Option<ModelCost>,
pub prompt_cache: Option<PromptCache>,
pub context_window: Option<f64>,
pub max_tokens: Option<f64>,
pub sampling_params: Option<JsonObject>,
pub sampling_params_by_thinking_level: Option<SamplingByLevel>,
pub headers: Option<IndexMap<String, String>>,
pub compat: Option<JsonValue>,
}Expand description
A models[] entry.
Fields§
§id: StringModel id sent to the API.
name: Option<String>Display name (default: id).
api: Option<String>Overrides the provider api.
base_url: Option<String>Overrides the provider baseUrl.
reasoning: Option<bool>Thinking support (default false).
thinking_level_map: Option<ThinkingLevelMap>Provider value per thinking level.
input: Option<Vec<InputModality>>Input modalities (default ["text"]).
input_limits: Option<InputLimits>Request/image limits.
cost: Option<ModelCost>Pricing (default all zero).
prompt_cache: Option<PromptCache>Prompt cache lifetimes.
context_window: Option<f64>Context window (default 128 000).
max_tokens: Option<f64>Maximum output tokens (default 16 384).
sampling_params: Option<JsonObject>Sampling defaults.
sampling_params_by_thinking_level: Option<SamplingByLevel>Sampling per thinking level.
headers: Option<IndexMap<String, String>>Request headers (values resolve like apiKey).
compat: Option<JsonValue>Compatibility flags (opaque to core).
Trait Implementations§
Source§impl Clone for ModelsJsonModel
impl Clone for ModelsJsonModel
Source§impl Debug for ModelsJsonModel
impl Debug for ModelsJsonModel
Source§impl Default for ModelsJsonModel
impl Default for ModelsJsonModel
Source§impl<'de> Deserialize<'de> for ModelsJsonModel
impl<'de> Deserialize<'de> for ModelsJsonModel
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
Source§impl PartialEq for ModelsJsonModel
impl PartialEq for ModelsJsonModel
impl StructuralPartialEq for ModelsJsonModel
Auto Trait Implementations§
impl Freeze for ModelsJsonModel
impl RefUnwindSafe for ModelsJsonModel
impl Send for ModelsJsonModel
impl Sync for ModelsJsonModel
impl Unpin for ModelsJsonModel
impl UnsafeUnpin for ModelsJsonModel
impl UnwindSafe for ModelsJsonModel
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