fix message init bug

This commit is contained in:
yzlin 2024-01-31 15:08:40 +08:00
parent b8d0547b7e
commit 30de3b4d64
2 changed files with 138 additions and 138 deletions

View file

@ -327,7 +327,7 @@ class AIMessage(Message):
"""
def __init__(self, content: str):
super().__init__(content, "assistant")
super().__init__(content=content, role="assistant")
class Task(BaseModel):