瀏覽代碼

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

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
tags/0.12.0
yihong 11 月之前
父節點
當前提交
80da0c5830
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/core/model_runtime/model_providers/volcengine_maas/text_embedding/models.py

+ 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

Loading…
取消
儲存