pref(provider):收敛公共契约并补齐 driver 能力声明#202
Closed
phantom5099 wants to merge 8 commits into
Closed
Conversation
# Conflicts: # internal/runtime/runtime.go
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Collaborator
Author
|
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.
变更说明
本 PR 实现 Provider Phase 2 的第一阶段收敛工作,目标是先把 provider 主链从旧的 OpenAI Chat 语义中抽离出来,建立后续多协议支持所需的统一契约、能力声明和更稳健的流式错误处理。
主要改动
Chat统一调整为Generate。ChatRequest等旧命名同步收敛为GenerateRequest,统一 runtime 与 provider 之间的调用模型。provider层增加 driver 能力声明,明确 streaming、tool transport、model discovery 等基础能力。EOF被误判为正常完成的问题,并补齐对应回归测试。预期收益