From c8694c2e18b03f9bcbf8fab3d5941cf839fc658e Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Thu, 30 Jul 2026 08:09:25 +0000 Subject: [PATCH] fix(buun-llama-cpp): match speculative draft split anchor The shared gRPC wrapper stores p_split under the draft sub-structure. Match that exact source spelling so the fork-specific patch stage reaches the build on every architecture. Assisted-by: Codex:gpt-5 [Codex] --- backend/cpp/buun-llama-cpp/patch-grpc-server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cpp/buun-llama-cpp/patch-grpc-server.sh b/backend/cpp/buun-llama-cpp/patch-grpc-server.sh index 837985036..f753b179a 100755 --- a/backend/cpp/buun-llama-cpp/patch-grpc-server.sh +++ b/backend/cpp/buun-llama-cpp/patch-grpc-server.sh @@ -90,7 +90,7 @@ else awk ' prev2 == " } else if (!strcmp(optname, \"spec_p_split\")) {" && prev1 ~ /^ +if \(optval != NULL\) \{$/ && - $0 ~ /^ +try \{ params\.speculative\.p_split = std::stof\(optval_str\); \} catch \(\.\.\.\) \{\}$/ && + $0 ~ /^ +try \{ params\.speculative\.draft\.p_split = std::stof\(optval_str\); \} catch \(\.\.\.\) \{\}$/ && !done { print # print the try-line itself getline inner_close # read " }" closing the inner if