-
-
Notifications
You must be signed in to change notification settings - Fork 9
OSL ‐ GPT
Mistium edited this page May 27, 2024
·
8 revisions
name = gptNew()
name.gptReset()
name.gptInform(data)
Example:
programmer = gptNew()
programmer.gptInform("You are a master programmer")
log programmer.gptSend("how do I print text in python?")
name.gptRemove()
log name.gptSend(data)
Example:
test_bot = gptNew()
// create bot
say test_bot.gptSend("Hello! how are you?")
// Say the output from gpt
gpt "generate_img" "prompt"
gpt "generate_img" "prompt" "OpenJourney"
gpt "generate_img" "prompt" "Dreamshaper"
gpt "generate_img" "prompt" "Anything"
gpt "generate_img" "prompt" "Realistic"
Example:
my_image = ""
// setup the variables
mainloop:
// makes sure to run this every frame
if my_image == "" (
gpt "generate_img" "A penguin on the moon"
// Send to bot
my_image = data
// save the image url to a variable
)
image my_image 100
// draw the image
import "win-buttons"
// imports the window buttons
say "hello, how are you?".gptGenerate()
// generates the text and says it
history = name.gptHistory()
// grab the history of chats with a bot as a json array
// sets the history variable to a json array of your chats with a specific bot
gpt "new_bot" "name"
gpt "reset" "name"
gpt "inform_bot" "name" "data"
Example:
gpt "inform_bot" "name" "You are a master programmer"
gpt "delete_bot" "name"
gpt "send" "prompt" "name"
Example:
got "new_bot" "test_bot"
// create bot
gpt "send" "test_bot" "Hello! how are you?"
// Send to bot
say data
// show the output to the user
gpt "generate_img" "prompt"
gpt "generate_img" "prompt" "OpenJourney"
gpt "generate_img" "prompt" "Dreamshaper"
gpt "generate_img" "prompt" "Anything"
gpt "generate_img" "prompt" "Realistic"
Example:
my_image = ""
// setup the variables
mainloop:
// makes sure to run this every frame
if my_image == "" (
gpt "generate_img" "A penguin on the moon"
// Send to bot
my_image = data
// save the image url to a variable
)
image my_image 100
// draw the image
import "win-buttons"
// imports the window buttons
gpt "generate_text" "hello, how are you?"
// generates the text
say data
// outputs the text to the user
gpt "history" "bot_name"
// grab the history of chats with a bot as a json array
history = data
// sets the history variable to a json array of your chats with a specific bot
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here