bugfix
This commit is contained in:
parent
e2fefa8bbc
commit
98a6644a0b
@ -194,7 +194,7 @@ class IndustrialSkillEngine:
|
|||||||
|
|
||||||
|
|
||||||
# --- 5. 主运行接口 ---
|
# --- 5. 主运行接口 ---
|
||||||
async def run(self, parmas_kw):
|
async def run(self, params_kw):
|
||||||
try:
|
try:
|
||||||
user_input = json.dumps(params_kw, ensure_ascii=False)
|
user_input = json.dumps(params_kw, ensure_ascii=False)
|
||||||
await self._run(user_input)
|
await self._run(user_input)
|
||||||
@ -203,7 +203,7 @@ class IndustrialSkillEngine:
|
|||||||
'status': 'FAILED',
|
'status': 'FAILED',
|
||||||
'error': f"{e}"
|
'error': f"{e}"
|
||||||
})
|
})
|
||||||
self.write_output(None)
|
await self.write_output(None)
|
||||||
|
|
||||||
async def _run(self, user_prompt: str, context=None, is_retry=False):
|
async def _run(self, user_prompt: str, context=None, is_retry=False):
|
||||||
# 如果是重试,跳过技能选择
|
# 如果是重试,跳过技能选择
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user