- Refactor chatCore.js to streamline imports and remove unused functions.
- Fix streaming /v1/responses
This commit is contained in:
1 parent
25c2ad7360
commit
5954b8f4eb
10 files changed
+785
-919
No files matched your search
@@ -32,7 +32,7 @@ export async function handleResponsesCore({ body, modelInfo, credentials, log, o
|
||||
convertedBody.stream = false;
|
||||
}
|
||||
|
||||
// Call chat core handler
|
||||
// Call chat core handler — force sourceFormat so streaming path knows this is a Responses API client
|
||||
const result = await handleChatCore({
|
||||
body: convertedBody,
|
||||
modelInfo,
|
||||
@@ -41,7 +41,8 @@ export async function handleResponsesCore({ body, modelInfo, credentials, log, o
|
||||
onCredentialsRefreshed,
|
||||
onRequestSuccess,
|
||||
onDisconnect,
|
||||
connectionId
|
||||
connectionId,
|
||||
sourceFormatOverride: "openai-responses"
|
||||
});
|
||||
|
||||
if (!result.success || !result.response) {
|
||||
|
||||
Reference in new issue
Block a user