Announcement

Collapse
No announcement yet.

GPT4All Web Server API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPT4All Web Server API

    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:
    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,
       
    1,
       echo = 
    true,
       
    stream false,
       
    api_key "",
    }

    result HTTP.Submit(urlvaluesSUBMITWEB_POST204891nilnil);
    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?
    https://github.com/CentauriSoldier

  • #2
    Sadly, I am getting the same, even using the local IP. I am unsure what is happening. I see with netstat that the chat.exe is listening on the port, but that is all.

    Ulrich

    Comment

    Working...
    X