Member Junction
    Preparing search index...

    Function SelectRealtimeVendorForModel

    • Selects the vendor that will run a realtime model: the highest-Priority Active MJ: AI Model Vendors row for the model whose DriverClass resolves an API key.

      Vendors are walked in descending Priority and the FIRST with a usable key wins — a keyless higher-priority vendor is skipped rather than dead-ending the resolution (a deployment that configures only one provider's key must still resolve that provider).

      When no vendor qualifies, one log line names the model and, for each vendor considered, the credential it would need (DescribeRealtimeVendorKeyNeeds) — a host whose LLM key works but whose realtime driver class has none otherwise fails with no trace of why.

      Parameters

      • modelID: string

        The MJ: AI Models row id to resolve a vendor for.

      • resolveAPIKey: AIAPIKeyResolver = defaultAPIKeyResolver

        Key-resolution seam; defaults to the process's configured AI API keys.

      • Optionalscope: AICredentialScope

        The run's credential scope, used only to word the log line; omitted means 'Any'.

      Returns RealtimeVendorSelection

      The vendor identifiers, or null when no active vendor has a usable key.