ModelCapabilityOverride class final

One per-model user override: the fields the user pinned for <provider>/<modelId>, all optional — an absent field resolves through the layers below.

Constructors

ModelCapabilityOverride({int? contextWindow, int? maxTokens, String? thinkingLevel, bool? omitMaxOutputTokens})
Creates an override; every field optional.
const
ModelCapabilityOverride.fromYaml(String provider, String modelId, Object? node)
Parses one models.overrides.<provider>.<modelId> entry, strictly: only the four known fields, positive integers at/above the floors, a ladder rung for thinkingLevel (xhigh/max fold to high). Every error names the key (models.overrides.<provider>.<modelId>).
factory

Properties

contextWindow → int?
Pinned total context window in tokens.
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
True when the entry pins nothing (the config file then omits it).
no setter
maxTokens → int?
Pinned maximum output tokens.
final
omitMaxOutputTokens → bool?
Whether the endpoint rejects the max-output field outright (the omp/codex compat lesson): the OpenAI-completions adapter omits it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thinkingLevel → String?
Pinned thinking rung (already normalized to the ladder).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
writeYaml(StringBuffer buffer, String indent) → void
Serializes to yaml lines at indent (round-trips with fromYaml).

Operators

operator ==(Object other) → bool
The equality operator.
inherited