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')
rzt = DictObject(**json.loads(b))
yield b + '\n'
if not rzt.status:
if not rzt.status or rzt.status == 'FAILED':
debug(f'{b=} return error')
return
if rzt.url:

View File

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