bugfix
This commit is contained in:
parent
f1e761adda
commit
4a938728b8
@ -87,6 +87,7 @@ class IndustrialSkillEngine:
|
||||
self.state = {"current_skill": None, "history": [], "pending_params": []}
|
||||
|
||||
async def write_output(self, data=None):
|
||||
debug('-----------write_output() called: {data=}')
|
||||
await self.task_queue.put(data)
|
||||
|
||||
# --- 1. 工业级初始化:依赖检查与索引 ---
|
||||
@ -186,12 +187,14 @@ class IndustrialSkillEngine:
|
||||
|
||||
return base_content
|
||||
|
||||
async def reference(self, params_kw):
|
||||
async def inference(self, params_kw):
|
||||
f = partial(self.run, params_kw)
|
||||
asyncio.create_task(self.run(params_kw))
|
||||
while True:
|
||||
|
||||
data = await self.task_queue.get()
|
||||
if not data:
|
||||
debug('End Data')
|
||||
break;
|
||||
debug(f'{data=}, {type(data)=}')
|
||||
yield json.dump(data, ensure_ascii=False) + '\n'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user