Use claude-3-haiku model (configurable via CLAUDE_MODEL env)

This commit is contained in:
Min Zeya Phyo
2026-02-19 20:16:01 +08:00
parent 4ab83ba420
commit 4829f15010

View File

@@ -80,7 +80,7 @@ CATEGORY_KEYWORDS = {
# Translation settings # Translation settings
TRANSLATION = { TRANSLATION = {
'model': 'claude-3-5-sonnet-20241022', 'model': os.getenv('CLAUDE_MODEL', 'claude-3-haiku-20240307'),
'max_tokens': 4000, 'max_tokens': 4000,
'temperature': 0.5, # Higher = more natural, casual translation 'temperature': 0.5, # Higher = more natural, casual translation
'preserve_terms': [ # Technical terms to keep in English 'preserve_terms': [ # Technical terms to keep in English