Switch to Sonnet for better accuracy, stronger anti-hallucination prompt
This commit is contained in:
@@ -109,7 +109,7 @@ Return ONLY the JSON object."""
|
||||
# Call Claude API
|
||||
client = anthropic.Anthropic(api_key=settings.ANTHROPIC_API_KEY)
|
||||
message = client.messages.create(
|
||||
model="claude-haiku-4-5-20251001",
|
||||
model="claude-sonnet-4-20250514",
|
||||
max_tokens=2000,
|
||||
messages=[{"role": "user", "content": prompt}],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user