Skip to content
Mistium edited this page Feb 26, 2024 · 10 revisions

Creating a new chat

gpt "new_bot" "name"

Resetting a chat

gpt "reset" "name"

Bot Setup

gpt "inform_bot" "name" "data"

Example:

gpt "inform_bot" "name" "You are a master programmer"

Deleting a bot and it's chats

gpt "delete_bot" "name"

Sending a prompt to a bot

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

Generating images

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

Generate text with no context and no bots

gpt "generate_text" "hello, how are you?"
// generates the text

say data
// outputs the text to the user

Get chat history

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 Wiki

Wiki Views:
:views

OSL | RSH | ICN

Clone this wiki locally