fix: 所有v1端点补充params_kw.llmcatelogid,确保llmclient正确路由
This commit is contained in:
parent
dd78e647da
commit
dd304972b5
@ -57,6 +57,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
|
||||
debug(f'{params_kw.model=} not found for catalog {lctype}')
|
||||
return openai_400()
|
||||
params_kw.llmid = recs[0].id
|
||||
params_kw.llmcatelogid = lctype
|
||||
|
||||
debug(f'{params_kw.llmid=}')
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
|
||||
debug(f'{params_kw.model=} not found for catalog {lctype}')
|
||||
return openai_400()
|
||||
params_kw.llmid = recs[0].id
|
||||
params_kw.llmcatelogid = lctype
|
||||
|
||||
debug(f'{params_kw.llmid=}')
|
||||
|
||||
|
||||
@ -44,6 +44,7 @@ where (b.id = ${catelogid}$ OR b.name = ${catelogid}$)
|
||||
debug(f'{params_kw.model=} not found')
|
||||
return openai_400()
|
||||
params_kw.llmid = recs[0].id
|
||||
params_kw.llmcatelogid = catelogid
|
||||
|
||||
debug(f'{params_kw.llmid=}')
|
||||
f = await checkCustomerBalance(params_kw.llmid, userid, userorgid)
|
||||
|
||||
@ -63,6 +63,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
|
||||
debug(f'{params_kw.model=} not found for catalog {lctype}')
|
||||
return openai_400()
|
||||
params_kw.llmid = recs[0].id
|
||||
params_kw.llmcatelogid = lctype
|
||||
|
||||
debug(f'{params_kw.llmid=}')
|
||||
|
||||
|
||||
@ -63,6 +63,7 @@ where (b.id = ${lctype}$ OR b.name = ${lctype}$)
|
||||
debug(f'{params_kw.model=} not found for catalog {lctype}')
|
||||
return openai_400()
|
||||
params_kw.llmid = recs[0].id
|
||||
params_kw.llmcatelogid = lctype
|
||||
|
||||
debug(f'{params_kw.llmid=}')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user