fix: rewrite query is empty
This commit is contained in:
@@ -166,8 +166,10 @@ func (p *PluginRewrite) OnEvent(ctx context.Context,
|
|||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update rewritten query
|
if response.Content != "" {
|
||||||
chatManage.RewriteQuery = response.Content
|
// Update rewritten query
|
||||||
|
chatManage.RewriteQuery = response.Content
|
||||||
|
}
|
||||||
logger.GetLogger(ctx).Infof("Rewritten query, session_id: %s, rewrite_query: %s",
|
logger.GetLogger(ctx).Infof("Rewritten query, session_id: %s, rewrite_query: %s",
|
||||||
chatManage.SessionID, chatManage.RewriteQuery)
|
chatManage.SessionID, chatManage.RewriteQuery)
|
||||||
return next()
|
return next()
|
||||||
|
|||||||
Reference in New Issue
Block a user