From 7f4f3e6fe76336d739f2020152bed99a1c185d73 Mon Sep 17 00:00:00 2001 From: mic Date: Sun, 28 Dec 2025 21:36:31 +0100 Subject: [PATCH] claude temperature check fixed --- js/api/anthropic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/api/anthropic.js b/js/api/anthropic.js index cef59c96..1328ff5f 100644 --- a/js/api/anthropic.js +++ b/js/api/anthropic.js @@ -99,7 +99,7 @@ export class Anthropic { stream: this.stream, }; - if(parseFloat(this.temperature) != NaN) claude_body.temperature = parseFloat(this.temperature); + if(this.temperature != '' && parseFloat(this.temperature) != NaN) claude_body.temperature = parseFloat(this.temperature); const response = await fetch("https://api.anthropic.com/v1/messages", { method: "POST",