mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #608] [CLOSED] feat: implement Gemini text embeddings calls #1460
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/608
Author: @Xeftax
Created: 3/29/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (4)
845def5feat: implement Gemini text embeddings calls120cbc5add common gemini error mapping across llm and embeddingse81e295Merge branch 'main' into main36e0184Merge branch 'main' into main📊 Changes
8 files changed (+316 additions, -37 deletions)
View changed files
➕
models/gemini/models/common_gemini.py(+32 -0)📝
models/gemini/models/llm/llm.py(+2 -32)➕
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(+11 -5)📄 Description
Related Issue or Context
https://github.com/langgenius/dify/issues/15529
https://ai.google.dev/gemini-api/docs/embeddings
https://ai.google.dev/gemini-api/docs/pricing#text-embedding-004
Type of Change
Test Evidence
https://github.com/user-attachments/assets/740fe2ab-bff6-422a-86e9-688c5abb21d4
Environment Verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.