[PR #3767] [MERGED] Add gemini-embedding-exp-03-07 model support #4390

Closed
opened 2026-02-22 18:35:44 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3767
Author: @sdarioz
Created: 5/5/2025
Status: Merged
Merged: 5/5/2025
Merged by: @timothycarambat

Base: masterHead: master


📝 Commits (3)

  • fb5b68a adds gemini-embedding-exp-03-07 support
  • 5f225b8 Merge branch 'master' into master
  • c3f6527 unset random changes, make model map

📊 Changes

2 files changed (+33 additions, -11 deletions)

View changed files

📝 frontend/src/components/EmbeddingSelection/GeminiOptions/index.jsx (+20 -5)
📝 server/utils/EmbeddingEngines/gemini/index.js (+13 -6)

📄 Description

PR: Add gemini-embedding-exp-03-07 model support

Changes

Frontend (EmbeddingSelection/GeminiOptions/index.jsx)

  • Added the new "gemini-embedding-exp-03-07" model to the available embeddings dropdown
  • Users can now select between "text-embedding-004" and the new experimental model

Backend (EmbeddingEngines/gemini/index.js)

  • Implemented dynamic token limit handling:

    • 8,192 tokens for the new "gemini-embedding-exp-03-07" model
    • 2,048 tokens for existing model
  • Minor readability improvements:

    • Better variable naming for error handling
    • Consistent code formatting and structure
    • Descriptive comments

Testing

  • Verified model selection in the UI dropdown
  • Confirmed dynamic token limit handling based on model selection
  • Maintained backward compatibility with existing functionality

These changes enable the system to use Gemini latest embedding model


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/3767 **Author:** [@sdarioz](https://github.com/sdarioz) **Created:** 5/5/2025 **Status:** ✅ Merged **Merged:** 5/5/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`fb5b68a`](https://github.com/Mintplex-Labs/anything-llm/commit/fb5b68a67621721da31f9eb9302c67030a20caca) adds gemini-embedding-exp-03-07 support - [`5f225b8`](https://github.com/Mintplex-Labs/anything-llm/commit/5f225b8cac987aae4ab86494c6dae914de63dce9) Merge branch 'master' into master - [`c3f6527`](https://github.com/Mintplex-Labs/anything-llm/commit/c3f65279be16564330b4039198ad550465a02809) unset random changes, make model map ### 📊 Changes **2 files changed** (+33 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/EmbeddingSelection/GeminiOptions/index.jsx` (+20 -5) 📝 `server/utils/EmbeddingEngines/gemini/index.js` (+13 -6) </details> ### 📄 Description # PR: Add gemini-embedding-exp-03-07 model support ## Changes ### Frontend (EmbeddingSelection/GeminiOptions/index.jsx) - Added the new "gemini-embedding-exp-03-07" model to the available embeddings dropdown - Users can now select between "text-embedding-004" and the new experimental model ### Backend (EmbeddingEngines/gemini/index.js) - Implemented dynamic token limit handling: - **8,192** tokens for the new "gemini-embedding-exp-03-07" model - **2,048** tokens for existing model - Minor readability improvements: - Better variable naming for error handling - Consistent code formatting and structure - Descriptive comments ## Testing - Verified model selection in the UI dropdown - Confirmed dynamic token limit handling based on model selection - Maintained backward compatibility with existing functionality These changes enable the system to use Gemini latest embedding model --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:35:44 -05:00
yindo closed this issue 2026-02-22 18:35:44 -05:00
yindo changed title from [PR #3767] Add gemini-embedding-exp-03-07 model support to [PR #3767] [MERGED] Add gemini-embedding-exp-03-07 model support 2026-06-05 15:18:19 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4390