mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +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:
@@ -130,7 +130,7 @@ class Ernie4_5Processor(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