fix: 修复可能的 KeyError
This commit is contained in:
1 parent
5c0ab21f68
commit
2a614b545b
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user