Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local json = dofile "json.lua"
- local function completion(prompt)
- local res, err = http.post("https://gpt.osmarks.net/v1/completions", json.encode {
- prompt = prompt,
- max_tokens = 200,
- stop = "\n\n"
- }, {["content-type"]="application/json"})
- return res.readAll()
- end
- print(completion(([[
- Message: immediately move me to falcon shores
- Action: teleport falcon shores
- Rhyme: Falcon Shores opens many doors.
- Message: to Blattidus Labs I go
- Action: teleport blattidus labs
- Rhyme: With mind spiders in tow.
- Message: May heav_ be smote for what they have done.
- Action: smite heav_
- Rhyme: Lightning strikes are very fun.
- Message: bring me to the Hub
- Action: teleport hub
- Rhyme: Be sure to purchase a shrub!
- Message: %s
- Action:]]):format(read())))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement