refactor(embedding): 收口共享 HTTP 客户端 - #57
Merged
Merged
Conversation
uvwt
force-pushed
the
refactor/shared-embedding-client-20260929
branch
from
September 29, 2026 11:33
9288e7a to
862d1eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
internal/embedding客户端,集中 OpenAI-compatible Embedding HTTP request、Bearer header、32 MiB response limit、公共 data/embeddings 响应解析与结构化 StatusError/v1/embeddings,显式自定义 path 原样使用/v1/embeddings后缀继续自动追加embedding响应兼容;共享 parser 与 Workflow 不接受这一 Recall 专属形态HTTP <code>: <bounded body>;Workflow 仍只暴露 HTTP status,不泄露上游 body验证
go test ./internal/embedding ./internal/recall ./internal/workflow ./internal/httpx ./internal/settingsgo list -deps ./internal/workflow确认不再依赖internal/recallmake checkmake ci(含go test -race ./...与最终 build)git diff --check