fix: volcengine claude DoResponse - #2295
Conversation
WalkthroughAdds an early Claude-format detection branch in DoResponse for the Volcengine channel adaptor. When RelayFormat is Claude, the handler routes to Claude-specific handlers (ClaudeStreamHandler for streaming or ClaudeHandler otherwise) before subsequent response processing, bypassing the prior unified flow. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant DoResponse
participant ClaudeHandler as Claude<br/>Handlers
participant OtherHandler as Other<br/>Handlers
Client->>DoResponse: Response with RelayFormat
alt RelayFormat == Claude
DoResponse->>ClaudeHandler: Route to ClaudeStreamHandler<br/>(streaming) or ClaudeHandler
ClaudeHandler-->>Client: Process Claude response
else Other formats
DoResponse->>OtherHandler: Process via standard flow
OtherHandler-->>Client: Process response
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)relay/channel/volcengine/adaptor.go (3)
🔇 Additional comments (1)
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 |
fix: volcengine claude DoResponse
fix #2288
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.