This commit is contained in:
yumoqing 2026-03-27 14:40:19 +08:00
parent 9697b9c16c
commit 5fbcd8a076

View File

@ -428,7 +428,7 @@ async def inference(request, *args, params_kw=None, **kw):
async def llm_query_price(llmid, config_data): async def llm_query_price(llmid, config_data):
env = ServerEnv() env = ServerEnv()
async with get_sor_context(env, 'llmage') as sor: async with get_sor_context(env, 'llmage') as sor:
llms = await sor.R('llm', {id': llmid}) llms = await sor.R('llm', {'id': llmid})
if not llms: if not llms:
e = Exception(f'id={llmid} llm not founnd') e = Exception(f'id={llmid} llm not founnd')
exception(f'{e}') exception(f'{e}')