Skip to content

Commit d85e13b

Browse files
committed
fix(codex): include content field in reasoning item initialization
1 parent 01e16a8 commit d85e13b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/translator/codex/claude/codex_claude_request.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool)
131131
return
132132
}
133133

134-
reasoningItem := []byte(`{"type":"reasoning","summary":[]}`)
134+
reasoningItem := []byte(`{"type":"reasoning","summary":[],"content":null}`)
135135
if signature != "" {
136136
reasoningItem, _ = sjson.SetBytes(reasoningItem, "encrypted_content", signature)
137137
}
@@ -140,7 +140,6 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool)
140140
summary, _ = sjson.SetBytes(summary, "text", thinkingText)
141141
reasoningItem, _ = sjson.SetRawBytes(reasoningItem, "summary.-1", summary)
142142
}
143-
144143
template, _ = sjson.SetRawBytes(template, "input.-1", reasoningItem)
145144
}
146145

0 commit comments

Comments
 (0)