From a95056db40aebef80a5258ca3df5833a39103e6e Mon Sep 17 00:00:00 2001
From: Cohee <18619528+Cohee1207@users.noreply.github.com>
Date: Mon, 21 Apr 2025 21:10:40 +0300
Subject: [PATCH] Thinking Budget 2.5: Electric Googaloo
---
public/css/toggle-dependent.css | 4 ++
public/index.html | 26 ++++++++++
public/scripts/openai.js | 58 ++++++++++++++++++++++
src/endpoints/backends/chat-completions.js | 9 ++++
4 files changed, 97 insertions(+)
diff --git a/public/css/toggle-dependent.css b/public/css/toggle-dependent.css
index d582cbbd8..aa805b1f2 100644
--- a/public/css/toggle-dependent.css
+++ b/public/css/toggle-dependent.css
@@ -498,3 +498,7 @@ label[for="trim_spaces"]:not(:has(input:checked)) small {
#banned_tokens_block_ooba:not(:has(#send_banned_tokens_textgenerationwebui:checked)) #banned_tokens_controls_ooba {
filter: brightness(0.5);
}
+
+#thinking_budget_controls:not(:has(#enable_thinking:checked)) .range-block:has(#thinking_budget) {
+ filter: brightness(0.5);
+}
diff --git a/public/index.html b/public/index.html
index 7be6838e7..97529202b 100644
--- a/public/index.html
+++ b/public/index.html
@@ -2034,6 +2034,32 @@
+
+
+
+
+
+ Must be enabled for Thinking Budget to take effect.
+
+
+
+
+ Thinking Budget (tokens)
+
+
+
+
+