fix: claude request missing field - #2304
Conversation
WalkthroughThree new optional fields were added to the ClaudeRequest struct in dto/claude.go: OutputConfig, OutputFormat, and Container. These fields use json.RawMessage type with omitempty tags, allowing flexible JSON payload handling without modifying existing functionality. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
dto/claude.go (1)
206-208: Add documentation for the new public fields to align with Go conventions.These three new fields (
OutputConfig,OutputFormat,Container) correspond to Claude API request parameters for structured outputs and container configuration. WhileOutputFormatis already used inrelay/channel/replicate/adaptor.go, all three fields lack documentation comments explaining their purpose—this should be added for maintainability of public struct fields.Apply this diff:
+ // OutputConfig specifies configuration for structured outputs behavior in Claude API requests OutputConfig json.RawMessage `json:"output_config,omitempty"` + // OutputFormat specifies the structured output format (e.g., JSON schema) for Claude API responses OutputFormat json.RawMessage `json:"output_format,omitempty"` + // Container specifies container or sandbox configuration for code execution in Claude API requests Container json.RawMessage `json:"container,omitempty"`
…field fix: claude request missing field
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.