Skip to content

Commit 74e2606

Browse files
committed
feat(llm): increase Gemini Flash token limit to 400k
1 parent 1e8fab2 commit 74e2606

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/llm/openrouter_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
DEFAULT_TOKENS = {
3232
"claude-opus": 8192,
3333
"claude-sonnet": 8192,
34-
"gemini-flash": 32768,
34+
"gemini-flash": 400000,
3535
"gemini-pro": 8192,
3636
"kimi-k2": 32768,
3737
"deepseek-v3": 32768,

scripts/translation/translate_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def run_translate(text, target, kind, model, front_matter, orig_lang, need_en, s
120120
# Use language-specific model mapping, ignore the model parameter
121121
actual_model = LANGUAGE_MODEL_MAP.get(target, "mistral-medium")
122122
prompt = build_prompt_template(target, kind, front_matter) + "\n\n" + text
123-
translated = clean_response(call_openrouter_api(prompt, "gemini-flash", max_tokens=400000))
123+
translated = clean_response(call_openrouter_api(prompt, model))
124124
check_commentary(translated)
125125
if kind == "title":
126126
check_title_strict(translated, target)

0 commit comments

Comments
 (0)