Skip to content

Commit

Permalink
Merge pull request #3019 from JeffreySu/Developer
Browse files Browse the repository at this point in the history
更新 Sample,修改 AI 重新进入后的状态判断逻辑
  • Loading branch information
JeffreySu authored May 29, 2024
2 parents cd6accb + da6aaf5 commit f765bf4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
string prompt;
bool storeHistory = true;
bool judgeMultimodel = true;
var oldChatStatus = chatStore.Status;

if (requestMessageText.Content.Equals("E", StringComparison.OrdinalIgnoreCase))
{
Expand Down Expand Up @@ -152,7 +153,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
judgeMultimodel = true;
}

if (chatStore.Status == ChatStatus.Chat)
if (chatStore.Status == oldChatStatus)
{
if (requestMessageText.Content.Equals("M", StringComparison.OrdinalIgnoreCase))
{
Expand Down

0 comments on commit f765bf4

Please sign in to comment.