-
Notifications
You must be signed in to change notification settings - Fork 0
update gemini-flash, try imagen-3 #14
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
Conversation
There was a problem hiding this 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 withclear-image-cache!
to manage generated image URLs. - Introduced
call-flash-imagen-msg!
andcall-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 |) |
There was a problem hiding this comment.
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.
|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 |) |
There was a problem hiding this comment.
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.
|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.
No description provided.