Skip to content

Hard coded base URL overrides ANTHROPIC_BASE_URL #1418

Description

@the-real-mathew-moon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp2Non-showstopper bug or popular feature requestprovider:1pAnthropic First-Party API

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions