Skip to content

πŸ™Œ OpenHands: AI-Driven Development

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

Graham Neubigaaf65ebf0f05
diff --git a/docs/README.md b/docs/README.md
index ca8c9843b5..ded03b677c 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -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.
diff --git a/docs/translation_updater.py b/docs/translation_updater.py
index f0438d17c4..6cee25ade5 100644
--- a/docs/translation_updater.py
+++ b/docs/translation_updater.py
@@ -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,