Skip to content

Commit fd5549f

Browse files
authored
Add reasoning_details (#33)
* add reasoning_details parameter
1 parent fc2ab89 commit fd5549f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ type ChatCompletionMessage struct {
505505

506506
// Reasoning Used by all the other models
507507
Reasoning *string `json:"reasoning,omitempty"`
508+
// Required to preserve reasoning blocks https://openrouter.ai/docs/use-cases/reasoning-tokens#preserving-reasoning-blocks
509+
ReasoningDetails []ChatCompletionReasoningDetails `json:"reasoning_details,omitempty"`
508510

509511
FunctionCall *FunctionCall `json:"function_call,omitempty"`
510512

0 commit comments

Comments
 (0)