mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Only use enable_thinking if the template supports it
This commit is contained in:
parent
bfbbfc2361
commit
fbea21a1f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue