瀏覽代碼

model-conversion : add missing curl script [no ci] (#15761)

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.
Daniel Bevenius 5 月之前
父節點
當前提交
8c3fdf44ec
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      examples/model-conversion/scripts/utils/curl-embedding-server.sh

+ 6 - 0
examples/model-conversion/scripts/utils/curl-embedding-server.sh

@@ -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