Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vertexai/snippets/gemini_translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
func geminiTranslate(w io.Writer, project, location string) error {
sourceLanguageCode := "en"
targetLanguageCode := "fr"
modelName := "gemini-2.0-flash-001"
modelName := "gemini-2.5-flash"

ctx := context.Background()
client, err := genai.NewClient(ctx, project, location)
Expand Down
53 changes: 0 additions & 53 deletions vertexai/snippets/text_input.go

This file was deleted.

34 changes: 0 additions & 34 deletions vertexai/snippets/text_input_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion vertexai/snippets/try_gemini.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

func tryGemini(w io.Writer, projectID string, location string, modelName string) error {
// location := "us-central1"
// modelName := "gemini-2.0-flash-001"
// modelName := "gemini-2.5-flash"

ctx := context.Background()
client, err := genai.NewClient(ctx, projectID, location)
Expand Down
2 changes: 1 addition & 1 deletion vertexai/snippets/try_gemini_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
func Test_tryGemini(t *testing.T) {
tc := testutil.SystemTest(t)
buf := &bytes.Buffer{}
err := tryGemini(buf, tc.ProjectID, "us-central1", "gemini-2.0-flash-001")
err := tryGemini(buf, tc.ProjectID, "us-central1", "gemini-2.5-flash")
if err != nil {
t.Errorf("unexpected error: %v", err)
}
Expand Down
Loading