optimize: access to is_human

This commit is contained in:
kkdev163 2024-01-08 22:29:17 +08:00
parent 6cde039f7f
commit bd2b1950eb

View file

@ -166,7 +166,7 @@ class Role(SerializationMixin, is_polymorphic_base=True):
Role.model_rebuild()
super().__init__(**data)
if data.get("is_human"):
if self.is_human:
self.llm = HumanProvider()
self.llm.system_prompt = self._get_prefix()