From 7d5be6874790655e9060ed93dc67cf7c9a0fad52 Mon Sep 17 00:00:00 2001 From: Hongkai Ye Date: Wed, 20 Nov 2024 12:53:23 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8A=20feat:=20add=20streaming=20suppor?= =?UTF-8?q?t=20for=20o1=20models=20(#4760)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/clients/OpenAIClient.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js index 848547314b8..d06ddd91775 100644 --- a/api/app/clients/OpenAIClient.js +++ b/api/app/clients/OpenAIClient.js @@ -1308,11 +1308,6 @@ ${convo} /** @type {(value: void | PromiseLike) => void} */ let streamResolve; - if (modelOptions.stream && this.isO1Model) { - delete modelOptions.stream; - delete modelOptions.stop; - } - if (modelOptions.stream) { streamPromise = new Promise((resolve) => { streamResolve = resolve;