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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Adapt input type parameter with MiniMax embedding model (#9342)
ice yao5908fd65521f
diff --git a/api/core/model_runtime/model_providers/minimax/text_embedding/text_embedding.py b/api/core/model_runtime/model_providers/minimax/text_embedding/text_embedding.pyindex 74d2a221d1b..d031bfa04d4 100644--- a/api/core/model_runtime/model_providers/minimax/text_embedding/text_embedding.py+++ b/api/core/model_runtime/model_providers/minimax/text_embedding/text_embedding.py@@ -61,7 +61,8 @@ class MinimaxTextEmbeddingModel(TextEmbeddingModel):url = f"{self.api_base}?GroupId={group_id}"headers = {"Authorization": "Bearer " + api_key, "Content-Type": "application/json"}- data = {"model": "embo-01", "texts": texts, "type": "db"}+ embedding_type = "db" if input_type == EmbeddingInputType.DOCUMENT else "query"+ data = {"model": "embo-01", "texts": texts, "type": embedding_type}try:response = post(url, headers=headers, data=dumps(data))