mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 17:11:21 +08:00
[BugFix] fix offline llm chat "enable_thinking" is always "False" (#4686)
* fix enable_thinking * recover ernie4_5_vl_processor
This commit is contained in:
@@ -245,7 +245,7 @@ class DataProcessor(BaseDataProcessor):
|
||||
if chat_template_kwargs:
|
||||
if isinstance(chat_template_kwargs, dict):
|
||||
for k, v in chat_template_kwargs.items():
|
||||
if k not in task:
|
||||
if k not in task or task[k] is None:
|
||||
task[k] = v
|
||||
else:
|
||||
raise ValueError("Invalid input: chat_template_kwargs must be a dict")
|
||||
|
||||
Reference in New Issue
Block a user