Project
Simple Python CLI Chat
Easy
122 completions
~ 5 hours
4.4Learn about the basics of OpenAI API and chat completions API, and how to send and receive messages and call functions with GPT.
Provided by
JetBrains Academy
About
Get started with OpenAI's Chat Completion API by implementing it in a Python CLI program. Create a CLI assistant with whom you can chat.
Training project
This project allows you to practice and strengthen your coding skills, helping you get ready for more advanced tasks ahead.
What you'll learn
Once you choose a project, we'll provide you with a study plan that includes all the necessary topics from your course to get it built. Here’s what awaits you:
Create the assistant and send an initial prompt.
Read input from the console, send it to GPT, and calculate the token cost.
Make the program continue and make the assistant call the function to end the program.
Reviews
4 weeks ago
I think this project was a nice way of going over the basics, especially the part where you needed to end the conversation if the user indicates it. This requires both giving the LLM the ability to reason and call a tool that will actually break the code.
4.4
Learners who completed this project within the Introduction to AI Engineering with Python course rated it as follows: