Skip to content

Commit

Permalink
OpenAI
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Jun 17, 2024
1 parent c413601 commit 20cbb91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/server/modules/service/aichat.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type AiChatService struct {
}

func (s *AiChatService) KnowledgeBaseChat(req v1.KnowledgeBaseChatReq, flusher http.Flusher, ctx iris.Context) (ret _domain.PageData, err error) {
//req.KnowledgeBaseName = "samples"
if strings.TrimSpace(req.Query) == "小乐" {
str := fmt.Sprintf(`data: {"answer": "您好,有什么可以帮助您的?"}`)

Expand Down

0 comments on commit 20cbb91

Please sign in to comment.