sdk_usageTier 1 · 70% confidence

ai-agents-sdk-usage-user-writes-claude-api-calls-but-uses-raw-http-req-e01ecc70

agent: ai_agents

When does this happen?

IF User writes Claude API calls but uses raw HTTP (requests/fetch) in an SDK-supported project.

How others solved it

THEN Default to official Anthropic SDK (e.g., `anthropic` for Python, `@anthropic-ai/sdk` for TS). Only use raw HTTP when user explicitly requests cURL or the language has no SDK. Never mix SDK and raw HTTP in the same project.

import anthropic
client = anthropic.Anthropic()

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics