Skip to content

feat/image-generation - #1078

Merged
sedanah-m merged 6 commits into
masterfrom
image-generation
Aug 13, 2026
Merged

feat/image-generation#1078
sedanah-m merged 6 commits into
masterfrom
image-generation

Conversation

@sedanah-m

@sedanah-m sedanah-m commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Adds an image-generation feature to ai-samples, covering all 4 capabilities from the Firebase AI Logic docs: text-to-image, interleaved text + image, single-turn image editing, and iterative multi-turn editing via chat.

@sedanah-m sedanah-m changed the title Implement Image-Generation feat/image-generation Aug 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request implements an image generation and iterative editing feature using Firebase AI. It introduces a React component (ImageGenerationView) for the UI and a service file (service.ts) to handle chat sessions, image generation, and multi-turn image editing with the Gemini model. The review feedback suggests adding a loading guard to prevent duplicate submissions, resolving an incomplete TODO comment, and improving the robustness of Base64 extraction from file uploads.

Comment thread ai/ai-samples/src/features/image-generation/index.tsx
Comment thread ai/ai-samples/src/features/image-generation/index.tsx Outdated
Comment thread ai/ai-samples/src/features/image-generation/service.ts Outdated

@rafikhan rafikhan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Minor feedback.

Comment thread ai/ai-samples/src/features/image-generation/service.ts Outdated
Comment thread ai/ai-samples/src/features/image-generation/service.ts

@rafikhan rafikhan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

Comment thread ai/ai-samples/src/features/image-generation/service.ts
@sedanah-m
sedanah-m marked this pull request as ready for review August 13, 2026 18:18
@sedanah-m
sedanah-m merged commit e86209c into master Aug 13, 2026
17 of 18 checks passed
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.

2 participants