Skip to content

Commit 9cba368

Browse files
Jing-yilinclaude
andcommitted
fix: correct Gemini model name to gemini-1.5-flash-001
gemini-1.5-flash-002 does not exist, causing NotFound errors. Use gemini-1.5-flash-001 (stable, GA version). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 9aae68a commit 9cba368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/internal/service/translator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (t *TranslatorService) TranslateCampaigns(campaigns []model.Campaign) error
6060
}
6161

6262
// Use Gemini 1.5 Flash (stable model with higher quotas than experimental)
63-
model := t.client.GenerativeModel("gemini-1.5-flash-002")
63+
model := t.client.GenerativeModel("gemini-1.5-flash-001")
6464
model.SetTemperature(0.3) // Lower temperature for more consistent translations
6565

6666
// Batch translate in groups of 5 to stay within rate limits

0 commit comments

Comments
 (0)