Skip to content

feat: kimi /v1/responses - #6315

Closed
seefs001 wants to merge 1 commit into
QuantumNous:mainfrom
seefs001:feature/kimi-openai-responses
Closed

feat: kimi /v1/responses#6315
seefs001 wants to merge 1 commit into
QuantumNous:mainfrom
seefs001:feature/kimi-openai-responses

Conversation

@seefs001

@seefs001 seefs001 commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

⚠️ 提交说明 / PR Notice

Important

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

📝 变更描述 / Description

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

🚀 变更类型 / 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 OpenAI Responses requests through the Moonshot integration.
    • Requests now use the appropriate /responses endpoint based on the configured base URL.
    • Automatically applies a temperature of 1.0 for the supported Kimi model when needed.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8dd8cbf3-4009-46e4-b892-8d90530b6e08

📥 Commits

Reviewing files that changed from the base of the PR and between 5a6c53d and f2af76a.

📒 Files selected for processing (2)
  • relay/channel/moonshot/adaptor.go
  • relay/channel/moonshot/adaptor_test.go

Walkthrough

Moonshot now supports OpenAI responses relay URLs and implements response-request conversion by normalizing kimi-k2.6 temperature to 1.0. Tests cover conversion and default or overridden base URLs.

Changes

Moonshot Responses Support

Layer / File(s) Summary
Responses endpoint routing
relay/channel/moonshot/adaptor.go
GetRequestURL returns /responses for special bases and /v1/responses for general bases when responses relay mode is selected.
Request conversion and validation
relay/channel/moonshot/adaptor.go, relay/channel/moonshot/adaptor_test.go
ConvertOpenAIResponsesRequest normalizes kimi-k2.6 temperature to 1.0; tests verify conversion and both URL variants.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A bunny hops where responses flow,
To /v1/responses, off we go.
Kimi’s heat is set just right,
One point zero, crisp and bright.
Moonshot paths now bloom anew! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely reflects the main change: adding Kimi /v1/responses support.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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.

@seefs001 seefs001 closed this Jul 19, 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