#[non_exhaustive]pub struct ModelPicker {
pub options: Option<Vec<ModelPickerOption>>,
pub replace_built_in_options: Option<bool>,
pub extra: Extra,
}Expand description
modelPicker: the /model picker’s rows.
List the models the /model picker offers, in the order you write them and under labels you
choose, so the picker lists the models your organization runs, after the built-in lineup or
instead of it. Each row’s model is taken verbatim, so it accepts anything --model
accepts: an alias such as opus, an Anthropic model ID, or a provider-format ID for Amazon
Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry, or an LLM gateway.
Docs: modelPicker.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.options: Option<Vec<ModelPickerOption>>The rows the picker shows, in this order, except that a grayed-out row moves to the
bottom. Without a label, Claude Code titles the row with the built-in name for a model
it knows, or the model ID otherwise, and without a description it writes a generic
second line.
- Values: array of rows, each with a required
modeland optionallabel,description, andbehavesAs - Default: unset
Docs: options.
replace_built_in_options: Option<bool>Set it to true to show only these rows, Default, and a row for the model the
session is already using. Leave it unset to add these rows after the built-in lineup.
- Values: Boolean, default
false - Default: unset
Docs: replaceBuiltInOptions.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.