______________________________________
| Welcome to myGPT! What's in your mind? |
======================================
\
\
\
|\_/|,,_____,~~`
(.".)~~ )`~}}
\o/\ /---~\\ ~}}
_// _// ~}
ChatGPT has been an absolute game-changer for my work! 🚀 But hey, let's talk about subscriptions. Fixed fees? Nah, not my cup of tea. I'm all about that pay-as-you-go vibe! 💸 So, I've been on a mission to integrate the OpenAI API into my project. And guess what? It's way more cost-effective than using ChatGPT alone. Cha-ching! 💰
Now, let's be real. ChatGPT has some serious communication skills, thanks to OpenAI's prompt engineering magic. 🧙♂️ But hey, we're not ones to back down. Armed with a plethora of publicly available resources, we've managed to create some seriously capable agents. 🕶️ Right now, we're all about chat completion and building the ultimate assistant.
But wait, there's more! Our next adventure involves implementing these functions with open source LLMs using Ollama. Trust me, it's a project that'll blow your socks off! 🧦 So stay tuned, folks! Exciting things are coming your way. 🎉
- OpenAI API: Please set your OpenAI API key in your environment variables. It can be set for the current session or made persistent across sessions by defining them in shell configuration files (~/.bashrc, ~/.zshrc, etc.). For example, in your
.bashrc
or.zshrc
, add this line:export OPENAI_API_KEY=YOUR_API_KEY
- Python packages: pillow, openai, cowsay
- (optional) Render output Markdown on terminal: mdcat
python mygpt.py -h
The Assistant mode in myGPT allows you to create or load an assistant, choose a model (such as GPT-3 or GPT-4), provide an instruction for the assistant's role, and upload files.
When creating your assistant, you can upload files that will help the assistant answer your questions more effectively. The assistant will then provide responses based on the information provided in the uploaded files.
To get started, run the following command and follow the instructions:
python mygpt.py -m assistant
Output will be saved in a markdown file locally.
Start chatting with the following command:
python mygpt.py -m chat