pub struct ProviderModelConfig {
pub capabilities: Option<ModelCapabilitiesOverride>,
pub id: String,
pub max_context_window_tokens: Option<f64>,
pub max_output_tokens: Option<f64>,
pub max_prompt_tokens: Option<f64>,
pub model_id: Option<String>,
pub name: Option<String>,
pub provider: String,
pub wire_model: Option<String>,
}Expand description
A BYOK model definition referencing a named provider.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§capabilities: Option<ModelCapabilitiesOverride>Optional capability overrides (vision, tool_calls, reasoning, etc.).
id: StringProvider-local model id, unique within its provider. The session-wide selection id (shown in the model list and passed to switchTo) is the provider-qualified provider/id.
max_context_window_tokens: Option<f64>Maximum context window tokens for the model.
max_output_tokens: Option<f64>Maximum output tokens for the model.
max_prompt_tokens: Option<f64>Maximum prompt/input tokens for the model.
model_id: Option<String>Well-known base model id used for behavior/capability/config lookup. Defaults to id.
name: Option<String>Display name for model pickers. Defaults to the provider-qualified selection id (provider/id).
provider: StringName of the NamedProviderConfig that serves this model.
wire_model: Option<String>The model name sent to the provider API for inference. Defaults to id.
Trait Implementations§
Source§impl Clone for ProviderModelConfig
impl Clone for ProviderModelConfig
Source§fn clone(&self) -> ProviderModelConfig
fn clone(&self) -> ProviderModelConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more