mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #55] POST /v1/messages?beta=true returns 404 (query string not stripped in do_POST) — blocks Claude Code #33
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Nicolas0315 on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/55
Summary
do_POSTcomparesself.pathwithout stripping the query string, soPOST /v1/messages?beta=true(and/v1/chat/completions?...) returns404 {"error": {"message": "not found"}}.Claude Code always calls the Anthropic endpoint as
/v1/messages?beta=true, so it cannot talk to Strata at all. Claude Code reports this only as "There's an issue with the selected model … It may not exist or you may not have access to it", which makes it look like a model-name problem.Repro (commit
d551edf, engine 0.1.13)Without
?beta=truethe same request returns 200.Cause / fix
do_GETalready doespath = self.path.split("?")[0].rstrip("/")(serve/server.py ~L916), butdo_POSTusesself.path.rstrip("/")(~L994/L996). Using the same normalisation indo_POSTfixes it:(
/settingsindo_POSThas the same pattern.)Verified locally on Windows / RTX 4090 / IQ3_S: with this change Claude Code 2.1.283 (
ANTHROPIC_BASE_URL=http://127.0.0.1:<port>) reaches the engine. It then hits a second problem, filed separately (mid-conversationsystemmessages).Side note for the docs: Claude Code rejects model names it does not know, so users need
ANTHROPIC_MODEL=<a known Claude model id>; Strata ignores the name anyway.@Niko1221 commented on GitHub (Sep 28, 2026):
Thanks for the precise report and the fix - fixed in v0.1.17: every POST route now ignores the query string (
/v1/messages?beta=true,/v1/chat/completions?...,/settings), with a test using your request. The docs now say how to point Claude Code at Strata, including yourANTHROPIC_MODELnote. Please reopen if it still does not connect.