This commit is contained in:
yumoqing 2025-09-08 19:23:08 +08:00
parent 4914ddf4dd
commit a38a718980
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ async def async_uapi_request(request, llm, sor):
b = b.decode('utf-8') b = b.decode('utf-8')
rzt = DictObject(**json.loads(b)) rzt = DictObject(**json.loads(b))
yield b + '\n' yield b + '\n'
if not rzt.status: if not rzt.status or rzt.status == 'FAILED':
debug(f'{b=} return error') debug(f'{b=} return error')
return return
if rzt.url: if rzt.url:

View File

@ -14,7 +14,7 @@
{ {
"llmid":"{{llm.id}}", "llmid":"{{llm.id}}",
"llmcatelogid":"{{llm.llmcatelogid}}", "llmcatelogid":"{{llm.llmcatelogid}}",
"response_mode": "{{'stream' if llm.stream=='1' else 'sync'}}", "response_mode": "{{llm.stream'}}",
"output_view":{{llm.output_view}}, "output_view":{{llm.output_view}},
"icon":"{{entire_url('/appbase/get_icon.dspy')}}?id={{llm.iconid}}", "icon":"{{entire_url('/appbase/get_icon.dspy')}}?id={{llm.iconid}}",
"url":"{{entire_url('/llmage/llminference.dspy')}}", "url":"{{entire_url('/llmage/llminference.dspy')}}",