修复:新建渠道获取模型时应用代理与请求头覆盖 - #6663
Conversation
支持全链路转发追踪、完整正文风险开关和模型映射上下游表达优化
关闭顶部导航文档后同步隐藏首页文档按钮
正确识别 error 接口中的空指针,避免成功请求被当作失败请求记录,同时补充仅失败与全部记录模式的回归测试。
通过中文 PR 补齐协作规范、PR 模板和前端旧分包故障审计记录。保留既有生产提交历史,不触发 Nanoapple 或 Macroapple 部署。
…fields 功能(web):模型价格统一为四项核心字段
修复(web):仅修改价格名称并恢复全部价格项
…el-key 修复:编辑普通渠道时使用已保存凭据获取模型
新建普通渠道预览此前只使用 type/key/base_url,丢弃前端提交的 proxy 与 header_override,导致“新建时获取失败、保存后再获取成功”。 同时将上游 HTML 响应的 JSON 解析错误改为可操作提示。
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (57)
WalkthroughThe pull request adds configurable relay tracing and image-failure auditing. It updates channel fetching, model routing, Gemini image handling, stale-chunk recovery, web fallback responses, frontend settings, branding, localization, and repository workflow documentation. ChangesRelay observability
Channel and routing behavior
Frontend recovery and presentation
Repository workflow
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant Client
participant Relay
participant UpstreamChannel
participant RelayTrace
participant TraceLogger
Client->>Relay: submit relay request
Relay->>RelayTrace: start trace
Relay->>UpstreamChannel: send upstream request
UpstreamChannel->>RelayTrace: capture request and response
Relay->>RelayTrace: finish with success or error
RelayTrace->>TraceLogger: write sanitized trace
Poem
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
误开到上游仓库,正确 PR 在 nanoapple8888#9 |
摘要
proxy与header_override,与高级自定义预览及已保存渠道行为一致invalid character '<' looking for beginning of value根因
新建未保存渠道走
POST /api/channel/fetch_models表单预览路径,后端只组装了 Type/Key/BaseURL,丢弃前端已提交的 proxy/header_override。保存后走GET /api/channel/fetch_models/:id读取完整 DB 配置,因此表现为“先保存再获取就不报错”。验证
go test ./controller -count=1 -run 'FetchModels|BuildFetchModels|ParseOpenAIModelIDs'go test ./controller -count=1风险
AI 辅助
Codex / opencode 辅助定位、实现与测试编写;提交前已人工核对 diff 与测试结果。
Summary by CodeRabbit
New Features
Bug Fixes
Documentation