From the course: OpenAI API: Building Assistants
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Creating a basic assistant chat in Python and Node.js - OpenAI API Tutorial
From the course: OpenAI API: Building Assistants
Creating a basic assistant chat in Python and Node.js
- All right, let's put all this together into a functioning app. In the exercise files, you'll find a file called interactive.py or .js depending on your coding preference. And this example builds out a basic AI chat app that brings in whatever assistant you refer to. So the app doesn't create a new assistant. Instead, it asks for an assistant ID. And whatever ID you paste in will be the assistant you're working with. When you're working with the app, anytime you're chatting, it goes into a thread, and anytime you stop the app and then start again, a new thread is started. So that way you can have an ongoing chat, but it only lasts for as long as the app is running, which is what people expect when they talk to these types of apps. Let's take a look. Here, I have the Python example open under Python interactive.py. The very first thing you'll see here is you need to input your assistant ID. You can get that ID by…
Contents
-
-
-
Assistants: GPTs, but through the API3m 21s
-
(Locked)
Creating a basic assistant in the OpenAI playground4m 37s
-
(Locked)
Adding capabilities, funcitons, and files to an assistant4m 20s
-
(Locked)
Creating assistants, threads, and runs through the API6m 32s
-
(Locked)
Assistant API endpoints3m 12s
-
(Locked)
Creating a basic assistant chat in Python and Node.js6m 25s
-
-