patch: increasing MAX_REPETITION_THRESHOLD to allow complex agentic workflows

This commit is contained in:
Donato Capitella
2026-03-25 09:23:03 +00:00
parent eb03432a50
commit ca84f4cbf3
6 changed files with 32 additions and 6 deletions
+13
View File
@@ -0,0 +1,13 @@
From: KYmidnight
Issue: https://github.com/kyuz0/amd-strix-halo-toolboxes/issues/70
Subject: Increase MAX_REPETITION_THRESHOLD for complex tool schemas
--- a/src/llama-grammar.cpp
+++ b/src/llama-grammar.cpp
@@ -14,7 +14,7 @@
// allow to be at least defined in CMakeLists.txt
#ifndef MAX_REPETITION_THRESHOLD
-#define MAX_REPETITION_THRESHOLD 2000
+#define MAX_REPETITION_THRESHOLD 100000
#endif