UI: Add an enable_thinking option to enable/disable Qwen3 thinking

This commit is contained in:
oobabooga 2025-04-28 22:37:01 -07:00
parent 1ee0acc852
commit d10bded7f8
7 changed files with 52 additions and 11 deletions

View file

@ -42,6 +42,7 @@ class GenerationOptions(BaseModel):
auto_max_new_tokens: bool = False
ban_eos_token: bool = False
add_bos_token: bool = True
enable_thinking: bool = True
skip_special_tokens: bool = True
static_cache: bool = False
truncation_length: int = 0