Hard coded base URL overrides ANTHROPIC_BASE_URL
Author: the-real-mathew-moonCreated Jun 17, 2026Updated Sep 17, 2026
Labelsbugprovider:1pp2
Describe the bug
The classifyComments() function used a hardcoded https://api.anthropic.com/v1/messages URL via raw fetch(), bypassing ANTHROPIC_BASE_URL. Users who set this env var to route traffic through an LLM gateway or proxy found that the comment classification step always hit api.anthropic.com directly.
To Reproduce Set ANTHROPIC_BASE_URL, block access to api.anthropic.com on the client's network, and call classifyComments()
Expected behavior
ANTHROPIC_BASE_URL is respected
API Provider
[x] Anthropic First-Party API (default)
Additional context A PR to fix this has been open for quite some time. Opening a bug report to close the loop.
Source: anthropics/claude-code-action