Problem with the shell command with a local server
jbv at souslelogo.com
jbv at souslelogo.com
Mon Dec 30 13:41:33 EST 2024
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
More information about the use-livecode
mailing list