Skip to content

Conversation

@hanouticelina
Copy link
Contributor

@hanouticelina hanouticelina commented Mar 28, 2025

with @Wauplin, we realized that some text-to-image js snippets were incorrect, the key use to pass the prompt is different from a provider to another, so it's better to get the inputs from the body instead.

EDIT: this PR does not fix totally the issue, since the input keys are customized per provider in the textToImage function. This is fixed in #1315.

EDIT 2: in a later PR we will apply a linter on the generated snippets which should make the snippets much nicer!

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding that out!

@hanouticelina hanouticelina requested a review from Wauplin March 28, 2025 18:23
Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hanouticelina hanouticelina merged commit 6c9b6bf into main Mar 31, 2025
5 checks passed
@hanouticelina hanouticelina deleted the fix-text-to-image-snippets branch March 31, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants