Skip to content

Commit

Permalink
Merge branch 'main' into beta119
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored May 17, 2024
2 parents 81c5f60 + ec731c2 commit 55c8b92
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions applogic/tongyiqianwen.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (app *App) ChatHandlerTyqw(w http.ResponseWriter, r *http.Request) {
}
}
}

// TODO: msgid是空的开始第一句也要处理 插入
// 获取历史信息
if msg.ParentMessageID != "" {
userhistory, err := app.getHistory(msg.ConversationID, msg.ParentMessageID)
Expand All @@ -159,8 +159,6 @@ func (app *App) ChatHandlerTyqw(w http.ResponseWriter, r *http.Request) {
fmtf.Printf("Error getting system history: %v,promptstr[%v]\n", err, promptstr)
return
}

// 处理增强QA逻辑
if config.GetEnhancedQA(promptstr) {
systemHistory, err := prompt.GetMessagesExcludingSystem(promptstr)
if err != nil {
Expand Down

0 comments on commit 55c8b92

Please sign in to comment.