Repository navigation
feat: 透传thinking参数, 豆包模型用来控制是否思考 - #1261
Conversation
WalkthroughA new field named Changes
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
dto/openai_request.go (1)
56-56: Fix the field naming convention to follow Go standards.The field name
THINKINGuses all uppercase letters, which doesn't follow Go naming conventions. Exported struct fields should use PascalCase.Apply this diff to fix the naming convention:
- THINKING json.RawMessage `json:"thinking,omitempty"` // doubao + Thinking json.RawMessage `json:"thinking,omitempty"` // doubaoThe use of
json.RawMessageand theomitemptytag are appropriate for transparent parameter transmission to the Doubao model.
透传thinking参数, 豆包模型用来控制是否思考
透传thinking参数, 豆包模型用来控制是否思考
透传thinking参数, 豆包模型用来控制是否思考
透传thinking参数, 豆包模型用来控制是否思考
Summary by CodeRabbit