-
-
Notifications
You must be signed in to change notification settings - Fork 19
OSL ‐ GPT
Mistium edited this page Feb 26, 2024
·
10 revisions
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" "Hello! how are you?" "test_bot"
// Send to bot
say data
// show the output to the user
gpt "generate_img" "prompt"
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