Skip to content

feat: update defaults to latest OpenAI and Gemini models#36

Merged
montanaflynn merged 2 commits intomainfrom
feat/update-default-models
Apr 24, 2026
Merged

feat: update defaults to latest OpenAI and Gemini models#36
montanaflynn merged 2 commits intomainfrom
feat/update-default-models

Conversation

@montanaflynn
Copy link
Copy Markdown
Owner

@montanaflynn montanaflynn commented Apr 24, 2026

Summary

Bumps grail's default text and image models to the latest generation across both providers. Previous defaults are kept as exported package variables so callers pinning to specific models still work.

Role Tier OpenAI Gemini
Text Best gpt-5.4 (was gpt-5.2) gemini-3.1-pro-preview (was gemini-3-pro-preview)
Text Fast gpt-5.4-mini (was gpt-4o) gemini-3-flash-preview (unchanged)
Image Best gpt-image-2 (was gpt-image-1) gemini-3-pro-image-preview (unchanged)
Image Fast gpt-image-1-mini (unchanged) gemini-3.1-flash-image-preview / Nano Banana 2 (was gemini-2.5-flash-image)

Why: gemini-3-pro-preview was shut down 2026-03-09, so the previous Gemini Best was already broken. The OpenAI bumps adopt gpt-5.4 (frontier, 1M-context, built-in computer-use) and gpt-image-2 (released 2026-04-21, tops the Image Arena). Nano Banana 2 brings Pro-tier image quality at Flash speed.

Other changes

  • Bumps openai-go v3.14 → v3.32 and genai v1.39 → v1.54 (needed for new model constants).
  • Rewrites the Quick Start in the README as a single runnable snippet.
  • Adds .env.example and gitignores .env for easier local testing.

Test plan

  • go build ./... && go vet ./... && go test ./... — all green
  • Live-verified all four text/image combos via examples/model-selection/main.go --openai --gemini --image and --text
    • text: gpt-5.4 (2.0s), gpt-5.4-mini (2.1s), gemini-3.1-pro-preview (8.5s), gemini-3-flash-preview (2.5s)
    • image: gpt-image-2 (44.7s), gpt-image-1-mini (26.7s), gemini-3-pro-image-preview (18.2s), gemini-3.1-flash-image-preview (28.8s)
  • CI to verify (all 8 checks passed on 720ff75) build/test in the canonical Go version matrix

- OpenAI text: gpt-5.4 (best), gpt-5.4-mini (fast)
- OpenAI image: gpt-image-2 (best)
- Gemini text: gemini-3.1-pro-preview (best, replaces deprecated gemini-3-pro-preview)
- Gemini image: gemini-3.1-flash-image-preview (fast, Nano Banana 2)

Previous models retained as exported variables for explicit pinning.
Also bumps openai-go to v3.32.0 and genai to v1.54.0, and refreshes
Quick Start in README.
@montanaflynn montanaflynn force-pushed the feat/update-default-models branch from e0b1b35 to 573d5f2 Compare April 24, 2026 16:26
@montanaflynn montanaflynn merged commit cdcc4b7 into main Apr 24, 2026
8 checks passed
@montanaflynn montanaflynn deleted the feat/update-default-models branch April 24, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant