From 08fbef5049a614a33971b9e62c2c82c5bc8fcec4 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 21 Jun 2026 22:56:10 +0800 Subject: [PATCH] lcpp ui think budget --- koboldcpp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 0dc55f47b..c4c8cbfbf 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -2190,6 +2190,9 @@ def generate(genparams, stream_flag=False): else: pass #unrestricted + if reasoning_budget==-1 and genparams.get('thinking_budget_tokens',-1)!=-1: #lcpp compat thinking budget + reasoning_budget = genparams.get('thinking_budget_tokens',-1) + inputs.max_context_length = max_context_length # this will resize the context buffer if changed inputs.max_length = max_length inputs.temperature = temperature