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