| Name | Type | Description |
|---|---|---|
message* | object | An AI message or chunk with optional |
fallback_model | str | Default: ''Model to use when message metadata does not name one. |
fallback_provider | str | Default: ''Provider to use when message metadata does not name one. Known provider aliases and non-API providers override generic response metadata. |
prefer_fallback_provider | bool | Default: True |
Resolve the model and provider attached to a streamed model message.
Whether those configured providers should replace response metadata. Disable this when the fallback describes a parent request rather than the message itself.