Has anyone tried using GPT4All's local api web server?
The docs are here and the program is here.
I'm sending an HTML request and I've tried every variation of the webserver address that I can think of. I either get error 2502 (Could not open request) or error 2515 (The requested URL was not found on the server).
Here's my code:
Any ideas why this isn't working?
The docs are here and the program is here.
I'm sending an HTML request and I've tried every variation of the webserver address that I can think of. I either get error 2502 (Could not open request) or error 2515 (The requested URL was not found on the server).
Here's my code:
PHP Code:
local url = "localhost"
local values = {
model = "gpt4all-j-v1.3-groovy",
prompt = "Who is Michael Jordan?",
max_tokens = 50,
temperature = 0.28,
top_p = 0.95,
n = 1,
echo = true,
stream = false,
api_key = "",
}
result = HTTP.Submit(url, values, SUBMITWEB_POST, 20, 4891, nil, nil);
if result == "" then
Paragraph.SetText("Paragraph1", tostring(Application.GetLastError()).."\r\n".._tblErrorMessages[Application.GetLastError()]);
else
Paragraph.SetText("Paragraph1", type(result).."\r\n"..#result);
end
Any ideas why this isn't working?
Comment