Skip to content

GoogleModelPath

Namespace: Vercel.AI.Google

public static class GoogleModelPath

Builds the resource path Gemini expects for a model id.

Inheritance: object

View source

public static string Get(string modelId)

Returns <code class=“paramref”>modelId</code> when it already contains a slash, such as models/x or tunedModels/x. Otherwise prefixes models/.

Parameters

Name Type Description
modelId string

Returns: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product