remove await for synchronous method
This commit is contained in:
@@ -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 = "你是精通数学的老师"
|
||||||
|
|||||||
@@ -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!")
|
||||||
|
|||||||
Reference in New Issue
Block a user