mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1186] [MERGED] feat: implement Gemini text embeddings #1758
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1186
Author: @khoazero123
Created: 7/1/2025
Status: ✅ Merged
Merged: 7/8/2025
Merged by: @crazywoola
Base:
main← Head:feat/implement-gemini-text-embeddings📝 Commits (2)
43b2e10feat: implement Gemini text embeddings622b9a2Update models/gemini/requirements.txt📊 Changes
10 files changed (+318 additions, -7 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)➕
models/gemini/models/common_gemini.py(+32 -0)📝
models/gemini/models/llm/llm.py(+1 -1)➕
models/gemini/models/text_embedding/_position.yaml(+3 -0)➕
models/gemini/models/text_embedding/embedding-001.yaml(+9 -0)➕
models/gemini/models/text_embedding/gemini-embedding-exp-03-07.yaml(+9 -0)➕
models/gemini/models/text_embedding/text-embedding-004.yaml(+9 -0)➕
models/gemini/models/text_embedding/text_embedding.py(+241 -0)📝
models/gemini/provider/google.yaml(+10 -4)📝
models/gemini/requirements.txt(+3 -1)📄 Description
Related Issues or Context
langgenius/dify#15529
https://ai.google.dev/gemini-api/docs/embeddings
https://ai.google.dev/gemini-api/docs/pricing#text-embedding-004
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Videos Demonstrating
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.