MAIDR Documentation - v4.4.0
    Preparing search index...

    Interface SelectedModel

    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.

    interface SelectedModel {
        modelKey: Llm;
        name: string;
        version: LlmVersion;
    }
    Index

    Properties

    Properties

    modelKey: Llm
    name: string
    version: LlmVersion