MediaSlotModelConfig class final

One media slot override in the CLI's models: config section: where ONE media modality is served when the main connection should not handle it.

Mirrors the app's MediaSlotOverride field-for-field; the media tools speak the OpenAI-compatible wire format, so usable overrides carry providerKind: openai-completions.

Constructors

MediaSlotModelConfig({required String providerKind, required String baseUrl, required String modelId, String? apiKeyName})
Creates a slot override. All three required fields should be non-empty for the override to be usable (enforced by fromYaml).
const
MediaSlotModelConfig.fromYaml(Object? node, {required String slot})
Parses one slot entry from yaml, strictly: unknown fields, missing required strings, and empty values throw ConfigException (a bad models: section must surface, never silently vanish).
factory

Properties

apiKeyName → String?
Name of the env/secure-store entry holding the API key for this endpoint; null reuses the main connection's key.
final
baseUrl → String
OpenAI-compatible base URL the per-modality path is appended to.
final
hashCode → int
The hash code for this object.
no setterinherited
modelId → String
Model id passed to the endpoint (e.g. gpt-image-1, tts-1).
final
providerKind → String
Provider adapter kind (openai-completions for usable media endpoints).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
writeYaml(StringBuffer buffer, String indent) → void
Writes the override as yaml lines at indent (string values are JSON-quoted — valid yaml scalars that round-trip any url/model id).

Operators

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