Run it
Copy the script and paste it into your executor.
= ()
ltn12 = ()
json = ()
OPENAI = .()
win = {
x = , y = ,
w = , h = ,
dragging = ,
show =
}
inputText =
responseText =
(prompt)
body = json.({
model = ,
messages = { { role = , content = prompt } }
})
r = {}
_, code = .{
url = ,
method = ,
headers = {
[] = ,
[] = (#body),
[] = .. OPENAI
},
source = ltn12.source.(body),
sink = ltn12.sink.(r)
}
code ~=
.. (code)
decoded = json.(.(r))
decoded.choices[].message.content
love.()
love.window.()
love.()
win.show
love.graphics.(, , , )
love.graphics.(, win.x, win.y, win.w, win.h, )
love.graphics.(, , )
love.graphics.(, win.x, win.y, win.w, win.h, )
love.graphics.(, win.x + , win.y + )
love.graphics.(, win.x + win.w - , win.y + )
love.graphics.(, win.x + , win.y + )
love.graphics.(, , , )
love.graphics.(, win.x + , win.y + , win.w - , , )
love.graphics.(, , )
love.graphics.(, win.x + , win.y + , win.w - , , )
love.graphics.(inputText, win.x + , win.y + )
love.graphics.(, win.x + , win.y + )
love.graphics.(responseText, win.x + , win.y + , win.w - )
love.(t)
inputText = inputText .. t
love.(key)
key ==
inputText = inputText:(, -)
key == inputText ~=
responseText = (inputText)
inputText =
love.(mx, my, b)
b ==
mx > win.x + win.w - mx < win.x + win.w - my > win.y + my < win.y +
win.show =
mx > win.x mx < win.x + win.w my > win.y my < win.y +
win.dragging =
win.offx = mx - win.x
win.offy = my - win.y
love.()
win.dragging =
love.()
win.dragging win.show
mx, my = love.mouse.()
win.x = mx - win.offx
win.y = my - win.offy
THIS SCEIPT IS STILL IN BETA

Universal