A model that was enabled when a message was created, as that message records
it: the provider it came from, and the display name and version to show.
Held on the message rather than read from settings at render time, so a
message keeps saying which model answered it after the setting changes.
version is LlmVersion to agree with getValidVersion, which produces it.
That is naming, not narrowing: OllamaVersion is string & Record<never, never>, so the union accepts any string — deliberately, as the comment on
that type explains, because versions come from live provider APIs. Nothing
here validates a version; getValidVersion does, at runtime.
A model that was enabled when a message was created, as that message records it: the provider it came from, and the display name and version to show.
Held on the message rather than read from settings at render time, so a message keeps saying which model answered it after the setting changes.
versionisLlmVersionto agree withgetValidVersion, which produces it. That is naming, not narrowing:OllamaVersionisstring & Record<never, never>, so the union accepts any string — deliberately, as the comment on that type explains, because versions come from live provider APIs. Nothing here validates a version;getValidVersiondoes, at runtime.