Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughAdds a channel-level opt-in for converting Claude assistant thinking text into OpenAI Chat ChangesClaude thinking replay
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ChannelSettings
participant RelayInfo
participant ConvOptions
participant ClaudeToOpenAIConverter
ChannelSettings->>RelayInfo: provides ClaudeThinkingToReasoningContent
RelayInfo->>ConvOptions: sets PreserveAssistantReasoning
ConvOptions->>ClaudeToOpenAIConverter: enables assistant thinking conversion
ClaudeToOpenAIConverter->>ClaudeToOpenAIConverter: writes thinking text to ReasoningContent
Possibly related issues
Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
Agent
Links
User request
Out of scope — refuse
Open gate — do not open unless all are satisfied
go buildor tests passed: yesKind
Issue facts
Change
新增既有 channel settings JSON 的
claude_thinking_to_reasoning_content,由 RelayInfo 的 per-request ConvOptions 快照传入 relaykit。默认 false 保持现有策略;显式 true 时,仅将 assistant 明文 thinking 按顺序写入 reasoning_content,保留空值与 reasoning-only 历史。不根据模型名推断能力,不将签名或 redacted payload 转成明文。管理员应只为已验证支持此扩展的目标开启,并合并进已有 settings,不覆盖其他键。无数据库列或 UI 扩展。
Research
Duplicate / prior art
Docs and code
Alternatives considered
Files
Behavior
Verification
Only what was actually run.
go test ./...与go build ./...全部通过;rootgo test ./relay/common -count=1与go build ./relay/common通过;另以 GOOS=linux、GOARCH=arm64、CGO_ENABLED=0 编译后端供隔离 HTTP 测试。新增测试实现前分别因 missing ReasoningContent / reasoning-only丢失 / JSON true 未接线而失败,实现后通过。Risks
Scope check
Summary by CodeRabbit
New Features
Bug Fixes
Tests