From 70b5502a183878a2185df2aaac5db107c8c70658 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 1 Jul 2026 17:24:40 +0800 Subject: [PATCH] fix: always use llm.model (vendor model name) instead of user-passed model param --- llmage/llmclient.py | 3 +-- llmage/product_interface.py | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 0c60b8d..3d43338 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -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) diff --git a/llmage/product_interface.py b/llmage/product_interface.py index 34c8d14..864d22f 100644 --- a/llmage/product_interface.py +++ b/llmage/product_interface.py @@ -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