From 1e28ed2c988ae1f298193bbf5b7a3acb66098c63 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Apr 2026 15:24:05 +0800 Subject: [PATCH] bugfix --- wwwroot/video/index.dspy | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/wwwroot/video/index.dspy b/wwwroot/video/index.dspy index f5db399..7c9d8a6 100644 --- a/wwwroot/video/index.dspy +++ b/wwwroot/video/index.dspy @@ -1,27 +1,14 @@ -params_kw.action = 't2v' -lctype = userid = await get_user() if userid is None: return openai_403 -if params_kw.model is None: +if params_kw.llmid is None: return openai_400() -llms = await get_llm_by_model(params_kw.model) -if llms is None: - debug(f'{params_kw.model=} not found in llm with error') - return openai_400() -if len(llms) == 0: - debug(f'{params_kw.model=} not found in llm') - return openai_400() -llm = llms[0] -params_kw.llmid = llm.id - f = await checkCustomerBalance(params_kw.llmid, userorgid) if not f: return openai_429() -model = params_kw.model env = request._run_ns -async with get_sor.context(env, 'llmage') as sor: +return await inference(request, env=env)