Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: call generate image API if isImageGeneration is true. #3001

Draft
wants to merge 4 commits into
base: feature/model-player-UI-updated
Choose a base branch
from

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jan 6, 2025

Add Image Generation Feature to LLM Chat Component

This PR adds image generation capabilities to the LLM Chat Card component, allowing users to generate images from text prompts using a Stable Diffusion endpoint.

Key Changes:

  • Added image generation functionality via new isImageGeneration prop
  • Implemented generateImage function to handle image generation requests
  • Added loading state for image generation process
  • Modified message handling to support generated image attachments
  • Added visual indicator for image generation feature

Checklist:

  • Documentation
  • Test case: Verify image generation with sample prompt
  • Test case: Verify loading states during generation
  • Test case: Verify error handling for failed requests

Review Requirements:

@github-actions github-actions bot added the size:M 30~100 LoC label Jan 6, 2025
Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added size:L 100~500 LoC and removed size:M 30~100 LoC labels Jan 6, 2025
@lizable lizable force-pushed the feature/model-player-UI-updated branch from e62b4d3 to bde6323 Compare January 6, 2025 09:26
@lizable lizable force-pushed the feaure/image-generation branch from 10d365d to d88dc15 Compare January 6, 2025 09:28
@agatha197 agatha197 force-pushed the feaure/image-generation branch from d88dc15 to e90687f Compare January 6, 2025 14:47
@agatha197 agatha197 force-pushed the feature/model-player-UI-updated branch from bde6323 to 6dabc24 Compare January 6, 2025 15:03
@agatha197 agatha197 force-pushed the feaure/image-generation branch from e90687f to 6b7f5b3 Compare January 6, 2025 15:03
@lizable lizable force-pushed the feaure/image-generation branch from 6b7f5b3 to 5a3b049 Compare January 7, 2025 02:14
@agatha197 agatha197 force-pushed the feaure/image-generation branch from 5a3b049 to 7a48c24 Compare January 7, 2025 05:40
@lizable lizable force-pushed the feaure/image-generation branch 3 times, most recently from 0d70dc9 to 434bd39 Compare January 7, 2025 08:42
@agatha197 agatha197 force-pushed the feaure/image-generation branch from 434bd39 to 370ae55 Compare January 7, 2025 23:29
@agatha197 agatha197 force-pushed the feature/model-player-UI-updated branch from bca06e7 to 9e6681c Compare January 8, 2025 12:48
@agatha197 agatha197 force-pushed the feaure/image-generation branch 2 times, most recently from c156365 to 164d29c Compare January 8, 2025 12:50
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization size:XL 500~ LoC and removed size:L 100~500 LoC labels Jan 8, 2025
@agatha197 agatha197 force-pushed the feature/model-player-UI-updated branch from 9e6681c to 897fa04 Compare January 8, 2025 12:59
@agatha197 agatha197 force-pushed the feaure/image-generation branch 2 times, most recently from df487b0 to 3a14e58 Compare January 8, 2025 13:04
@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels Jan 8, 2025
@agatha197 agatha197 force-pushed the feaure/image-generation branch from 3a14e58 to 0023202 Compare January 9, 2025 01:06
@agatha197 agatha197 force-pushed the feaure/image-generation branch 4 times, most recently from 6191df7 to c1d09da Compare January 9, 2025 10:07
@lizable lizable force-pushed the feature/model-player-UI-updated branch from 897fa04 to 20f30e9 Compare January 10, 2025 09:35
@lizable lizable force-pushed the feaure/image-generation branch from c1d09da to fdabe39 Compare January 10, 2025 09:35
@lizable lizable force-pushed the feature/model-player-UI-updated branch from 20f30e9 to 92a7fb2 Compare January 22, 2025 03:48
@lizable lizable force-pushed the feaure/image-generation branch from fdabe39 to d1f3928 Compare January 22, 2025 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:ux UI / UX issue. size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants