fix(openai): support websocket custom base URLs (#29636)
This commit is contained in:
parent
49e8d324dd
commit
ec26d78450
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ export async function CodexAuthPlugin(input: PluginInput, options: CodexAuthPlug
|
||||||
...init,
|
...init,
|
||||||
headers,
|
headers,
|
||||||
}
|
}
|
||||||
if (websocketFetch && parsed.pathname.includes("/v1/responses")) return websocketFetch(url, requestInit)
|
if (websocketFetch && parsed.pathname.endsWith("/responses")) return websocketFetch(url, requestInit)
|
||||||
return fetch(url, OpenAIWebSocketPool.withoutInternalHeaders(requestInit))
|
return fetch(url, OpenAIWebSocketPool.withoutInternalHeaders(requestInit))
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue