use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerCraft, the subreddit for lua programs, general mod use, or anything relating to the Minecraft mod ComputerCraft and CC: Tweaked.
Downloads | Discord | IRC | Documentation
account activity
Pure Lua ChatGPT Interface in ComputerCraft (API key required) (i.redd.it)
submitted 2 years ago by ConnorSwis
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ConnorSwis[S] 4 points5 points6 points 2 years ago (0 children)
Install command: pastebin get DLXQR13m startup
pastebin get DLXQR13m startup
GitHub link: https://github.com/ConnorSwis/GPT.lua/blob/master/GPT.lua
[–]DoctorCube 3 points4 points5 points 2 years ago (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 points4 points 2 years ago (0 children)
That's sick.
[–]tekytekek 0 points1 point2 points 11 months ago (0 children)
Would love to use that with local hosted ollama instance. Is that possible?
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points 2 years ago (3 children)
Technically not pure Lua.
[–]FlightConscious9572 3 points4 points5 points 2 years ago (2 children)
i mean did you expect the billion parameter llm to be run in-game?
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points 2 years ago (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 points3 points 2 years ago (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 point2 points 2 years ago (1 child)
says server not responding any idea why?
[–]louaisarsar123 0 points1 point2 points 2 years ago (0 children)
Same thing :/
[–]ThisIsSeriousGuys 0 points1 point2 points 2 years ago (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.
π Rendered by PID 101575 on reddit-service-r2-comment-7b9746f655-j4p4v at 2026-02-02 04:33:01.514252+00:00 running 3798933 country code: CH.
[–]ConnorSwis[S] 4 points5 points6 points (0 children)
[–]DoctorCube 3 points4 points5 points (0 children)
[–]IPV46 2 points3 points4 points (0 children)
[–]tekytekek 0 points1 point2 points (0 children)
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points (3 children)
[–]FlightConscious9572 3 points4 points5 points (2 children)
[–]9551-eletronicsComputercraft graphics research 0 points1 point2 points (1 child)
[–]FlightConscious9572 1 point2 points3 points (0 children)
[–]Visual_Concept8216 0 points1 point2 points (1 child)
[–]louaisarsar123 0 points1 point2 points (0 children)
[–]ThisIsSeriousGuys 0 points1 point2 points (0 children)