Anthropic Known Pitfalls Pitfall 1: Wrong Import / Class Name Pitfall 2: Forgetting max tokens (Required) Pitfall 3: System Prompt in Messages Array Pitfall 4: Accessing Response Wrong Pitfall 5: Ignoring Stop Reason Pitfall 6: Not Handling tool use id Properly Pitfall 7: Hardcoding Model IDs Without Versioning Pitfall 8: Not Using SDK Auto-Retry Pitfall 9: Inflated max tokens Pitfall 10: No Cost Tracking Quick Reference: Anthropic vs OpenAI Differences | Feature | OpenAI | Anthropic | |---------|--------|-----------| | | Optional | Required | | System prompt | In messages array | parameter |…