404 NOT_FOUND for Gemini embedding models after backend retirement #952

Closed
opened 2026-02-16 10:21:06 -05:00 by yindo · 1 comment
Owner

Originally created by @MrunalSinagde on GitHub (Jan 28, 2026).

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.7.2

Plugin version

Gemini embedding models - embedding-001 - gemini-embedding-exp-03-07 - text-embedding-004

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Error appears for models such as:

  • embedding-001
  • gemini-embedding-exp-03-07
  • text-embedding-004

Even though:

  • API key and billing remain unchanged
  • Dify containers have not been updated
  • The issue started suddenly

Steps to Reproduce

  1. Configure Google Gemini in Model Providers
  2. Set provided embedding model names - embedding-001 - gemini-embedding-exp-03-07 - text-embedding-004
  3. Use Knowledge Base embedding or upload documents
  4. Error: 404 NOT_FOUND: Model not found

Error:
404 NOT_FOUND message: 'Model is not found: model/model name'

✔️ Error log

No response

Originally created by @MrunalSinagde on GitHub (Jan 28, 2026). ### 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.7.2 ### Plugin version Gemini embedding models - `embedding-001` - `gemini-embedding-exp-03-07` - `text-embedding-004` ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Error appears for models such as: - `embedding-001` - `gemini-embedding-exp-03-07` - `text-embedding-004` Even though: - API key and billing remain unchanged - Dify containers have not been updated - The issue started suddenly ### Steps to Reproduce 3. Configure Google Gemini in Model Providers 4. Set provided embedding model names - `embedding-001` - `gemini-embedding-exp-03-07` - `text-embedding-004` 5. Use Knowledge Base embedding or upload documents 6. Error: `404 NOT_FOUND: Model not found` Error: 404 NOT_FOUND message: 'Model is not found: model/model name' ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:21:06 -05:00
yindo closed this issue 2026-02-16 10:21:06 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 28, 2026):

The 404 NOT_FOUND error for Gemini embedding models like embedding-001, gemini-embedding-exp-03-07, and text-embedding-004 is happening because these models have likely been retired or are no longer supported by the Google Gemini backend. This is a systemic issue affecting multiple users and is not related to your API key, billing, or Dify configuration changes. The plugin and Dify core dynamically pass the model name to the backend, so if the backend no longer recognizes the model, you'll get this error—even if the model is still listed in the plugin config files source.

To resolve this, you should switch to a currently supported Gemini model. You can check which models your API key supports by running:

import google.generativeai as genai
genai.configure(api_key='YOUR_API_KEY')
for model in genai.list_models():
    print(model)

source

For embedding tasks, consider using models like gemini-1.5-pro, gemini-1.5-flash, or gemini-2.0-flash if they appear in your available models list. Make sure your Dify and Gemini plugin versions are up to date, and update your model configuration to use one of these supported models source.

If you need Gemini text embeddings specifically, note that Dify currently only supports Gemini LLM models and not the Gemini Text Embeddings API (which includes the models you listed) source. Support for Gemini embedding models may be added in the future, so keep an eye on plugin updates and changelogs.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Jan 28, 2026): <!-- Answer --> The 404 NOT_FOUND error for Gemini embedding models like `embedding-001`, `gemini-embedding-exp-03-07`, and `text-embedding-004` is happening because these models have likely been retired or are no longer supported by the Google Gemini backend. This is a systemic issue affecting multiple users and is not related to your API key, billing, or Dify configuration changes. The plugin and Dify core dynamically pass the model name to the backend, so if the backend no longer recognizes the model, you'll get this error—even if the model is still listed in the plugin config files [source](https://github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/models/gemini/models/text_embedding/text_embedding.py#L2-L252). To resolve this, you should switch to a currently supported Gemini model. You can check which models your API key supports by running: ```python import google.generativeai as genai genai.configure(api_key='YOUR_API_KEY') for model in genai.list_models(): print(model) ``` [source](https://github.com/langgenius/dify-official-plugins/issues/1456) For embedding tasks, consider using models like `gemini-1.5-pro`, `gemini-1.5-flash`, or `gemini-2.0-flash` if they appear in your available models list. Make sure your Dify and Gemini plugin versions are up to date, and update your model configuration to use one of these supported models [source](https://github.com/langgenius/dify/discussions/17263). If you need Gemini text embeddings specifically, note that Dify currently only supports Gemini LLM models and not the Gemini Text Embeddings API (which includes the models you listed) [source](https://github.com/langgenius/dify/issues/15529). Support for Gemini embedding models may be added in the future, so keep an eye on plugin updates and changelogs. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/840aa606-936b-4a7f-8e5d-56a299fd7d7c?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20404%20NOT_FOUND%20error%20for%20Gemini%20embedding%20models%20like%20%60embedding-001%60%2C%20%60gemini-embedding-exp-03-07%60%2C%20and%20%60text-embedding-004%60%20is%20happening%20because%20these%20models%20have%20likely%20been%20retired%20or%20are%20no%20longer%20supported%20by%20the%20Google%20Gemini%20backend.%20This%20is%20a%20systemic%20issue%20affecting%20multiple%20users%20and%20is%20not%20related%20to%20your%20API%20key%2C%20billing%2C%20or%20Dify%20configuration%20changes.%20The%20plugin%20and%20Dify%20core%20dynamically%20pass%20the%20model%20name%20to%20the%20backend%2C%20so%20if%20the%20backend%20no%20longer%20recognizes%20the%20model%2C%20you%27ll%20get%20this%20error%E2%80%94even%20if%20the%20model%20is%20still%20listed%20in%20the%20plugin%20config%20files%20%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/a74ee6819e59367091442dc1abc4f275e5bdec92/models/gemini/models/text_embedding/text_embedding.py%23L2-L252%29.%0A%0ATo%20resolve%20this%2C%20you%20should%20switch%20to%20a%20currently%20supported%20Gemini%20model.%20You%20can%20check%20which%20models%20your%20API%20key%20supports%20by%20running%3A%0A%0A%60%60%60python%0Aimport%20google.generativeai%20as%20genai%0Agenai.configure%28api_key%3D%27YOUR_API_KEY%27%29%0Afor%20model%20in%20genai.list_models%28%29%3A%0A%20%20%20%20print%28model%29%0A%60%60%60%0A%5Bsource%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1456%29%0A%0AFor%20embedding%20tasks%2C%20consider%20using%20models%20like%20%60gemini-1.5-pro%60%2C%20%60gemini-1.5-flash%60%2C%20or%20%60gemini-2.0-flash%60%20if%20they%20appear%20in%20your%20available%20models%20list.%20Make%20sure%20your%20Dify%20and%20Gemini%20plugin%20versions%20are%20up%20to%20date%2C%20and%20update%20your%20model%20configuration%20to%20use%20one%20of%20these%20supported%20models%20%5Bsource%5D%28https%3A//github.com/langgenius/dify/discussions/17263%29.%0A%0AIf%20you%20need%20Gemini%20text%20embeddings%20specifically%2C%20note%20that%20Dify%20currently%20only%20supports%20Gemini%20LLM%20models%20and%20not%20the%20Gemini%20Text%20Embeddings%20API%20%28which%20includes%20the%20models%20you%20listed%29%20%5Bsource%5D%28https%3A//github.com/langgenius/dify/issues/15529%29.%20Support%20for%20Gemini%20embedding%20models%20may%20be%20added%20in%20the%20future%2C%20so%20keep%20an%20eye%20on%20plugin%20updates%20and%20changelogs.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2504)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#952