Skip to content

Fix: Remove trailing slash from Anthropic's api_url#118

Open
jasmineleonard wants to merge 1 commit into
thmsmlr:mainfrom
jasmineleonard:fix-anthropic-api-url
Open

Fix: Remove trailing slash from Anthropic's api_url#118
jasmineleonard wants to merge 1 commit into
thmsmlr:mainfrom
jasmineleonard:fix-anthropic-api-url

Conversation

@jasmineleonard
Copy link
Copy Markdown

@jasmineleonard jasmineleonard commented Oct 31, 2025

The url/1 function in the Anthropic adapter appends the string "/v1/messages" to the api_url, which previously resulted in a url containing a double slash: "https://api.anthropic.com//v1/messages".

Anthropic no longer seems to tolerate this double slash and returns a 404 error for all requests. This fixes that.

The `url/1` function appends the string "/v1/messages" to the api_url, which previously resulted in a url containing a doubleh slash: "https://api.anthropic.com//v1/messages"

Anthropic no longer seems to tolerate this double slash and returns a 404 error for all requests. This fixes that.
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.

1 participant