"gemini-2.0-flash-001" model not visible in model list (Dify v0.15.3) #8056

Closed
opened 2026-02-21 18:23:41 -05:00 by yindo · 1 comment
Owner

Originally created by @takatea on GitHub (Feb 7, 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 search for existing issues, 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

0.15.3

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Click on user icon
  2. Select "Settings"
  3. Click "Model Provider"
  4. Open "Show Models" in Gemini section
Image

Additional Notes

Version:

Image

Note:

"gemini-2.0-pro-exp-02-05" model, which was added in the same PR (#13247), is visible in the list.

✔️ Expected Behavior

"gemini-2.0-flash-001" model should be listed in the Gemini model list

Actual Behavior

"gemini-2.0-flash-001" model is not visible in the model list despite being defined in the Gemini model list

Originally created by @takatea on GitHub (Feb 7, 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 [search for existing issues](https://github.com/langgenius/dify/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 0.15.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Click on user icon 2. Select "Settings" 3. Click "Model Provider" 4. Open "Show Models" in Gemini section <img width="629" alt="Image" src="https://github.com/user-attachments/assets/50bd2349-385b-4d58-bdcd-252a7a68d54f" /> ### Additional Notes Version: <img width="509" alt="Image" src="https://github.com/user-attachments/assets/2399192a-67d6-4dda-8f3f-4b1b25749d37" /> Note: "gemini-2.0-pro-exp-02-05" model, which was added in the same PR (#13247), is visible in the list. ### ✔️ Expected Behavior "gemini-2.0-flash-001" model should be listed in the Gemini model list ### ❌ Actual Behavior "gemini-2.0-flash-001" model is not visible in the model list despite being defined in the Gemini model list
yindo added the 🐞 bugcloud labels 2026-02-21 18:23:41 -05:00
yindo closed this issue 2026-02-21 18:23:41 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 7, 2025):

Hey @takatea! 👋 I'm here to help you with bug fixes, answer questions, and support your contributions. Let's squash those bugs together!

I found a similar closed issue regarding the model list not being synchronized in the Docker version of Dify. The suggested solution includes several areas to investigate:

  1. Model Configuration: Ensure that the models you expect to see are properly configured in the codebase. Check if the models are included in relevant lists such as LLM_BASE_MODELS in the file api/core/model_runtime/model_providers/azure_openai/_constant.py.

  2. Environment Variables: Verify the environment variables related to model providers in your setup. Specifically, check the POSITION_PROVIDER_PINS, POSITION_PROVIDER_INCLUDES, and POSITION_PROVIDER_EXCLUDES settings in your .env file to ensure they are not excluding the models you want to see.

  3. ML Frameworks: Make sure that the necessary ML frameworks (e.g., PyTorch, TensorFlow, Flax) are installed and properly configured in your environment.

  4. Configuration: Ensure that your configuration allows access to local models or external services, which might involve setting the correct network configurations or environment variables.

These steps might help in resolving the issue with the "gemini-2.0-flash-001" model not being visible in the model list [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Feb 7, 2025): <!-- Greeting --> Hey @takatea! 👋 I'm here to help you with bug fixes, answer questions, and support your contributions. Let's squash those bugs together! <!-- Answer --> I found a similar closed issue regarding the model list not being synchronized in the Docker version of Dify. The suggested solution includes several areas to investigate: 1. **Model Configuration**: Ensure that the models you expect to see are properly configured in the codebase. Check if the models are included in relevant lists such as `LLM_BASE_MODELS` in the file `api/core/model_runtime/model_providers/azure_openai/_constant.py`. 2. **Environment Variables**: Verify the environment variables related to model providers in your setup. Specifically, check the `POSITION_PROVIDER_PINS`, `POSITION_PROVIDER_INCLUDES`, and `POSITION_PROVIDER_EXCLUDES` settings in your `.env` file to ensure they are not excluding the models you want to see. 3. **ML Frameworks**: Make sure that the necessary ML frameworks (e.g., PyTorch, TensorFlow, Flax) are installed and properly configured in your environment. 4. **Configuration**: Ensure that your configuration allows access to local models or external services, which might involve setting the correct network configurations or environment variables. These steps might help in resolving the issue with the "gemini-2.0-flash-001" model not being visible in the model list <sup>[[1]](https://github.com/langgenius/dify/issues/13276)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/6d53a473-ec65-44fa-828c-91e7beb19f28?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8056