Have you tried getting rid of the line breaks between the curly brackets?
Bob S
On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode
wrote:
-d '{
"model": "text-embedding-granite-embedding-278m-multilingual",
"input": "some text"
}'
___
us
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 :
Have you tried getting rid of the line breaks between the curly brackets?
Bob S
On Dec 30, 2024, at 9:11 AM, Bob Sneidar via use-livecode
wrote:
-d '{
"model": "text-embedding-granite-embedding-278m-multilingual",
"input": "some text"
}'
___
us
Actually it's not so simple, as the line is randomly corrupted and
almost doesn't look twice the same.
I already tried to clean up the json before using JsonImport, but it's
almost impossible to use a general rule.
I would prefer to find a way to prevent this to happen, since it doesn't
happen in
If you are parsing in LC, you can get the first word of each line. Now if the
text returned actually contains a line break in the second line that is
producing the erroneous third line, you may have to test the range of each
line.
Bob S
> On Dec 30, 2024, at 8:13 AM, jbv via use-livecode
>
It looks like a continuation of the second line actually.
Bob S
> On Dec 30, 2024, at 8:13 AM, jbv via use-livecode
> wrote:
>
> Hi list,
>
> Long story short : I am using LM Studio as a local server to send requests to
> an LLM model.
> I use the shell command in LC 9.6 with curl on MacOS