Unified · Split
| @@ -131,7 +131,7 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool) · 130 unmodified lines | ||
| 131 | 131 | return |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | − reasoningItem := []byte(`{"type":"reasoning","summary":[]}`) | |
| 134 | + reasoningItem := []byte(`{"type":"reasoning","summary":[],"content":null}`) | |
| 135 | 135 | if signature != "" { |
| 136 | 136 | reasoningItem, _ = sjson.SetBytes(reasoningItem, "encrypted_content", signature) |
| 137 | 137 | } |
| @@ -140,7 +140,6 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool) · 2 unmodified lines | ||
| 140 | 140 | summary, _ = sjson.SetBytes(summary, "text", thinkingText) |
| 141 | 141 | reasoningItem, _ = sjson.SetRawBytes(reasoningItem, "summary.-1", summary) |
| 142 | 142 | } |
| 143 | − | |
| 144 | 143 | template, _ = sjson.SetRawBytes(template, "input.-1", reasoningItem) |
| 145 | 144 | } |
| 146 | 145 | |