Skip to content

Commit

Permalink
chore: github hot project api, allow use streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed May 29, 2023
1 parent 0066a06 commit 574f3f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/stream-responser/stream_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

eb "github.com/soulteary/sparrow/components/event-broker"
FlagStudio "github.com/soulteary/sparrow/connectors/flag-studio"
GitHubTop "github.com/soulteary/sparrow/connectors/github-top"
OpenaiAPI "github.com/soulteary/sparrow/connectors/openai-api"
"github.com/soulteary/sparrow/internal/datatypes"
"github.com/soulteary/sparrow/internal/define"
Expand Down Expand Up @@ -52,6 +53,11 @@ func StreamBuilder(parentMessageID string, conversationID string, modelSlug stri
sequences = MakeStreamingMessage(input, modelSlug, conversationID, messageID, mode)
quickMode = true
}
case datatypes.MODEL_GITHUB_TOP.Slug:
if define.ENABLE_GITHUB_TOP {
sequences = MakeStreamingMessage(GitHubTop.HandleUserPrompt(input), modelSlug, conversationID, messageID, mode)
quickMode = true
}
// case datatypes.MODEL_NO_MODELS.Slug:
// default:
}
Expand Down

0 comments on commit 574f3f4

Please sign in to comment.