Skip to content

feat: glm chanel /v1/responses - #7050

Merged
seefs001 merged 1 commit into
QuantumNous:mainfrom
seefs001:feature/glm-responses
Aug 27, 2026
Merged

feat: glm chanel /v1/responses#7050
seefs001 merged 1 commit into
QuantumNous:mainfrom
seefs001:feature/glm-responses

Conversation

@seefs001

@seefs001 seefs001 commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)

支持系统内置智谱渠道类型的 /v1/responses 支持
ref: https://docs.bigmodel.cn/cn/guide/models/text/glm-5.3

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes # (如有)

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 IssuesPRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit

  • New Features
    • Added support for the OpenAI Responses relay format in the Zhipu 4V integration.
    • Requests using this format are now forwarded successfully instead of returning an unsupported-operation error.

@seefs001
seefs001 merged commit cae3676 into QuantumNous:main Aug 27, 2026
3 of 4 checks passed
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f192a21c-c3ed-44fe-894b-c9d732d195e7

📥 Commits

Reviewing files that changed from the base of the PR and between 8f6961c and 2e3bddb.

📒 Files selected for processing (1)
  • relay/channel/zhipu_4v/adaptor.go

Walkthrough

The Zhipu 4V adaptor now supports the OpenAI Responses relay mode. It builds the /api/v1/responses endpoint URL and passes Responses requests through unchanged.

Changes

Zhipu 4V Responses Support

Layer / File(s) Summary
Responses routing and request passthrough
relay/channel/zhipu_4v/adaptor.go
GetRequestURL returns the Responses endpoint for RelayModeResponses. ConvertOpenAIResponsesRequest returns the request unchanged.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: calcium-ion

Poem

A rabbit hops where Responses flow
The Zhipu path now knows where to go
Requests pass through, unchanged and bright
The endpoint points to the proper site
Ears up, the relay works just right

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

mrdjango added a commit to mrdjango/models-gateway that referenced this pull request Aug 28, 2026
* feat: glm chanel /v1/responses (QuantumNous#7050)

* feat(ollama): passthrough Claude Messages and OpenAI Responses (QuantumNous#7051)

* docs: update PR template and remove PR Check workflow (QuantumNous#7053)

* docs: update PR template and remove PR Check workflow

* docs: add hidden agent issue and PR templates

---------

Co-authored-by: Seefs <40468931+seefs001@users.noreply.github.com>
mrdjango added a commit to mrdjango/models-gateway that referenced this pull request Aug 29, 2026
* feat: glm chanel /v1/responses (QuantumNous#7050)

* feat(ollama): passthrough Claude Messages and OpenAI Responses (QuantumNous#7051)

* docs: update PR template and remove PR Check workflow (QuantumNous#7053)

* docs: update PR template and remove PR Check workflow

* docs: add hidden agent issue and PR templates

* fix(web): restore admin unbinding for built-in providers (QuantumNous#6987)

* fix(web): align admin binding types

Refs QuantumNous#6985

* test(web): restore animation mock

* fix(billing): 修复时间规则恒真表达式导致倍率全天生效 (QuantumNous#6934)


Co-authored-by: seefs001 <i@seefs.me>

* fix(docker): add relaykit go.mod to dev build context (QuantumNous#7072)

* feat(task): replace built-in task adaptors with a sandboxed JS plugin system (QuantumNous#7076)

* fix(relay): 请求参数校验错误返回 HTTP 400 (QuantumNous#6774)

* fix(relay): return 400 for invalid request parameters

* fix(web): recheck setup status after page reload (QuantumNous#6968)

* feat(auth): encrypt password login transport

Closes QuantumNous#6743

---------

Co-authored-by: Seefs <40468931+seefs001@users.noreply.github.com>
Co-authored-by: zcxads666 <128150298+zcxads666@users.noreply.github.com>
Co-authored-by: seefs001 <i@seefs.me>
Co-authored-by: Uladzislau <53997152+VladKabiak@users.noreply.github.com>
Co-authored-by: Calcium-Ion <i@caion.me>
Co-authored-by: Alex Xiang <ax2@zicode.com>
nanashiwang pushed a commit to nanashiwang/new-api that referenced this pull request Aug 29, 2026
AlphaWu pushed a commit to AlphaWu/new-api that referenced this pull request Aug 30, 2026
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.

1 participant