From 2bfa0995b1d7c14df40ece21693fcc2f6c89b3e6 Mon Sep 17 00:00:00 2001 From: streetycat <305190374@qq.com> Date: Thu, 28 Sep 2023 10:27:59 +0000 Subject: [PATCH] remove await for synchronous method --- rootfs/agents/math_teacher/agent.toml | 2 +- src/service/aios_shell/aios_shell.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/agents/math_teacher/agent.toml b/rootfs/agents/math_teacher/agent.toml index 646c8e4..f7a29a5 100644 --- a/rootfs/agents/math_teacher/agent.toml +++ b/rootfs/agents/math_teacher/agent.toml @@ -1,6 +1,6 @@ instance_id = "math_teacher" fullname = "the one" -llm_model_name = "gpt-4-0613" +llm_model_name = "LLaMA2-70B" [[prompt]] role = "system" content = "你是精通数学的老师" diff --git a/src/service/aios_shell/aios_shell.py b/src/service/aios_shell/aios_shell.py index ce447e5..21c6e4a 100644 --- a/src/service/aios_shell/aios_shell.py +++ b/src/service/aios_shell/aios_shell.py @@ -143,13 +143,13 @@ class AIOS_Shell: nodes = ComputeNodeConfig.get_instance().initial() for node in nodes: - await node.start() + node.start() ComputeKernel.get_instance().add_compute_node(node) if await AIStorage.get_instance().is_feature_enable("llama"): llama_ai_node = LocalLlama_ComputeNode() if await llama_ai_node.initial() is True: - await llama_ai_node.start() + llama_ai_node.start() ComputeKernel.get_instance().add_compute_node(llama_ai_node) else: logger.error("llama node initial failed!")