Skip to content

FEATURE: Add a call to the openai API to generate a 4-line poem about the currently selected launch #2

@KgotsoK

Description

@KgotsoK

On each card, when it scrolls into view, call openai to generate a 4-line verse of a poem about the currently selected launch.

If the call fails, show a snackbar at the top right of the page that disappears in 3 seconds.

While loading, show a loader on the part of the card where the poem will appear.

Always fetch a new poem ( dont cache)

Show the poem at the botttom of the card in its own section

The OpenAI key is already in the .env file inside the root of the spacenext project with the name VITE_OPENAI_API_KEY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions