From b8e3e78b9ca53952da132f3de51f5df2058b6b87 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 14 Sep 2026 17:32:05 +0800 Subject: [PATCH] jinja tool temp controls --- koboldcpp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 071735b32..ea075487e 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4707,6 +4707,9 @@ ws ::= | " " | "\n" [ \t]{0,20} break if jinjatools and len(jinjatools)>0: genparams["using_openai_tools"] = True + if api_format == 4 and args.jinja_tools: + # Default Jinja tool requests to 0.5 and cap their temperature at 1.0. + genparams["temperature"] = min(tryparsefloat(genparams.get("temperature", adapter_obj.get("temperature", 0.5)), 0.5), 1.0) # handle media images_added, audio_added = sweep_media_from_messages(messages_array) else: