chat: disable Qwen3 thinking via chat_template_kwargs (8x faster)
This commit is contained in:
parent
1099535827
commit
bd30ee1fab
1 changed files with 11 additions and 1 deletions
|
|
@ -145,6 +145,11 @@ export async function* sendMessage(message) {
|
|||
temperature: 0.5,
|
||||
max_tokens: finalAvailable,
|
||||
stream: true,
|
||||
// Disable Qwen3 reasoning: vLLM/llama.cpp honor chat_template_kwargs;
|
||||
// options.think is Ollama-flavored fallback. Reasoning roughly 8x slower.
|
||||
chat_template_kwargs: {
|
||||
enable_thinking: false,
|
||||
},
|
||||
options: {
|
||||
...apiConfig.defaultOptions,
|
||||
}
|
||||
|
|
@ -324,7 +329,12 @@ export async function* sendMessageWithCustomHistory(customHistory) {
|
|||
messages: messagesForLLM,
|
||||
max_tokens: finalAvailable,
|
||||
stream: true,
|
||||
options: {
|
||||
// Disable Qwen3 reasoning: vLLM/llama.cpp honor chat_template_kwargs;
|
||||
// options.think is Ollama-flavored fallback. Reasoning roughly 8x slower.
|
||||
chat_template_kwargs: {
|
||||
enable_thinking: false,
|
||||
},
|
||||
options: {
|
||||
...apiConfig.defaultOptions,
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue