bugfix
This commit is contained in:
parent
95a591ef29
commit
0f5cff0c0e
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
|
from traceback import format_exc
|
||||||
import asyncio
|
import asyncio
|
||||||
import yaml
|
import yaml
|
||||||
from functools import partial
|
from functools import partial
|
||||||
@ -203,12 +204,12 @@ class IndustrialSkillEngine:
|
|||||||
'status': 'FAILED',
|
'status': 'FAILED',
|
||||||
'error': f"{e}"
|
'error': f"{e}"
|
||||||
})
|
})
|
||||||
|
debug(f'{e}\n{format_exc()}')
|
||||||
await 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):
|
||||||
# 如果是重试,跳过技能选择
|
# 如果是重试,跳过技能选择
|
||||||
await self.boot()
|
await self.boot()
|
||||||
debug(f'{self.registry=}')
|
|
||||||
if not is_retry:
|
if not is_retry:
|
||||||
await self.write_output({
|
await self.write_output({
|
||||||
"status": "PROCESSING",
|
"status": "PROCESSING",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user