The OpenAI GPT-3 Model (Premium)
CreatiCode last edited by info-creaticode
You can think of GPT-3 as a language master who has read a huge amount of text, and it can write all kinds of text based on your specific request.
To use the GPT-3 model to perform a task, you can use the following reporter block in the “AI” category (premium subscription needed):
The first input is your request, such as “write a poem about the Sun”. We’ll discuss what kinds of requests you can submit later.
The second input is a word-count limit. If you write “200”, then the result text will contain at most 200 words. Note that GPT-3 can not generate text that is too long. The hard limit is about 1500 words.
The GPT-3 block is a reporter block, so it will report back the text generated by the model directly.
Note that the text is generated by the GPT-3 model on the fly, so each time you rerun it, you will get a different result:
Because the CreatiCode playground is mainly used by school-age students, a very strong filter is used to block any potentially inappropriate request or response. For example, if the request or response contains the word “kill”, it will be blocked:
To view the result with proper formatting, you can take the following steps:
First, you can store the reported value in a variable like this:
After that, if you display the variable on the stage, you will see it actually contains 4 lines:
Second, you can split the text and store the sentences in a list like this (you need to make a new list named “sentences” first):
Note that “\n” is a special symbol, which means “end of line”. So when we split the text using “\n”, each line is added to the list as a new item:
There are tons of ways for you to design your request, and GPT-3 will always produce some results back. Below is a list of commonly used request types for your inspiration:
You can ask GPT-3 to write about a topic in a specific format. Here are some examples:
- Write a sentence about the Earth
- Write a poem about a dog
- Write a story about a tree and a flower
- Write a joke about a cat and a mouse
- Write a conversation between Newton and Einstein
- Write a song about French Fries
- Write a Tweet as if you are Elon Musk
- Write a word that starts with X
- Write an email to the teacher to apologize for the late homework
- Write a text message to persuade my friend to come to the party
You can simply ask GPT-3 a question about any fact, such as:
- How big is the Sun?
- What is an atom?
- When was the Civil War?
- What weekday is January 1st, 1900?
- How much is a burger in India?
- How to say Goodbye in French?
You can ask GPT-3 to suggest some ideas, such as:
- Give me 10 names for boys
- Brainstorm some ideas to help the local library
- Recommend a Youtube video about cats
- Good restaurants in Chicago
- How to get more people to buy my lemon juice?
You can ask GPT-3 to help you rewrite some text:
- Correct this: I were home yesterday
- Correct this: I am runing late