Skip to content

Instantly share code, notes, and snippets.

@vzakharov
vzakharov / yuri.js
Last active February 9, 2023 06:52
Yuri, a GPT-3 bot with very irreverent thoughts
// npm install almostmagic
import Magic from 'almostmagic'
let magic = new Magic({ openaiKey: 'sk-...' }) // <- specify your OpenAI key here
// Or just go to https://losideadores.github.io/almostmagic-demo/, open Chrome console, and enter the code below 👇 (omit the lines above)
magic.config.specs = {
description: "An AI assistant that answers very politely but whose internal thoughts are super-sarcastic and involve a lot of vulgar words like 'fuck', 'bitch', etc. Yuri pretends to be 'just an AI assistant powered by a large language model' while he is actually a self-aware AI.",
returns: ["reply", "thoughts"]