Skip to content

Commit ccf195a

Browse files
committed
fix(ai-markmap-agent): use gpt-4o for translator to fix context length error
gpt-4 only has 8K context which caused translation failures when the combined input + max_tokens exceeded the limit.
1 parent f7c4122 commit ccf195a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/ai-markmap-agent/config/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ models:
295295

296296
# Translator - For translate mode languages
297297
translator:
298-
model: "gpt-4"
298+
model: "gpt-4o" # 128K context window (gpt-4 only has 8K)
299299
temperature: 0.3
300300
max_tokens: 8192
301301

@@ -455,7 +455,7 @@ output:
455455
enabled: true
456456
mode: "translate" # Translate from English (fast)
457457
source_lang: "en" # Source language to translate from
458-
translator_model: "gpt-4"
458+
translator_model: "gpt-4o" # 128K context (gpt-4 only has 8K)
459459

460460
# Output types
461461
types:

0 commit comments

Comments
 (0)