Reduce gemini partial batch noise
build-push / docker (push) Successful in 4m9s

This commit is contained in:
GHStaK
2026-03-17 17:00:51 +09:00
parent 513199f426
commit 3be797131a
4 changed files with 79 additions and 30 deletions
+9
View File
@@ -256,3 +256,12 @@ func TestExtractCompleteRecommendationObjectsReturnsNilWhenArrayMissing(t *testi
t.Fatalf("expected no objects, got %#v", got)
}
}
func TestGeminiVisionMaxOutputTokensShrinksForSingleCandidate(t *testing.T) {
if got := geminiVisionMaxOutputTokens(1); got != 180 {
t.Fatalf("expected 180 tokens for single candidate, got %d", got)
}
if got := geminiVisionMaxOutputTokens(4); got != 420 {
t.Fatalf("expected 420 tokens for four candidates, got %d", got)
}
}