Thank you Mark, the following modification did the trick :
curl http://127.0.0.1:1234/v1/embeddings \
-s \
-H "Content-Type: application/json" \
-d '{
"model": "text-embedding-granite-embedding-278m-multilingual",
"input": "some text"
}'
Le 2024-12-30 13:06, Mark Wieder a écrit :
On 12/30/24 08:13, jbv via use-livecode wrote:
Because of that I can't parse the json and I get an error with
JsonImport.
What am I doing wrong ?
How can I fix it ?
A couple of curl commandline options to try:
1. use the --silent option with curl
2. send the json output to a file and parse that:
curl <other options here> -o filename
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode