SilkePilon / KnowledgeBook

Use open and free AI models to generate reusable nodes for Minecraft bots.
https://knowledgebook.vercel.app/
MIT License
23 stars 5 forks source link

Website not working #29

Open pixo2000 opened 2 months ago

pixo2000 commented 2 months ago

i tried to set the api key on the website but it wouldnt accept the key. also: the installation on my server is not working and yeah idk what i am supposed to do cuz i cannot add a bot in the panel

SilkePilon commented 2 months ago

Hello @pixo2000 what os are you running?

SilkePilon commented 2 months ago

Atm (sadly) the website connects to a localhost for the backend so the website can only be opened on the same pc the backend is running on. I will probably change this in a future update

SilkePilon commented 2 months ago

For setting an api key: If you press the button on the top right for setting an api key (make shure no bot is currently active or connected) in the dialog that appears there are steps to obtain an Nvidia api key

pixo2000 commented 2 months ago

ok... i am running the server on linux. this is my server error:

/var/lib/pufferpanel/servers/fa024184/main.js:887 res.json({ response: completion.choices[0]?.message?.content || "" }); ^

SyntaxError: Unexpected token . at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

after i fix this, can i open the website on my server and then run the bots on my server or is it the same problem with your website? 
SilkePilon commented 2 months ago

Linux is fine, the website and backend need to be ran on the same pc, the website connects to the backend using localhost:3000, the error seems to be a thing with the ai make sure you follow the setup instructions in the dialog for the api key the key should start with nvapi-*****

pixo2000 commented 2 months ago

yeah i wanted to run it on my server, but when i tried installing it on my local pc, i got this error:

C:\Users\Paul\Documents\mineflayer>node main.js node:internal/modules/cjs/loader:1080 throw err; ^

Error: Cannot find module '../build/Release/canvas.node' Require stack:

Node.js v18.18.2

SilkePilon commented 2 months ago

try npm install -g canvas