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: default max_chunks set to 1 as other providers (#10937)

yihong80da0c58307d
diff --git a/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py b/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py
index ce4f0c3ab19..4a6f5b6f7bc 100644
--- a/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py
+++ b/api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py
@@ -22,7 +22,7 @@ def get_model_config(credentials: dict) -> ModelConfig:
return ModelConfig(
properties=ModelProperties(
context_size=int(credentials.get("context_size", 0)),
- max_chunks=int(credentials.get("max_chunks", 0)),
+ max_chunks=int(credentials.get("max_chunks", 1)),
)
)
return model_configs