This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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"] |