From 2846779603c0b5b9a6300cca7b69cbc443cf58cd Mon Sep 17 00:00:00 2001 From: Abhijith E A Date: Thu, 10 Oct 2024 20:40:15 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20fix(AzureOpenAI):=20o1=20model,?= =?UTF-8?q?=20`stream`=20parameter=20check=20(#4381)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/clients/OpenAIClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.js index c3e9a24ef39..e4c12ee5877 100644 --- a/api/app/clients/OpenAIClient.js +++ b/api/app/clients/OpenAIClient.js @@ -1309,7 +1309,7 @@ ${convo} /** @type {(value: void | PromiseLike) => void} */ let streamResolve; - if (modelOptions.stream && /\bo1\b/i.test(modelOptions.model)) { + if (modelOptions.stream && this.isO1Model) { delete modelOptions.stream; delete modelOptions.stop; }