fix: gemini api

This commit is contained in:
Gabe
2025-07-23 20:03:54 +08:00
parent e1dfa35c6c
commit 1daf134b31
3 changed files with 5 additions and 31 deletions

View File

@@ -692,7 +692,7 @@ export const DEFAULT_TRANS_APIS = {
systemPrompt: `You are a professional, authentic machine translation engine.`,
userPrompt: `Translate the following source text from ${INPUT_PLACE_FROM} to ${INPUT_PLACE_TO}. Output translation directly without any additional text.\n\nSource Text: ${INPUT_PLACE_TEXT}\n\nTranslated Text:`,
temperature: 0,
reasoningEffort: "low",
maxTokens: 2048,
fetchLimit: 1,
fetchInterval: 500,
apiName: OPT_TRANS_GEMINI_2,