
Learn to build a desktop chat bot in Python with a Tkinter interface that connects to the OpenAI GPT API using an API key, prompts the bot, and displays responses.
Download and install Python, check the add Python to path option, and reinstall if needed to ensure a proper setup before continuing with the course.
Set up Sublime Text and the Git Bash terminal on Windows, download the latest versions, and walk through default installation to prepare your coding environment for the course.
Sign up for a free OpenAI account to obtain your API key and $18 in credits, then copy and store the key to connect to OpenAI.
Create a chat project directory, open the chat API file in Sublime Text, and set up a Python virtual environment to install the OpenAI library for the bot.
Install the custom Ginter library and the open library with pip in a virtual environment, then review GitHub documentation for widgets used in the gooey wraparound with the Kintore app.
Begin building the graphical user interface shell for a chat gpt bot with customtkinter, setting a 600 by 600 window, icon, and a main loop, before integrating api functionality.
Create a Tkinter text widget to display chat GPT responses, customize colors and wrap, place it in a frame for future scrollbar functionality.
Add a scrollbar to a Tkinter text widget by creating a scrollbar, linking it to the text's yview, and placing it in the text frame with grid and sticky settings.
Explore building a Tkinter entry widget for a chat GPT interface by configuring placeholder text, size (535 by 50), and a slim 1-pixel border, with focus behavior and layout adjustments.
Add three functional buttons in a Tkinter app for a chat GPT bot: submit to chat, clear screen, and update API key, arranged in a grid within a button frame.
Add an api key section in a tkinter app with an api frame, entry, and save button. Include a toggle to show or hide the frame for a dynamic layout.
Learn to toggle the api frame in a Tkinter app by resizing the window and using pack forget and pack to show or hide the api key entry.
Learn how to save an API key in a tkinter app using pickle to write and read a binary file, with file existence checks.
Save the api key by writing entered value to api_key with pickle.dump in write mode. Open the file, dump the data, and delete to reset; it's byte code, not encryption.
Implement basic error handling with try/except blocks to catch file read/write errors, display descriptive messages, and prevent crashes in a Tkinter-based key saving feature.
Clear the screen demonstrates implementing a clear button in a tkinter chat bot to erase the output and input fields. It sets up the next video on querying ChatGPT.
Build a text completion chat bot in Tkinter by validating the API key, wiring a speak function to chat GPT, and showing an error message when the key is missing.
Learn to query ChatGPT from a Tkinter app by wiring your OpenAI API key, choosing a model, sending a prompt, and adjusting temperature and tokens for per-query completions.
Learn to parse the chat http response from ChatGPT in Python, extract the text from the choices list, strip line breaks, and retrieve the text for a Tkinter chat bot.
Generate an rsa ssh key in the terminal, save it in the ssh directory, and copy the public key to GitHub to enable secure repository access.
Sign in to GitHub, open settings > ssh and gpg keys, add a new ssh key, and paste the copied key to enable authentication for future pushes.
Set up git on your local computer, initialize a repository, and push to GitHub, renaming master to main, securing your API key and choosing public or private visibility.
Celebrate completing the course with a bonus lecture, and claim a $100 gift along with lifetime access to all current and future courses via a one-time membership.
In this course I'll teach you how to make graphical user interfaces for Python using TKinter, and how to connect those apps to the OpenAI Text Completion Artificial Intelligence API. You'll be surprised just how quickly you can create some pretty cool looking apps!
We'll use Python, Tkinter, and CustomTkinter to build a cool Chatbot app that connects to OpenAI, maker's of ChatGPT.
You'll be able to send ChatGPT-like questions straight from your app, and receive a response that is output to the screen of your app.
We'll use davinci-003, the most advanced model offered by OpenAI to get our responses.
Finally, I'll discuss how to connect to OpenAI with an API Key, query the engine, and parse the responses in the correct way.
If you've seen ChatGPT recently and want to learn how to use these types of tools programmatically, then this is the course for you!
We'll use the customTkinter library to make our Tkinter app look a little more modern and professional. Some people think that Tkinter is a little old and stodgy looking. The CustomTkinter library solves that problem very easily.
We won't dive into customTkinter in great detail in this course, we'll just use bits of it here and there to make our app look more modern. So if you have no experience with customTkinter, you won't have any trouble following along; I'll walk you through it step by step!