mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix: default max_chunks set to 1 as other providers (#10937)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
1 parent
83b6abf4ad
commit
80da0c5830
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user