mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 03:46:23 +02:00
Merge pull request #1209 from iorisa/fixbug/rsp_none
fixbug: action return None
This commit is contained in:
commit
f2ec6787c1
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ class Role(SerializationMixin, ContextMixin, BaseModel):
|
|||
elif isinstance(response, Message):
|
||||
msg = response
|
||||
else:
|
||||
msg = Message(content=response, role=self.profile, cause_by=self.rc.todo, sent_from=self)
|
||||
msg = Message(content=response or "", role=self.profile, cause_by=self.rc.todo, sent_from=self)
|
||||
self.rc.memory.add(msg)
|
||||
|
||||
return msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue