Skip to content

fix: respect ANTHROPIC_BASE_URL for inline comment classification#1473

Open
Epochex wants to merge 1 commit into
anthropics:mainfrom
Epochex:codex/fix-inline-classifier-base-url
Open

fix: respect ANTHROPIC_BASE_URL for inline comment classification#1473
Epochex wants to merge 1 commit into
anthropics:mainfrom
Epochex:codex/fix-inline-classifier-base-url

Conversation

@Epochex

@Epochex Epochex commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #1418.

This updates the buffered inline comment classifier to build its Anthropic messages endpoint from ANTHROPIC_BASE_URL when configured, while keeping the existing https://api.anthropic.com/v1/messages default. It also normalizes trailing slashes so proxy/base URLs can be configured without producing a double slash.

Validation run locally:

  • npx.cmd --yes bun@latest test ./test/post-buffered-inline-comments.test.ts
  • npx.cmd --yes bun@latest run typecheck
  • npx.cmd prettier@3.5.3 --check src/entrypoints/post-buffered-inline-comments.ts test/post-buffered-inline-comments.test.ts
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hard coded base URL overrides ANTHROPIC_BASE_URL

1 participant