Unified · Split
| @@ -27,8 +27,8 @@ func ConvertOpenAIResponsesRequestToCodex(modelName string, inputRawJSON []byte, · 26 unmodified lines | ||
| 27 | 27 | rawJSON, _ = sjson.DeleteBytes(rawJSON, "top_p") |
| 28 | 28 | rawJSON, _ = sjson.DeleteBytes(rawJSON, "service_tier") |
| 29 | 29 | |
| 30 | − // Delete user field as requested | |
| 31 | − rawJSON, _ = sjson.DeleteBytes(rawJSON, "user") | |
| 30 | + // Delete the user field as it is not supported by the Codex upstream. | |
| 31 | + rawJSON, _ = sjson.DeleteBytes(rawJSON, "user") | |
| 32 | 32 | |
| 33 | 33 | // Convert role "system" to "developer" in input array to comply with Codex API requirements. |
| 34 | 34 | rawJSON = convertSystemRoleToDeveloper(rawJSON) |