Skip to content

Conversation

tiye
Copy link
Member

@tiye tiye commented May 21, 2025

No description provided.

@tiye tiye requested review from a team and Copilot May 21, 2025 16:18
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR integrates a new “flash-imagen” image generation path using Google Gemini Flash and experiments with the Imagen 3 API. Key changes include:

  • Added *image-cache atom with clear-image-cache! to manage generated image URLs.
  • Introduced call-flash-imagen-msg! and call-imagen-3-msg! handlers and updated UI dispatch and menu entries.
  • Cleaned up legacy Gemini Flash model mapping and adjusted HTTP config endpoints.

@@ -164,48 +166,58 @@
d! $ :: :states cursor
-> state (assoc :answer @*text) (assoc :loading? false) (assoc :done? false)
recur
|call-gemini-msg! $ %{} :CodeEntry (:doc "|switching to Google's generative-ai-js sdk")
|call-flash-imagen-msg! $ %{} :CodeEntry (:doc |)
Copy link
Preview

Copilot AI May 21, 2025

Choose a reason for hiding this comment

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

[nitpick] The call-flash-imagen-msg! entry has an empty :doc string; consider providing a concise description of its purpose and parameters.

Suggested change
|call-flash-imagen-msg! $ %{} :CodeEntry (:doc |)
|call-flash-imagen-msg! $ %{} :CodeEntry (:doc "|Generates content using the Flash Imagen model. Accepts a variant, cursor, state, prompt text, and a dispatch function. Updates the application state and handles asynchronous operations.")

Copilot uses AI. Check for mistakes.

@@ -271,9 +279,9 @@
-> state (assoc :answer @*text) (assoc :loading? false) (assoc :done? false)
d! $ :: :states cursor
-> state (assoc :answer @*text) (assoc :loading? false) (assoc :done? true)
|call-imagin-msg! $ %{} :CodeEntry (:doc |)
|call-imagen-3-msg! $ %{} :CodeEntry (:doc |)
Copy link
Preview

Copilot AI May 21, 2025

Choose a reason for hiding this comment

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

[nitpick] The call-imagen-3-msg! entry also has an empty :doc string; adding a clear docstring would improve readability and maintainability.

Suggested change
|call-imagen-3-msg! $ %{} :CodeEntry (:doc |)
|call-imagen-3-msg! $ %{} :CodeEntry (:doc "|Generates images using the Imagen 3.0 model and updates the application state with the generated image or error status.")

Copilot uses AI. Check for mistakes.

@NoEgAm NoEgAm merged commit 7cc943a into main May 28, 2025
1 check passed
@NoEgAm NoEgAm deleted the update branch May 28, 2025 07:22
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