ohmplatform / FreedomGPT

This codebase is for a React and Electron-based app that executes the FreedomGPT LLM locally (offline and private) on Mac and Windows using a chat-based interface
http://www.freedomgpt.com
GNU General Public License v3.0
2.58k stars 349 forks source link

Can't run offline #121

Open mikerossiter opened 10 months ago

mikerossiter commented 10 months ago

When I go into airplane mode and run yarn start from root I get this error in the logs in the terminal.

[TypeError: fetch failed] { cause: [Error: getaddrinfo ENOTFOUND api.openai.com] { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'api.openai.com' }

I can see it's moaning about not being able to hit the api.openai.com endpoint so can I turn this off somehow? I don't need chatgpt anyway.

WinterAtne commented 10 months ago

I just learned about this repo today and haven't looked at the code to much but that sounds correct. This project relies on openai to run, so accessing their api sounds necessary to running the program. (please correct me If I am wrong)

mikerossiter commented 10 months ago

Yes it seems that way. The app itself though says this when you go to select ConnectAI: "Edge AI is AI that runs locally on your machine. The data never leaves your device, so everything stays private. You can even use this AI when you are completely offline, on a plane, or a deserted island."

reconSuave commented 2 months ago

FreedomGPT ▶︎ renderer ▶︎ utils ▶︎ app ▶︎ const.ts

✘ remove unused constant OPENAI_API_HOST

how to fix le ape