fix: 所有v1端点补充params_kw.llmcatelogid,确保llmclient正确路由

This commit is contained in:
yumoqing 2026-06-30 16:00:26 +08:00
parent dd78e647da
commit dd304972b5
5 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
debug(f'{params_kw.model=} not found for catalog {lctype}') debug(f'{params_kw.model=} not found for catalog {lctype}')
return openai_400() return openai_400()
params_kw.llmid = recs[0].id params_kw.llmid = recs[0].id
params_kw.llmcatelogid = lctype
debug(f'{params_kw.llmid=}') debug(f'{params_kw.llmid=}')

View File

@ -54,6 +54,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
debug(f'{params_kw.model=} not found for catalog {lctype}') debug(f'{params_kw.model=} not found for catalog {lctype}')
return openai_400() return openai_400()
params_kw.llmid = recs[0].id params_kw.llmid = recs[0].id
params_kw.llmcatelogid = lctype
debug(f'{params_kw.llmid=}') debug(f'{params_kw.llmid=}')

View File

@ -44,6 +44,7 @@ where (b.id = ${catelogid}$ OR b.name = ${catelogid}$)
debug(f'{params_kw.model=} not found') debug(f'{params_kw.model=} not found')
return openai_400() return openai_400()
params_kw.llmid = recs[0].id params_kw.llmid = recs[0].id
params_kw.llmcatelogid = catelogid
debug(f'{params_kw.llmid=}') debug(f'{params_kw.llmid=}')
f = await checkCustomerBalance(params_kw.llmid, userid, userorgid) f = await checkCustomerBalance(params_kw.llmid, userid, userorgid)

View File

@ -63,6 +63,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
debug(f'{params_kw.model=} not found for catalog {lctype}') debug(f'{params_kw.model=} not found for catalog {lctype}')
return openai_400() return openai_400()
params_kw.llmid = recs[0].id params_kw.llmid = recs[0].id
params_kw.llmcatelogid = lctype
debug(f'{params_kw.llmid=}') debug(f'{params_kw.llmid=}')

View File

@ -63,6 +63,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
debug(f'{params_kw.model=} not found for catalog {lctype}') debug(f'{params_kw.model=} not found for catalog {lctype}')
return openai_400() return openai_400()
params_kw.llmid = recs[0].id params_kw.llmid = recs[0].id
params_kw.llmcatelogid = lctype
debug(f'{params_kw.llmid=}') debug(f'{params_kw.llmid=}')