Delete Message typed dict

This commit is contained in:
fiatrete
2023-06-16 15:58:57 +08:00
parent 62d31b68ae
commit 88e3ed0648
6 changed files with 5 additions and 36 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ from typing import List
from jarvis import CFG
from jarvis.gpt import gpt
from jarvis.gpt.message import Message
from jarvis.logger import logger
@@ -27,7 +26,7 @@ async def acall_ai_function(function: str, args: list, description: str, model:
args = [str(arg) if arg is not None else "None" for arg in args]
# parse args to comma separated string
args: str = ", ".join(args)
messages: List[Message] = [
messages: List[dict] = [
{
"role": "system",
"content": f"You are now the following python function: ```# {description}"