From 3e29d39f051eaab62a1702ed224b68ede7057135 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:24:56 +0300 Subject: [PATCH] Fix Palm when streaming is enabled --- public/scripts/openai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index c4d2ccb4c..7b463710e 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -1191,7 +1191,7 @@ async function sendOpenAIRequest(type, openai_msgs_tosend, signal) { const isTextCompletion = oai_settings.chat_completion_source == chat_completion_sources.OPENAI && textCompletionModels.includes(oai_settings.openai_model); const isQuiet = type === 'quiet'; const isImpersonate = type === 'impersonate'; - const stream = oai_settings.stream_openai && !isQuiet && !isScale && !isAI21; + const stream = oai_settings.stream_openai && !isQuiet && !isScale && !isAI21 && !isPalm; if (isAI21 || isPalm) { const joinedMsgs = openai_msgs_tosend.reduce((acc, obj) => {