From 4f1a6e785013467e434e9efaaae57e441f8c0fc6 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 8 Mar 2024 09:56:48 -0800 Subject: [PATCH] fix(vertexai): clarify Client.GenerativeModel documentation --- vertexai/genai/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vertexai/genai/client.go b/vertexai/genai/client.go index 0dc6f5bf2a73..0395707c7030 100644 --- a/vertexai/genai/client.go +++ b/vertexai/genai/client.go @@ -98,6 +98,9 @@ type GenerativeModel struct { const defaultMaxOutputTokens = 2048 // GenerativeModel creates a new instance of the named model. +// name is a string model name like "gemini-1.0.-pro". +// See https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versioning +// for details on model naming and versioning. func (c *Client) GenerativeModel(name string) *GenerativeModel { return &GenerativeModel{ c: c,