Skip to content

Conversation

@davidmotson
Copy link
Contributor

  • Adds templateID and templateKey parameters to Sample
  • Adds the capacity for template image generation
  • Adds a new "text" path to generate text without a chat interface
  • Adds two new samples to test server prompt templates
  • Adds custom error messages for missing templates

@davidmotson davidmotson requested a review from rlazo November 11, 2025 04:06
@rlazo rlazo requested a review from thatfiredev November 11, 2025 15:26
@rlazo
Copy link
Contributor

rlazo commented Nov 11, 2025

When the error message is shown, and you retry, it doesn't go away

Screenshot 2025-11-11 at 11 01 00 AM

@davidmotson davidmotson requested a review from rlazo November 11, 2025 18:19
@davidmotson davidmotson requested a review from rlazo November 12, 2025 17:24
Copy link
Contributor

@rlazo rlazo left a comment

Choose a reason for hiding this comment

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

LGTM. Before merging, ping @thatfiredev so he can take a look too

description = "Generate an image using a server prompt template.",
navRoute = "imagen",
categories = listOf(Category.IMAGE),
initialPrompt = content { text("List of things that should be in the image") },
Copy link
Member

Choose a reason for hiding this comment

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

Should we use a more actionable prompt here? Or no initial prompt at all? (assuming the prompt comes from the template)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The prompt does come from the template unfortunately. Let me know what you think is best here.

davidmotson and others added 7 commits November 13, 2025 17:20
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
…i/FirebaseAISamples.kt

Co-authored-by: Rosário P. Fernandes <rosariopf@google.com>
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