Skip to content

chore(go): bump go-genai SDK to v1.15.0 #3228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged
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 go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require (
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0
golang.org/x/tools v0.33.0
google.golang.org/api v0.236.0
google.golang.org/genai v1.11.1
google.golang.org/genai v1.15.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9Ywl
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine/v2 v2.0.6 h1:LvPZLGuchSBslPBp+LAhihBeGSiRh1myRoYK4NtuBIw=
google.golang.org/appengine/v2 v2.0.6/go.mod h1:WoEXGoXNfa0mLvaH5sV3ZSGXwVmy8yf7Z1JKf3J3wLI=
google.golang.org/genai v1.11.1 h1:MgI2JVDaIQ1YMuzKFwgPciB+K6kQ8MCBMVL9u7Oa8qw=
google.golang.org/genai v1.11.1/go.mod h1:HFXR1zT3LCdLxd/NW6IOSCczOYyRAxwaShvYbgPSeVw=
google.golang.org/genai v1.15.0 h1:zFaM+1JfGa0KCGDqrZdwVMucEu9n5AJEKkWcSPw0qro=
google.golang.org/genai v1.15.0/go.mod h1:QPj5NGJw+3wEOHg+PrsWwJKvG6UC84ex5FR7qAYsN/M=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
Expand Down
6 changes: 3 additions & 3 deletions go/plugins/googlegenai/googleai_live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func TestGoogleAILive(t *testing.T) {
}
})
t.Run("tool with thinking", func(t *testing.T) {
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
resp, err := genkit.Generate(ctx, g,
ai.WithConfig(&genai.GenerateContentConfig{
ThinkingConfig: &genai.ThinkingConfig{
Expand Down Expand Up @@ -435,7 +435,7 @@ func TestGoogleAILive(t *testing.T) {
}
})
t.Run("thinking", func(t *testing.T) {
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
resp, err := genkit.Generate(ctx, g,
ai.WithConfig(genai.GenerateContentConfig{
Temperature: genai.Ptr[float32](0.4),
Expand All @@ -457,7 +457,7 @@ func TestGoogleAILive(t *testing.T) {
}
})
t.Run("thinking disabled", func(t *testing.T) {
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
resp, err := genkit.Generate(ctx, g,
ai.WithConfig(genai.GenerateContentConfig{
Temperature: genai.Ptr[float32](0.4),
Expand Down
9 changes: 0 additions & 9 deletions go/plugins/googlegenai/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const (
gemini20FlashPrevImageGen = "gemini-2.0-flash-preview-image-generation"

gemini25Flash = "gemini-2.5-flash"
gemini25FlashPreview0417 = "gemini-2.5-flash-preview-04-17"
gemini25FlashLite = "gemini-2.5-flash-lite"
gemini25FlashLitePrev0617 = "gemini-2.5-flash-lite-preview-06-17"

Expand Down Expand Up @@ -66,7 +65,6 @@ var (
gemini25Flash,
gemini25FlashLite,
gemini25Pro,
gemini25FlashPreview0417,
gemini25FlashLitePrev0617,
gemini25ProExp0325,
gemini25ProPreview0325,
Expand All @@ -90,7 +88,6 @@ var (
gemini25Flash,
gemini25FlashLite,
gemini25Pro,
gemini25FlashPreview0417,
gemini25FlashLitePrev0617,
gemini25ProExp0325,
gemini25ProPreview0325,
Expand Down Expand Up @@ -192,12 +189,6 @@ var (
Supports: &Multimodal,
Stage: ai.ModelStageStable,
},
gemini25FlashPreview0417: {
Label: "Gemini 2.5 Flash Preview 04-17",
Versions: []string{},
Supports: &Multimodal,
Stage: ai.ModelStageUnstable,
},
gemini25ProExp0325: {
Label: "Gemini 2.5 Pro Exp 03-25",
Versions: []string{},
Expand Down
Loading