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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/contract/cli_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TestImageArtifactOutput(t *testing.T) {
if err := json.Unmarshal(<-requests, &sent); err != nil {
t.Fatalf("request body is not JSON: %v", err)
}
if sent.Model != "gemini-3.1-flash-image" || sent.ResponseFormat.Type != "image" {
if sent.Model != "gemini-nano-banana-2.1" || sent.ResponseFormat.Type != "image" {
t.Errorf("request presets = %+v, want image model + image response format", sent)
}

Expand Down Expand Up @@ -205,7 +205,7 @@ func TestImageArtifactOutput(t *testing.T) {
if result.err != nil {
t.Fatalf("image --dry-run failed: %v\nstderr: %s", result.err, result.stderr)
}
if !strings.Contains(result.stderr, "[DRY-RUN]") || !strings.Contains(result.stderr, "gemini-3.1-flash-image") {
if !strings.Contains(result.stderr, "[DRY-RUN]") || !strings.Contains(result.stderr, "gemini-nano-banana-2.1") {
t.Errorf("dry-run preview missing:\n%s", result.stderr)
}
if entries, _ := os.ReadDir(dryDir); len(entries) != 0 {
Expand Down
2 changes: 1 addition & 1 deletion tests/contract/help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestHelpDefaultsAndEscalation(t *testing.T) {
"Learn: https://ai.google.dev/gemini-api/docs/text-generation · escalate: full request control via gemini-api agent run",
}},
{[]string{"image"}, []string{
"Defaults: model gemini-3.1-flash-image · output ./gemini-image-{timestamp}-{rand}.{ext}",
"Defaults: model gemini-nano-banana-2.1 · output ./gemini-image-{timestamp}-{rand}.{ext}",
"Learn: https://ai.google.dev/gemini-api/docs/image-generation · escalate: full request control via gemini-api agent run",
}},
{[]string{"tts"}, []string{
Expand Down
Loading