llama.cpp/examples/model-conversion/scripts/utils/curl-embedding-server.sh

7 lines
185 B
Bash
Executable File

#!/bin/bash
curl --request POST \
--url http://localhost:8080/embedding \
--header "Content-Type: application/json" \
--data '{"input": "Hello world today"}' \
--silent