mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
optimize: access to is_human
This commit is contained in:
parent
6cde039f7f
commit
bd2b1950eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue