From 1a1797ee82ae26b2247ee3eccfb31c352d275d52 Mon Sep 17 00:00:00 2001 From: soulteary Date: Sun, 14 May 2023 18:51:11 +0800 Subject: [PATCH] fix: OpenAI API response --- components/stream-responser/stream_builder.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/stream-responser/stream_builder.go b/components/stream-responser/stream_builder.go index 38285e1..cdb62a6 100644 --- a/components/stream-responser/stream_builder.go +++ b/components/stream-responser/stream_builder.go @@ -25,14 +25,14 @@ func StreamBuilder(parentMessageID string, conversationID string, modelSlug stri switch modelSlug { case datatypes.MODEL_OPENAI_API_3_5.Slug: - case datatypes.MODEL_TEXT_DAVINCI_002_PLUGINS.Slug: - // case datatypes.MODEL_TEXT_DAVINCI_002_RENDER_PAID.Slug: - case datatypes.MODEL_TEXT_DAVINCI_002_RENDER_SHA.Slug: - case datatypes.MODEL_GPT4.Slug: if define.ENABLE_OPENAI_API { sequences = MakeStreamingMessage(OpenaiAPI.Get(input), modelSlug, conversationID, messageID, mode) quickMode = false } + case datatypes.MODEL_TEXT_DAVINCI_002_PLUGINS.Slug: + // case datatypes.MODEL_TEXT_DAVINCI_002_RENDER_PAID.Slug: + case datatypes.MODEL_TEXT_DAVINCI_002_RENDER_SHA.Slug: + case datatypes.MODEL_GPT4.Slug: case datatypes.MODEL_MIDJOURNEY.Slug: if define.ENABLE_MIDJOURNEY { sequences = MakeStreamingMessage(input, modelSlug, conversationID, messageID, mode)