remove await for synchronous method

This commit is contained in:
streetycat
2023-09-28 10:27:59 +00:00
parent 193c627bdb
commit 2bfa0995b1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
instance_id = "math_teacher" instance_id = "math_teacher"
fullname = "the one" fullname = "the one"
llm_model_name = "gpt-4-0613" llm_model_name = "LLaMA2-70B"
[[prompt]] [[prompt]]
role = "system" role = "system"
content = "你是精通数学的老师" content = "你是精通数学的老师"
+2 -2
View File
@@ -143,13 +143,13 @@ class AIOS_Shell:
nodes = ComputeNodeConfig.get_instance().initial() nodes = ComputeNodeConfig.get_instance().initial()
for node in nodes: for node in nodes:
await node.start() node.start()
ComputeKernel.get_instance().add_compute_node(node) ComputeKernel.get_instance().add_compute_node(node)
if await AIStorage.get_instance().is_feature_enable("llama"): if await AIStorage.get_instance().is_feature_enable("llama"):
llama_ai_node = LocalLlama_ComputeNode() llama_ai_node = LocalLlama_ComputeNode()
if await llama_ai_node.initial() is True: 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) ComputeKernel.get_instance().add_compute_node(llama_ai_node)
else: else:
logger.error("llama node initial failed!") logger.error("llama node initial failed!")