fix: always use llm.model (vendor model name) instead of user-passed model param

This commit is contained in:
yumoqing 2026-07-01 17:24:40 +08:00
parent 99b292fd17
commit 70b5502a18
2 changed files with 3 additions and 6 deletions

View File

@ -124,8 +124,7 @@ async def _inference_generator(request, callerid, callerorgid,
exception(errmsg)
yield errmsg
return
if not params_kw.model:
params_kw.model = llm.model
params_kw.model = llm.model
if llm.stream == 'async':
if llm.callbackurl:
cb_url = env.entire_url(llm.callbackurl)

View File

@ -215,8 +215,7 @@ async def execute_product_service(resource_ref_id, user_id, user_org_id, request
luid = getID()
params_kw = DictObject(**request_data)
if not params_kw.get('model'):
params_kw.model = full_llm.model
params_kw.model = full_llm.model
if not params_kw.get('transno'):
params_kw.transno = luid
@ -344,8 +343,7 @@ async def execute_product_service_stream(resource_ref_id, user_id, user_org_id,
full_llm.upappid, orgid=full_llm.ownerid)
params_kw = DictObject(**request_data)
if not params_kw.get('model'):
params_kw.model = full_llm.model
params_kw.model = full_llm.model
luid = getID()
if not params_kw.get('transno'):
params_kw.transno = luid