Improve defualt agent Jarvis, fix some bug.

This commit is contained in:
Liu Zhicong
2023-09-19 21:36:56 -07:00
parent 42fe1ad4f4
commit e6d7b2b009
8 changed files with 117 additions and 30 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import os
import asyncio
from asyncio import Queue
import logging
import json
from .compute_task import ComputeTask, ComputeTaskResult, ComputeTaskState, ComputeTaskType
from .compute_node import ComputeNode
@@ -114,7 +115,7 @@ class OpenAI_ComputeNode(ComputeNode):
temperature=0.7) # TODO: add temperature to task params?
logger.info(f"openai response: {resp}")
logger.info(f"openai response: {json.dumps(resp, indent=4)}")
result = ComputeTaskResult()
result.set_from_task(task)