shreyashsingh-101 / my_quest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI Mania

Quest Details

title: AI Mania

level: beginner

skills: backend

dependencies: docker_localsetup

Overview

If an empty description is entered by the user, use GPT-3 to generate a description for the item.

Outline

  • 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

Textbook solution

Instructions for completing the quest:

Step 1 [aimania_get_api_key]:

  • 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.

Step 2 [step id]:

  • 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.

Created by

Link to the quest

About


Languages

Language:JavaScript 100.0%