Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

app: relay thinking false to server (#13319)

Bruce MacDonald84a2cedf187c
diff --git a/app/ui/app/src/api.ts b/app/ui/app/src/api.ts
index a06e4e00b..a701a30a5 100644
--- a/app/ui/app/src/api.ts
+++ b/app/ui/app/src/api.ts
@@ -204,12 +204,10 @@ export async function* sendMessage(
data: uint8ArrayToBase64(att.data),
}));
- // Only send think parameter when actually requesting thinking
- // Don't send false as it causes issues with some providers
+ // Send think parameter when it's explicitly set (true, false, or a non-empty string).
const shouldSendThink =
think !== undefined &&
- ((typeof think === "boolean" && think) ||
- (typeof think === "string" && think !== ""));
+ (typeof think === "boolean" || (typeof think === "string" && think !== ""));
const response = await fetch(`${API_BASE}/api/v1/chat/${chatId}`, {
method: "POST",