File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Samples/All/Senparc.Weixin.Sample.CommonService/AI/MessageHandlers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
111
111
string prompt ;
112
112
bool storeHistory = true ;
113
113
bool judgeMultimodel = true ;
114
+ var oldChatStatus = chatStore . Status ;
114
115
115
116
if ( requestMessageText . Content . Equals ( "E" , StringComparison . OrdinalIgnoreCase ) )
116
117
{
@@ -152,7 +153,7 @@ private async Task<IResponseMessageBase> AIChatAsync(RequestMessageBase requestM
152
153
judgeMultimodel = true ;
153
154
}
154
155
155
- if ( chatStore . Status == ChatStatus . Chat )
156
+ if ( chatStore . Status == oldChatStatus )
156
157
{
157
158
if ( requestMessageText . Content . Equals ( "M" , StringComparison . OrdinalIgnoreCase ) )
158
159
{
You can’t perform that action at this time.
0 commit comments