Skip to content

Commit

Permalink
fix: OpenAI API response
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed May 14, 2023
1 parent d405f5d commit 1a1797e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/stream-responser/stream_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1a1797e

Please sign in to comment.