Skip to content

Commit 8482b16

Browse files
committed
feat: add Gemini 2.5 model support and update defaults
Replace older Gemini 2.0 models with the latest 2.5 series (gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite). Default model changed to gemini-2.5-flash for better out-of-box performance. Bump version to 1.1.0.
1 parent 9cd8d81 commit 8482b16

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/ai/gemini.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type GeminiError struct {
5454
func NewGeminiClient(apiKey string, model string) *GeminiClient {
5555
// If model is empty, use a default model
5656
if model == "" {
57-
model = "gemini-2.0-flash-lite"
57+
model = "gemini-2.5-flash"
5858
}
5959

6060
return &GeminiClient{

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func DefaultConfig() *Config {
7171
return &Config{
7272
AIProvider: "gemini", // Default to Gemini
7373
GeminiAPIKey: "", // Will be loaded from environment
74-
GeminiModel: "gemini-2.0-flash-lite", // Default Gemini model
74+
GeminiModel: "gemini-2.5-flash", // Default Gemini model
7575
OpenAIAPIKey: "", // Will be loaded from environment
7676
OpenAIModel: "gpt-3.5-turbo", // Default OpenAI model
7777
OllamaURL: "http://localhost:11434", // Default Ollama URL

pkg/executor/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (e *Executor) handleModelConfig(args []string, cmd *nlp.Command) (*Result,
285285
// Validate model based on provider
286286
switch e.config.AIProvider {
287287
case "gemini":
288-
validModels := []string{"gemini-2.0-flash-lite", "gemini-2.0-flash", "gemini-2.0-pro"}
288+
validModels := []string{"gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite"}
289289
isValid := false
290290
for _, validModel := range validModels {
291291
if model == validModel {

pkg/executor/model_list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ func (e *Executor) handleModelList(cmd *nlp.Command) (*Result, error) {
1515
output = `
1616
╭─────────────── 🐦 Available Gemini Models ───────────────╮
1717
18-
• gemini-2.0-flash-lite (Fast, efficient for most queries)
19-
• gemini-2.0-flash (Balanced performance and quality)
20-
• gemini-2.0-pro (High quality, more capabilities)
18+
• gemini-2.5-pro (Most capable, complex tasks)
19+
• gemini-2.5-flash (Fast, great balance of speed/quality)
20+
• gemini-2.5-flash-lite (Lightweight, fastest in 2.5 series)
2121
2222
Current model: ` + e.config.GeminiModel + `
2323

pkg/version/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
// Version information
99
var (
1010
// Version is the current version of Lumo
11-
Version = "1.0.2"
11+
Version = "1.1.0"
1212

1313
// BuildDate is the date when the binary was built
14-
BuildDate = "May 19 2025"
14+
BuildDate = "Mar 16 2026"
1515

1616
// GitCommit is the git commit hash when the binary was built
1717
GitCommit = "HEAD"

tests/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ func TestConfigDefaultValues(t *testing.T) {
1616
t.Errorf("Expected default AIProvider to be 'gemini', got '%s'", cfg.AIProvider)
1717
}
1818

19-
if cfg.GeminiModel != "gemini-2.0-flash-lite" {
20-
t.Errorf("Expected default GeminiModel to be 'gemini-2.0-flash-lite', got '%s'", cfg.GeminiModel)
19+
if cfg.GeminiModel != "gemini-2.5-flash" {
20+
t.Errorf("Expected default GeminiModel to be 'gemini-2.5-flash', got '%s'", cfg.GeminiModel)
2121
}
2222

2323
if cfg.OpenAIModel != "gpt-3.5-turbo" {

0 commit comments

Comments
 (0)