mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-21 13:44:55 -04:00
* ⬆️ Update PrismML-Eng/llama.cpp Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(bonsai): follow updated fork APIs The updated PrismML fork implements common_json_error directly, so preserve the shared gRPC source instead of rewriting it to the removed nlohmann exception type. Build and copy the renamed ggml-rpc-server target as well. Assisted-by: Codex:gpt-5 Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Co-authored-by: mudler <2420543+mudler@users.noreply.github.com> Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
19 lines
620 B
Bash
19 lines
620 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
MAKEFILE="$ROOT/backend/cpp/bonsai/Makefile"
|
|
GRPC_SERVER="$ROOT/backend/cpp/llama-cpp/grpc-server.cpp"
|
|
|
|
grep -q 'catch (const common_json_error& e)' "$GRPC_SERVER"
|
|
|
|
if grep -q 'patch-grpc-server.sh' "$MAKEFILE"; then
|
|
echo "Bonsai must preserve the common_json_error API provided by its pinned fork" >&2
|
|
exit 1
|
|
fi
|
|
|
|
grep -q -- '--target grpc-server --target ggml-rpc-server' "$MAKEFILE"
|
|
grep -q '/llama.cpp/build/bin/ggml-rpc-server bonsai-rpc-server' "$MAKEFILE"
|
|
|
|
echo "PASS: Bonsai uses its pinned fork's JSON and RPC APIs"
|