w3b3d3v / web3-bootcamp-platform

web3-bootcamp-platform.vercel.app
MIT License
52 stars 24 forks source link

Generate short description using GPT Api #233

Open nomadbitcoin opened 3 months ago

nomadbitcoin commented 3 months ago

Enhance the fetchAndStoreIssues function by integrating the GPT API to automatically generate short descriptions for tasks. The function should:

  1. API Integration:

    • During the execution of fetchAndStoreIssues, call the OpenAI endpoint.
    • Pass the task description along with a prompt to generate a concise "short description" that captures essential details in a single phrase.
  2. Database Update:

    • Store the generated short description in the "task" collection.
    • Ensure the seed-data.json is updated to reflect this new data structure.
  3. Testing:

    • Test the implementation using the emulator.
    • Verify that short descriptions are accurately generated and stored in the "task" collection.

Acceptance Criteria: