mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1807] [CLOSED] config: forward - POSTs to a path answered by another server (embeddings, reranking) #3688
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#3688
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1807
Author: @gt50
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:forward📝 Commits (2)
fded2c1config: forward, POSTs to a path answered by another server (embeddings, reranking)83a2834config: forward refuses every POST path Strata answers itself, read from _post by a test📊 Changes
3 files changed (+170 additions, -1 deletions)
View changed files
📝
docs/DETAILS.md(+7 -0)📝
serve/server.py(+72 -0)📝
serve/test_server.py(+91 -1)📄 Description
Title
Config: "forward", POSTs to a path answered by another server (embeddings, reranking)
Summary
Clients that expect
/v1/embeddingsand/v1/rerankbeside the chat model, as llama-server or LM Studio provide, can't use them with Strata today (404)."forward": {"/v1/embeddings": "http://127.0.0.1:8081/v1/embeddings"}passes POSTs to those paths to another server and its answer back as it came, so those clients keep one base URL. Split out of #1789 (which now only carries the Windows AMD images), as AGENTS.md asks: one change per PR, a new feature opt-in.What changed
serve/server.py:forward_of(): paths start with/and can't be Strata's own (OWN_API_PATHS,/v1/responses*); URLs are http(s); anything else is a config error at start._forward()runs after Strata's Host, API-key and web-page checks, and does not send Strata's API key on.502withcode: forward_failed. The start log names each forward.docs/DETAILS.md.Extra Notes
llama-server --embeddingwith Qwen3-Embedding-0.6B at 127.0.0.1:8081, reached through Strata from the host and from a Docker container. A client's search by meaning found the right document for 8 of 8 test questions.serve/test_server.pyForward, against a local side server: status and body passed back, no Authorization sent on, 502 when down, the config checks. Allserveand setup test files pass onmain61b3fb5d(1155 tests; rebased).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.