Anthropic provider template Base URL missing /v1 — every request 404s
Blinko version: blinkospace/blinko:latest (image built 2026-06-20, digest sha256:31c3bc9f4fc00c82328c098c0c1120fe7fe43152a9f3cbc04b0303c32a2e60d3)
Setup: Docker Compose, Anthropic added as a provider under Settings → AI using the built-in "Anthropic" template
Description
The Anthropic provider template (PROVIDER_TEMPLATES in app/src/components/BlinkoSettings/AiSetting/constants.tsx) fills in:
defaultBaseURL: 'https://api.anthropic.com'This value is passed straight through to createAnthropic({ baseURL: config.baseURL, ... }) in server/aiServer/providers/LLMProvider.ts. The @ai-sdk/anthropic client expects baseURL to already include the API version path — its own default is https://api.anthropic.com/v1. Passing the bare host without /v1 overrides that default and every request goes to the wrong path.
Steps to Reproduce
- Settings → AI → Add Provider → Anthropic (use the template as-is, don't edit Base URL)
- Add a Claude model, save
- Trigger any AI feature (AI Tag, AI Chat,
@-search)
Observed
Toast: Error: Not Found. Server logs (docker compose logs blinko):
url: 'https://api.anthropic.com/messages'
statusCode: 404(Note: missing /v1 — should be https://api.anthropic.com/v1/messages.)
Expected
Either the template should default to https://api.anthropic.com/v1, or the client construction should not let a bare-host override wipe out the SDK's own versioned default.
Workaround
Manually edit the Anthropic provider's Base URL to https://api.anthropic.com/v1 after creating it from the template.
Source: blinkospace/blinko