Просмотр исходного кода

fix: default max_chunks set to 1 as other providers (#10937)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
yihong 5 месяцев назад
Родитель
Сommit
80da0c5830

+ 1 - 1
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