Unskilledcrab / chain-generator

0 stars 0 forks source link

Add tool tip to display "revised prompt" when creating an image #3

Open Unskilledcrab opened 5 months ago

Unskilledcrab commented 5 months ago

Overview

When you generate an image, the API will return a RevisedPrompt property because OpenAI will take the user's prompt and run it through their own process to filter out explicit content and help you create more vivid prompts.

Currently the user is not able to tell what OpenAI changed about their prompt which could cause some confusion if it does not line up with their original prompts intent.

This task will use the MudTooltip component to add this information to display when the user mouses over the image that was generated

You will need to add a new property to hold this data on the WidgetGeneratorModel

You will need to update this section to set the new property with the returned revised prompt

Finally you will need to add the MudTooltip component to wrap the image and display the RevisedPrompt property

Exit Criteria

When the user mouses over the generated image, they will see the revised prompt