mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-02-23 16:15:06 +01:00
Only use enable_thinking if the template supports it
This commit is contained in:
parent
bfbbfc2361
commit
fbea21a1f1
|
|
@ -307,7 +307,7 @@ def generate_chat_prompt(user_input, state, **kwargs):
|
|||
|
||||
prompt += prefix
|
||||
|
||||
if state['mode'] == 'instruct' and not any((_continue, impersonate, state['enable_thinking'])):
|
||||
if state['mode'] == 'instruct' and 'enable_thinking' in state['instruction_template_str'] and not any((_continue, impersonate, state['enable_thinking'])):
|
||||
prompt += get_thinking_suppression_string(instruction_template)
|
||||
|
||||
return prompt
|
||||
|
|
|
|||
Loading…
Reference in a new issue