mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 02:29:05 +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:
parent
83b6abf4ad
commit
80da0c5830
@ -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…
x
Reference in New Issue
Block a user