Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Update the API call address for the text_embedding model (#12342)

方程6df17a334c77
diff --git a/api/core/model_runtime/model_providers/gitee_ai/text_embedding/text_embedding.py b/api/core/model_runtime/model_providers/gitee_ai/text_embedding/text_embedding.py
index a1fa89c5b34..97d5ecc2494 100644
--- a/api/core/model_runtime/model_providers/gitee_ai/text_embedding/text_embedding.py
+++ b/api/core/model_runtime/model_providers/gitee_ai/text_embedding/text_embedding.py
@@ -24,8 +24,5 @@ class GiteeAIEmbeddingModel(OAICompatEmbeddingModel):
super().validate_credentials(model, credentials)
@staticmethod
- def _add_custom_parameters(credentials: dict, model: Optional[str]) -> None:
- if model is None:
- model = "bge-m3"
-
- credentials["endpoint_url"] = f"https://ai.gitee.com/api/serverless/{model}/v1/"
+ def _add_custom_parameters(credentials: dict, model: str) -> None:
+ credentials["endpoint_url"] = "https://ai.gitee.com/v1"