]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model-conversion : add missing curl script [no ci] (#15761)
authorDaniel Bevenius <redacted>
Wed, 3 Sep 2025 07:48:35 +0000 (09:48 +0200)
committerGitHub <redacted>
Wed, 3 Sep 2025 07:48:35 +0000 (09:48 +0200)
This commit adds a curl script to the model-conversion examples
which is currently missing. This script is required for the running the
embedding server targets to test llama-server embeddings functionality.

examples/model-conversion/scripts/utils/curl-embedding-server.sh [new file with mode: 0755]

diff --git a/examples/model-conversion/scripts/utils/curl-embedding-server.sh b/examples/model-conversion/scripts/utils/curl-embedding-server.sh
new file mode 100755 (executable)
index 0000000..b689866
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+curl --request POST \
+    --url http://localhost:8080/embedding \
+    --header "Content-Type: application/json" \
+    --data '{"input": "Hello world today"}' \
+    --silent