[PR #1597] [MERGED] fix(plugin): add required context_size to OpenAITextEmbeddingModel (fix #1591) #1976

Closed
opened 2026-02-16 11:15:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1597
Author: @Hay0666
Created: 8/27/2025
Status: Merged
Merged: 8/28/2025
Merged by: @crazywoola

Base: mainHead: fix/add-context-size


📝 Commits (2)

  • c57f79f fix(plugin): add required context_size to OpenAITextEmbeddingModel (fix #1591)
  • 6456d51 chore(openai_api_compatible): combine fixes (#1597, #1598) and bump version to 0.0.22

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 models/openai_api_compatible/manifest.yaml (+1 -1)
📝 models/openai_api_compatible/models/text_embedding/text_embedding.py (+1 -0)

📄 Description

Fixes #1591
Fixes https://github.com/langgenius/dify-official-plugins/issues/1595 – Prevents the PluginInvokeError when credentials is None in text_embedding.py.

  • Added context_size field to OpenAITextEmbeddingModel.
  • Pulls the value from plugin credentials to fix "Variable context_size is required" error.

🔄 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/langgenius/dify-official-plugins/pull/1597 **Author:** [@Hay0666](https://github.com/Hay0666) **Created:** 8/27/2025 **Status:** ✅ Merged **Merged:** 8/28/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix/add-context-size` --- ### 📝 Commits (2) - [`c57f79f`](https://github.com/langgenius/dify-official-plugins/commit/c57f79fbb1ccce5572920d260261165bb5579e49) fix(plugin): add required context_size to OpenAITextEmbeddingModel (fix #1591) - [`6456d51`](https://github.com/langgenius/dify-official-plugins/commit/6456d514170e5e2996712e9fa8cfa786b0570cb0) chore(openai_api_compatible): combine fixes (#1597, #1598) and bump version to 0.0.22 ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/openai_api_compatible/manifest.yaml` (+1 -1) 📝 `models/openai_api_compatible/models/text_embedding/text_embedding.py` (+1 -0) </details> ### 📄 Description Fixes #1591 Fixes https://github.com/langgenius/dify-official-plugins/issues/1595 – Prevents the PluginInvokeError when credentials is None in text_embedding.py. - Added `context_size` field to OpenAITextEmbeddingModel. - Pulls the value from plugin credentials to fix "Variable context_size is required" error. --- <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-16 11:15:45 -05:00
yindo closed this issue 2026-02-16 11:15:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1976