Hit run on your Repl and – boom – you’ve built a universal tutor bot, that can teach anyone about anything and adjust its language accordingly. Can you imagine how much work this would have been six months ago? Now it’s a 3-minute job! https://
youtu.be/fB9HiXC5Gv8
@replit
-

Universal AI Tutor Bot Built in Minutes with Repl
By
–
-
OpenAI API Template: Try It Yourself Today
By
–
Want to try it yourself? Just use this template and bring your own OpenAI API key.
-

Appending User Response to Messages Array for API
By
–
The next step is to ask the user for their response and package this all back up for the API. Nice and simple, we just need to append the dictionary containing the content back to the messages array before the end of the loop.
-

Maintaining Message Context for Effective API Interactions
By
–
Each time we go out to the API, we have to send it the full messages array, so it has all the instructions and the original context. If you don’t maintain your messages array no one else will! It’s not chat if it doesn’t remember what the user said.
-

Managing AI Assistant Messages and Conversation History
By
–
When we get back a message from the AI, we want to assign that to the `assistant` role and add it to the messages array. This means that we have a history of the conversation because…
-

Setup AI Array with User-Generated F-String Prompts
By
–
Let’s set this array up, use an f-string to replace the learning topic with something user generated. Getting the response from the AI is as simple as sending a one-line command to the API.
-
GPT-3 Adaptive Tutor: Customized Prompts for Personalized Learning
By
–
Using a prompt borrowed from @emollick we can set GPT-3 up to think of itself as an adaptive tutor, one that will adjust its teaching style and complexity to our level of understanding – that and multiple choice quizzing too! We’ve just got to customise the prompt. pic.twitter.com/ys3XviWuCG
— Replit ⠕ (@Replit) 10 mars 2023Using a prompt borrowed from @emollick we can set GPT-3 up to think of itself as an adaptive tutor, one that will adjust its teaching style and complexity to our level of understanding – that and multiple choice quizzing too! We’ve just got to customise the prompt.
-

New API Uses Messages Array with System Role for Bot Configuration
By
–
The new API uses a messages array to deal with nearly everything. You can set up your starting prompt using the new `system` role and give context and instructions to your bot.
-
Fork GPT-3.5 Template on Replit with OpenAI API
By
–
First, fork the GPT-3.5 template on Replit https://t.co/V935UGwofH
— Replit ⠕ (@Replit) 10 mars 2023
Then bring over your OpenAI API key to the Secrets Manager as OPEN_API_KEY.
If you click Run, you’ve already got some interaction going right out of the box, but let’s make it more useful! pic.twitter.com/OR17cAUlzlFirst, fork the GPT-3.5 template on Replit https://
replit.com/@replit/OpenAI
-Python-GPT-35-Turbo?v=1
… Then bring over your OpenAI API key to the Secrets Manager as OPEN_API_KEY. If you click Run, you’ve already got some interaction going right out of the box, but let’s make it more useful! -
Build ChatGPT Powered Personal Tutor in 3 Minutes
By
–
Did you know you can build a ChatGPT powered personal tutor in just 3 minutes? Here’s how