Skip to content

feat(model): 建立模型出口配置与统一 HTTP 请求层 - #4082

Merged
YehongPan merged 8 commits into
developfrom
feature/model-profile-resolution
Nov 2, 2026
Merged

YehongPan merged 8 commits into
developfrom
feature/model-profile-resolution

Conversation

@JasonW404

@JasonW404 JasonW404 commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

为LLM模型出口建立结构化快照、参数覆盖与兼容读取规则,并提供统一HTTP发送基础。保存值保留显式0/false/null语义;兼容读取不重算或写回出口配置。

变更

  • 出口身份、能力、参数、连接与来源同记录存储,及对应增量SQL。
  • HTTP/SSE发送、Header鉴权、超时、TLS、取消与错误转换基础。
  • 兼容旧配置及上下文预算身份校验,保留静默协议恢复。
  • GLM回退分类区分版本前缀GLM-V5.2和视觉后缀GLM-4.6V;不把所有视觉GLM转为LLM,不改写原始请求ID。
  • 模型HTTP响应递归排除api_key和完整http_headers,阻止数据库中的Header凭据进入7个列表/发现/管理响应;内部调用仍保留凭据。
  • thinking组合策略在副本上应用全部更改后校验一次;profile_default/default联合重置先恢复degree、再恢复toggle,保留原规则/值、未知状态及重复重置幂等性。独立API仍校验,非法条件及固定参数修改仍拒绝。

验证(7f71c4db6e)

  • 新Header UT10项;thinking文件23项,覆盖3种toggle×2种degree、原配置恢复、重复重置、凭据绑定、固定参数和非法单独重置。原代码复现10项Header与6项联合重置失败。
  • 本地Nexent-Test:开发源码相关29组3577通过/4既有跳过,最后新增2项凭据绑定变体另行通过。干净快照重建的实际镜像中29组3579通过/4既有跳过/0失败,854个后端/SDK Python及310个安装SDK文件与提交一致。
  • 维护脚本重建main/web/MCP,并从v2.8.2快照部署infra/application/supabase;原用户/密码/Test Tanent保留,7迁移通过,5应用入口就绪,无源码覆盖挂载。
  • 正式4用例14测试通过:MODEL-OUTLET-SCHEMA-D5-001、CMSR-D1-003、MODEL-RECOVERY-D3-001、新SEC-MODEL-HEADERS-D2-001。真实数据库→5列表HTTP均不暴露Header字段/值,内部数据完整,测试模型清理且默认配置未变。
  • qwen3.8-flash真实Workbench API/内置浏览器/普通已发布Agent通过;401/403/非法选择422负例通过。浏览器指定会话刷新保留模型和回答。本轮推理/历史验证无console error;旧快照登录恢复时的一次过期会话not found已独立保留。
  • Phoenix3成功trace/16span逐步检查,真实Python仅执行一次17*19得到323,最终输出正确;前2次混合code/final由既有协议恢复拒绝后成功。无ERROR;HTTP/LLM/TOOL的UNSET按原状态保留。非法选择另1trace仅HTTP422、无LLM。
  • 实际镜像新增可执行行覆盖1134/1200=94.50%;33个partial行全视未覆盖仍91.75%。这是本地相关测试证据,不冒充Codecov服务端结果。

CI与边界

新HEAD7f71c4db6e已生成的13项检查全部成功:单测、双架构main/MCP/data-process镜像、CodeQL和版权,以及codecov/patch。该HEAD的Codecov检查显示92.50%(目标90%),PR会话中的Codecov报告同步为92.50000%。此前2df8的外部报告处理错误已由本轮可用报告解除。

基线为develop a256024,当前HEAD7f71c4db6e。后五层PR未变基或推送。修复期间develop新增认证架构并前进到4fee5a2cf4;临时合并树无冲突,31集中UT通过,严格资产验证10问题与干净4fee完全相同,本轮未声称验证合并后的新鉴权运行时。

PR基线严格资产校验仍有2项既有责任归属缺失(SYS-AGENT-LIFECYCLE/SYS-AGENT-D5-001),不是本PR新增,不能宣称全量门禁全绿。本层验收不代表后五层统一运行时或VLM推理验收。

完整脱敏证据:独立nexent-doc docs/Developing/model-access-native-agent/acceptance/20261031-pr4082-review-fixes/RESULTS.md。私有凭据及数据库未上传PR或文档。

@JasonW404
JasonW404 removed this pull request from stack #4080 October 13, 2026 09:43
@JasonW404 JasonW404 changed the title [WIP] Resolved model outlet construction [WIP] Resolved model outlet construction and persistence Oct 13, 2026
@JasonW404
JasonW404 changed the base branch from feature/model-outlet-storage to feature/model-profile-composition October 13, 2026 09:43
@JasonW404
JasonW404 added this pull request to stack #4086 October 13, 2026 09:43
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch from 77447c0 to 51b2ca6 Compare October 16, 2026 04:04
@JasonW404 JasonW404 changed the title [WIP] Resolved model outlet construction and persistence [WIP] 档案组合、出口规范与数据库迁移结构 Oct 16, 2026
@JasonW404
JasonW404 removed this pull request from stack #4086 October 16, 2026 04:06
@JasonW404
JasonW404 added this pull request to stack #4123 October 16, 2026 04:06
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch from 51b2ca6 to 27bb4d5 Compare October 16, 2026 04:29
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch from 27bb4d5 to 59e01f4 Compare October 16, 2026 04:48
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch 2 times, most recently from 8d71339 to dda781d Compare October 16, 2026 08:34
Copilot AI balanced review requested due to automatic review settings October 29, 2026 03:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch from e985bf0 to d171079 Compare October 29, 2026 03:36
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch 2 times, most recently from 6ce41b2 to fdf4c0f Compare October 29, 2026 05:55
Base automatically changed from feature/model-profile-composition to develop October 29, 2026 13:58
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch 2 times, most recently from f17fdec to da5a8d0 Compare October 31, 2026 03:04
@JasonW404
JasonW404 force-pushed the feature/model-profile-resolution branch from da5a8d0 to 2df8c7e Compare October 31, 2026 08:12
@YehongPan
YehongPan merged commit a792f54 into develop Nov 2, 2026
13 checks passed
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.

4 participants