Update translation updater to use claude-3-7-sonnet-20250219 (#7500)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2025-03-25 15:56:44 -07:00
committed by GitHub
parent 844d84d7bb
commit aaf65ebf0f
2 changed files with 2 additions and 2 deletions

View File

@@ -57,4 +57,4 @@ $ poetry run python docs/translation_updater.py
# ...
```
This process uses `claude-3-opus-20240229` as base model and each language consumes at least ~30k input tokens and ~35k output tokens.
This process uses `claude-3-7-sonnet-20250219` as base model and each language consumes at least ~30k input tokens and ~35k output tokens.

View File

@@ -56,7 +56,7 @@ def translate_content(content, target_lang):
system_prompt = f'You are a professional translator. Translate the following content into {target_lang}. Preserve all Markdown formatting, code blocks, and front matter. Keep any {{% jsx %}} tags and similar intact. Do not translate code examples, URLs, or technical terms.'
message = client.messages.create(
model='claude-3-opus-20240229',
model='claude-3-7-sonnet-20250219',
max_tokens=4096,
temperature=0,
system=system_prompt,