6 Reasons Why Claude Code Uses OpenAI Compatibility Mode Instead of /v1/messages (Complete NPM Version Troubleshooting Guide)
Author's Note: Claude Code installed via NPM should use the native /v1/messages endpoint, but it's actually requesting /v1/chat/completions? This article analyzes 6 potential causes based on official mechanisms, provides a 5-step quick diagnostic plan, and shows the correct configuration for APIYI integration. According to official documentation, @anthropic-ai/claude-code installed via NPM should always send requests to…
