Member Junction
    Preparing search index...

    Function BuildGeminiLiveModelPath

    • The model's resource name a Live setup carries on the target's endpoint, as BuildGeminiLiveSetup writes it: models/<id> on the Developer API; projects/<p>/locations/<l>/publishers/<publisher>/models/<id> on Gemini Enterprise, or publishers/<publisher>/models/<id> with UsesApiKey. A server-side session hands it to the SDK where the SDK would not write it the same way itself: a Google Cloud API key on the regional route, which the SDK has no mode for (it adds the project prefix only without a key).

      Parameters

      • target: GeminiLiveSetupTarget

        The endpoint, the model and, on Gemini Enterprise, the project and location.

      Returns string

      When the model id is empty or malformed, or a Gemini Enterprise target has no project or location.