I am trying to communicate with localai with tsNetPostSync from www.techstrategies.com.au but cannot get it to work #1865
Unanswered
MrCoolLion
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to communicate with localai with tsNetPostSync from https://www.techstrategies.com.au/ but cannot get it to work. I tried to get help from LiveCode my development language as well as techstrategies but no luck yet.
Getting the installed models (in docker) with http://localhost:8080/v1/models works fine because no headers are needed.
But as soon I I want to chat I get an error. Latest one is: Could not retrieve data. Error code : 500.
Anybody has any suggestion on what to do?
Here is the posted information
RequestString: http://localhost:8080/v1/chat/completions
Headers: "Content-Type: application/json"
PostedData: '{"model": "ggml-gpt4all-j","messages": [{"role": "user", "content": "How are you?"}],"temperature": 0.9}'
Below is the additional information of the error
Data: {"error":{"code":500,"message":"runtime error: invalid memory address or nil pointer dereference","type":""}}
RecvHeaders: HTTP/1.1 500 Internal Server Error
Date: Wed, 20 Mar 2024 16:16:13 GMT
Content-Type: application/json
Content-Length: 109
Additional information on tsNetPostSync and other commands can be found at: https://www.techstrategies.com.au/tsnet-resources/
Friendly greeting from
MrCoolLIon (Paul)
Beta Was this translation helpful? Give feedback.
All reactions