-: This lesson is all about the OpenAI Playground.
So let's jump right in.
Here, if you search for the OpenAI Playground,
you will find the playground for OpenAI.
platform.openai.com/playground.
Now the default mode is Assistants,
which is arguably the most exciting use case
for the Playground.
But let's go ahead and start here at this legacy version
to go over all the different features
that are available here in the Playground.
Here in the legacy version,
this used to be where you would go
if ChatGPT was having trouble
or you're running out of messages, or having some errors.
The Playground was the place where you would go
to continue using ChatGPT within a different interface
that would usually sidestep the errors
that you could get in the conventional interface.
So here, you can use ChatGPT
just like you would in the other interface.
It says, "Write a tagline for an ice cream shop."
Sure. So we're gonna go ahead and hit Submit.
And here, we have our answer.
"Scoops of happiness in every cone!"
So this is just another interface where you can use ChatGPT.
We select the different models here,
and we can go ahead and tweak ChatGPT even further
with this bar here on the right.
So you have a little bit more control over the length,
the temperature,
and these different frequency, and presence penalties here.
You're able to share here.
You can view the code here, and you can save here.
Let's go ahead and jump into Chat mode.
This is a more user-friendly-looking chat interface
where you type in a query here,
and you'll get a response here.
Please write me a recipe for a breakfast burrito.
We're gonna go ahead and hit Submit.
And here, we have our recipe.
So this is, again, like using ChatGPT.
The general system prompt here
is that you are a helpful assistant.
Of course, you can change this
and give it some more specific parameters.
You are a head chef at a restaurant.
Now let's go ahead and ask this question again.
So here, we have a slightly upgraded version of our recipe.
Now, finally, we can jump over to the Assistant.
This here is the most exciting use case,
but also the most in-depth.
This is similar to creating a custom GPT,
just a little bit more advanced.
Here, you create the name
of the assistant you're trying to create,
and then you give it its set of custom instructions.
You select the different model here that you want to use,
and then you can add different functions.
Let's say a Code interpreter, Retrieval,
and you can upload some custom data here.
If you wanna test your Assistant,
let's go ahead and type in a query here.
So the Assistant here is creating images
from a video script.
So let's go ahead and paste in an example video script here.
Hit Run, and we see that I had instructions labeled one,
two, and three, and we are running these instructions
to get our answer.
Now this GPT was to create image prompts based on a script,
and here we have it.
We have four different image prompts
that are based on the script that I uploaded,
that we can use to put in a image generator
like Midjourney or even OpenAI's DALL-E.
This menu bar on the left lets you click from Playground
to Assistants, Fine-tuning, API keys, Files, Usage,
which has to do with how many API calls you've made.
And Organization, can go into Teams,
Limits, Billing, Profile,
and some Documentation here on the bottom.
You can click onto all products,
check out your personal information, even log out,
and ask for help,
which will prompt a little Help menu here on the right.
Basically, you'll use this bar here on the left
if you need to update your billing,
if you want to update your usage,
if you want to set limits on your usage
to make sure that you don't spend too much money
on your API calls.
And if you're unfamiliar, if you use the OpenAI API,
basically, it costs you a little bit of money
every time you use it.
So I encourage setting a limit to make sure
that you don't spend more than you were looking to.
We will do a deep dive into the Playground
and all of its features in future lessons to come.
I just wanted to do a quick overview
so you can see what's available to you.