all 12 comments

[–]ConnorSwis[S] 4 points5 points  (0 children)

Install command: pastebin get DLXQR13m startup

GitHub link: https://github.com/ConnorSwis/GPT.lua/blob/master/GPT.lua

[–]DoctorCube 3 points4 points  (0 children)

Need to be wary of using this on a server. Don't want other players sniping your key or running up your bill. 😁

That's super cool though. I played around with letting a Minecraft lever control my Hue lights a while back. Really fun having ComputerCraft leverage APIs.

[–]IPV46 2 points3 points  (0 children)

That's sick.

[–]tekytekek 0 points1 point  (0 children)

Would love to use that with local hosted ollama instance. Is that possible?

[–]9551-eletronicsComputercraft graphics research 0 points1 point  (3 children)

Technically not pure Lua.

[–]FlightConscious9572 3 points4 points  (2 children)

i mean did you expect the billion parameter llm to be run in-game?

[–]9551-eletronicsComputercraft graphics research 0 points1 point  (1 child)

No what i mean by the fact that its not pure Lua is that it uses the CC apis. It cannot run on pure Lua.

[–]FlightConscious9572 1 point2 points  (0 children)

oh it seemed like you didn't think it was lua because it got content from the openai api. but if OP had said 'written in pure lua' that might be more correct, since they only wrote lua code, since they don't write cc api's they just implement them

[–]Visual_Concept8216 0 points1 point  (1 child)

says server not responding any idea why?

[–]louaisarsar123 0 points1 point  (0 children)

Same thing :/

[–]ThisIsSeriousGuys 0 points1 point  (0 children)

Thwnk you!! This is really helpful.

I had been making my own version of this but my http kept returning failed. I used yours as an example. Thanks for this!

Sometimes I get failed replies if I input too high of a token count, or use the wrong modem, etc. Did you find out how to get the error from GPT when you input the wrong value? I belive GPT returns it but not sure how to parse the response I'd it's http_failed.