Skip to content

Commit b9d3f8c

Browse files
authored
chore(go): bump go-genai SDK to v1.15.0 (#3228)
1 parent 7a2d81a commit b9d3f8c

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ require (
3939
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0
4040
golang.org/x/tools v0.33.0
4141
google.golang.org/api v0.236.0
42-
google.golang.org/genai v1.11.1
42+
google.golang.org/genai v1.15.0
4343
)
4444

4545
require (

go/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9Ywl
511511
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
512512
google.golang.org/appengine/v2 v2.0.6 h1:LvPZLGuchSBslPBp+LAhihBeGSiRh1myRoYK4NtuBIw=
513513
google.golang.org/appengine/v2 v2.0.6/go.mod h1:WoEXGoXNfa0mLvaH5sV3ZSGXwVmy8yf7Z1JKf3J3wLI=
514-
google.golang.org/genai v1.11.1 h1:MgI2JVDaIQ1YMuzKFwgPciB+K6kQ8MCBMVL9u7Oa8qw=
515-
google.golang.org/genai v1.11.1/go.mod h1:HFXR1zT3LCdLxd/NW6IOSCczOYyRAxwaShvYbgPSeVw=
514+
google.golang.org/genai v1.15.0 h1:zFaM+1JfGa0KCGDqrZdwVMucEu9n5AJEKkWcSPw0qro=
515+
google.golang.org/genai v1.15.0/go.mod h1:QPj5NGJw+3wEOHg+PrsWwJKvG6UC84ex5FR7qAYsN/M=
516516
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
517517
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
518518
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=

go/plugins/googlegenai/googleai_live_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func TestGoogleAILive(t *testing.T) {
178178
}
179179
})
180180
t.Run("tool with thinking", func(t *testing.T) {
181-
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
181+
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
182182
resp, err := genkit.Generate(ctx, g,
183183
ai.WithConfig(&genai.GenerateContentConfig{
184184
ThinkingConfig: &genai.ThinkingConfig{
@@ -435,7 +435,7 @@ func TestGoogleAILive(t *testing.T) {
435435
}
436436
})
437437
t.Run("thinking", func(t *testing.T) {
438-
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
438+
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
439439
resp, err := genkit.Generate(ctx, g,
440440
ai.WithConfig(genai.GenerateContentConfig{
441441
Temperature: genai.Ptr[float32](0.4),
@@ -457,7 +457,7 @@ func TestGoogleAILive(t *testing.T) {
457457
}
458458
})
459459
t.Run("thinking disabled", func(t *testing.T) {
460-
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash-preview-04-17")
460+
m := googlegenai.GoogleAIModel(g, "gemini-2.5-flash")
461461
resp, err := genkit.Generate(ctx, g,
462462
ai.WithConfig(genai.GenerateContentConfig{
463463
Temperature: genai.Ptr[float32](0.4),

go/plugins/googlegenai/models.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const (
2828
gemini20FlashPrevImageGen = "gemini-2.0-flash-preview-image-generation"
2929

3030
gemini25Flash = "gemini-2.5-flash"
31-
gemini25FlashPreview0417 = "gemini-2.5-flash-preview-04-17"
3231
gemini25FlashLite = "gemini-2.5-flash-lite"
3332
gemini25FlashLitePrev0617 = "gemini-2.5-flash-lite-preview-06-17"
3433

@@ -66,7 +65,6 @@ var (
6665
gemini25Flash,
6766
gemini25FlashLite,
6867
gemini25Pro,
69-
gemini25FlashPreview0417,
7068
gemini25FlashLitePrev0617,
7169
gemini25ProExp0325,
7270
gemini25ProPreview0325,
@@ -90,7 +88,6 @@ var (
9088
gemini25Flash,
9189
gemini25FlashLite,
9290
gemini25Pro,
93-
gemini25FlashPreview0417,
9491
gemini25FlashLitePrev0617,
9592
gemini25ProExp0325,
9693
gemini25ProPreview0325,
@@ -192,12 +189,6 @@ var (
192189
Supports: &Multimodal,
193190
Stage: ai.ModelStageStable,
194191
},
195-
gemini25FlashPreview0417: {
196-
Label: "Gemini 2.5 Flash Preview 04-17",
197-
Versions: []string{},
198-
Supports: &Multimodal,
199-
Stage: ai.ModelStageUnstable,
200-
},
201192
gemini25ProExp0325: {
202193
Label: "Gemini 2.5 Pro Exp 03-25",
203194
Versions: []string{},

0 commit comments

Comments
 (0)