Member Junction
    Preparing search index...

    Function ChooseRealtimeVendorForAvatar

    • The vendor a realtime session runs on, by whether it will show an avatar. The highest-Priority keyed vendor (first) stands when it renders avatars exactly when the session will show one; otherwise the first other keyed vendor that does (and that Accepts allows) is taken, when there is one. So a vendor that renders avatars (Vertex AI for Gemini 3.8 Live, with its own billing and limits) takes a session only when it will show an avatar, or when it is the only keyed vendor; and a session that will show one goes to such a vendor whatever the Priority order.

      Type Parameters

      Parameters

      • firstVendor: V

        The highest-Priority keyed vendor's identity.

      • first: T

        That vendor's resolution.

      • vendors: V[]

        The model's vendors, highest Priority first (keys not checked).

      • showsAvatar: boolean

        Whether the session will show an avatar.

      • rules: RealtimeVendorAvatarRules<V, T>

        How a vendor is instantiated and judged.

      Returns T

      The chosen resolution: first unless another keyed vendor matches the session better.