mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix(openai): accept missing content-type on ChatGPT Responses SSE stream
This commit is contained in:
@@ -280,9 +280,12 @@ describe("buildGuardedModelFetch", () => {
|
||||
baseUrl: "https://chatgpt.com/backend-api/codex",
|
||||
} as unknown as Model<"openai-chatgpt-responses">;
|
||||
fetchWithSsrFGuardMock.mockResolvedValue({
|
||||
response: new Response(responseStreamText('event: response.created\ndata: {"ok": true}\n\n'), {
|
||||
status: 200,
|
||||
}),
|
||||
response: new Response(
|
||||
responseStreamText('event: response.created\ndata: {"ok": true}\n\n'),
|
||||
{
|
||||
status: 200,
|
||||
},
|
||||
),
|
||||
finalUrl: "https://chatgpt.com/backend-api/codex/responses",
|
||||
release,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user