GoogleModelPath
Namespace: Vercel.AI.Google
public static class GoogleModelPathBuilds the resource path Gemini expects for a model id.
Inheritance: object
Methods
Section titled “Methods”Get(string)
Section titled “Get(string)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product