Fix : Codex on cursor

This commit is contained in:
decolua committed 2026-03-01 15:35:41 +07:00
1 parent a84477e815
commit a7365c5a4e
4 files changed
+24 -1

No files matched your search

@@ -143,6 +143,9 @@ export function openaiResponsesToOpenAIRequest(model, body, stream, credentials)
* Convert OpenAI Chat Completions to OpenAI Responses API format
*/
export function openaiToOpenAIResponsesRequest(model, body, stream, credentials) {
// Body already in Responses API format (e.g. Cursor CLI calling /chat/completions with input[])
if (body.input) return { ...body, model, stream: true };
const result = {
model,
input: [],