From f8a2195a953eab35d3cc257d0661956848bfbcd4 Mon Sep 17 00:00:00 2001 From: Miyamizu-MitsuhaSang <2510681107@qq.com> Date: Fri, 7 Nov 2025 14:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/ai_assist/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/ai_assist/service.py b/app/api/ai_assist/service.py index 68f739b..afecc53 100644 --- a/app/api/ai_assist/service.py +++ b/app/api/ai_assist/service.py @@ -11,7 +11,7 @@ async def get_and_set_last_key(redis: Redis, word: str, user_id: str): print(last_word) # 如果上一次查的词和这次不同,就清空旧词的记录 - if last_word and last_word.decode() != word: + if last_word and last_word != word: await clear_chat_history(redis, user_id, last_word.decode()) # 更新当前词