fix(llm): scope Anthropic /v1 handling to model discovery

Model requests hand the configured baseURL to pi-ai unchanged. Only the discovery listing URL accepts the Anthropic API root with or without a trailing /v1, bec

Fix

Model requests hand the configured baseURL to pi-ai unchanged. Only the discovery listing URL accepts the Anthropic API root with or without a trailing /v1, because gateway documentation publishes both spellings.

Date
2026-09-02
Version
master@8179d92
commit
8179d92

View commit on GitHub

Model requests hand the configured baseURL to pi-ai unchanged. Only the discovery listing URL accepts the Anthropic API root with or without a trailing /v1, because gateway documentation publishes both spellings.