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.
Describe the bug
The
classifyComments()function used a hardcoded https://api.anthropic.com/v1/messages URL via raw fetch(), bypassingANTHROPIC_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_URLis respectedAPI 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.