From 2a614b545b8b5c03687d47ede1ae0dc9d5360eda Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 5 Feb 2025 17:17:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E7=9A=84=20KeyError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/provider/provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/provider/provider.py b/astrbot/core/provider/provider.py index 144a76d56..7fd93b41c 100644 --- a/astrbot/core/provider/provider.py +++ b/astrbot/core/provider/provider.py @@ -17,8 +17,8 @@ class Personality(TypedDict): mood_imitation_dialogs: List[str] = [] # cache - _begin_dialogs_processed: List[dict] - _mood_imitation_dialogs_processed: str + _begin_dialogs_processed: List[dict] = [] + _mood_imitation_dialogs_processed: str = "" @dataclass