Vertex AI | Google Cloud Platform needs to support Gemini 2.0 Flash Preview Image Generation #379

Closed
opened 2026-02-16 10:19:13 -05:00 by yindo · 3 comments
Owner

Originally created by @GonzaHM on GitHub (Jun 18, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.3.1

Plugin version

0.0.19

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Vertex AI already has the models, and currently the plugin cannot select these models.
It seems that the current llm.py might not yet support image generation models.

✔️ Error log

No response

Originally created by @GonzaHM on GitHub (Jun 18, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.3.1 ### Plugin version 0.0.19 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Vertex AI already has the models, and currently the plugin cannot select these models. It seems that the current `llm.py` might not yet support image generation models. ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:19:13 -05:00
yindo closed this issue 2026-02-16 10:19:13 -05:00
Author
Owner

@jortegac commented on GitHub (Jun 18, 2025):

I believe the gemini plugin for Dify had some partial support for this but only for the gemini-2.0-flash-exp model

https://github.com/langgenius/dify-official-plugins/blob/main/models/gemini/models/llm/llm.py#L185C22-L185C42

And mentioned in the 1.4.0 dify release
https://github.com/langgenius/dify/releases/tag/1.4.0

Might be a good starting point for the Vertex plugin

@jortegac commented on GitHub (Jun 18, 2025): I believe the gemini plugin for Dify had some partial support for this but only for the `gemini-2.0-flash-exp` model https://github.com/langgenius/dify-official-plugins/blob/main/models/gemini/models/llm/llm.py#L185C22-L185C42 And mentioned in the 1.4.0 dify release https://github.com/langgenius/dify/releases/tag/1.4.0 Might be a good starting point for the Vertex plugin
Author
Owner

@takuya-o commented on GitHub (Jun 18, 2025):

Although gemini-2.0-flash-preview-image-generation has fewer functions as that not support tools call etc., I believe that image generation is possible if you implement it in a similar way to gemini-2.0-flash-exp.

@takuya-o commented on GitHub (Jun 18, 2025): Although `gemini-2.0-flash-preview-image-generation` has fewer functions as that not support tools call etc., I believe that image generation is possible if you implement it in a similar way to `gemini-2.0-flash-exp`.
Author
Owner

@jortegac commented on GitHub (Jun 25, 2025):

@crazywoola Please reopen. This issue is for the Vertex plugin, and the PR is for the Gemini plugin

@jortegac commented on GitHub (Jun 25, 2025): @crazywoola Please reopen. This issue is for the Vertex plugin, and the PR is for the Gemini plugin
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#379