If an empty description is entered by the user, use GPT-3 to generate a description for the item.
- Step 1 [aimania_get_api_key]: Create an Open AI account and get an API key
- Step 2 [aimania_add_api_to_backend]: Use GPT-3 to generate a description for the item for which the user has not entered a description
- Learning Objective: Create an Open AI account and get an API key
- Narrative: Some users forget to enter descriptions for their items. We can use GPT-3 to generate a description for the item for which the user has not entered a description.
- Instructions: Create an Open AI account and get an API key
- How do users pass to the next step: Enter the API key in the chat
- Hints:Visit the OpenAI API keys page and create a new API key.
- Learning Objective: Use GPT-3 to generate a description for the item for which the user has not entered a description
- Narrative: Add the GPT-3 API to the backend in order to generate a description for the item for which the user has not entered a description.
- Instructions: Create a function that takes in a string and returns a string. The function should use the GPT-3 API to generate a description for the item for which the user has not entered a description.
- How do users pass to the next step: Create a PR with the modified code
- Hints: Check if the user entered a description. If not, use the GPT-3 API to generate a description.
- Shreyash Singh
- Email: Rohitsingh9450@hotmail.com