Skip to main content

Module models

Module models 

Source
Expand description

models.json: custom providers, models and overrides.

Mirrors the TypeBox schema in packages/coding-agent/src/core/model-config.ts in pi v1.0.0. pi reads this file but never writes it. Provider compat options stay raw JSON until the wire APIs that use them exist.

Structs§

CostTier
ImageLimits
ImageResize
InputLimits
ModelCost
US dollars per million tokens.
ModelDefinition
ModelOptions
Fields shared by model definitions and overrides.
ModelOverride
Changes to a built-in model; every field is optional.
ModelsConfig
PromptCache
Prompt cache retention, in seconds.
ProviderConfig
A new provider, or overrides for a built-in one. apiKey and header values use the same $VAR and !command forms as auth.json.

Enums§

InputKind