From b3b9c64663a08af3e8c934cbe52bc65aaf993197 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Tue, 2 Jan 2024 19:43:18 +0800 Subject: [PATCH] fix: add default value to top k --- api/core/model_runtime/model_providers/openllm/llm/llm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/core/model_runtime/model_providers/openllm/llm/llm.py b/api/core/model_runtime/model_providers/openllm/llm/llm.py index 5eb09797b226f2..58a4517e4e2cf4 100644 --- a/api/core/model_runtime/model_providers/openllm/llm/llm.py +++ b/api/core/model_runtime/model_providers/openllm/llm/llm.py @@ -170,6 +170,8 @@ def get_customizable_model_schema(self, model: str, credentials: dict) -> AIMode name='top_k', type=ParameterType.INT, use_template='top_k', + min=1, + default=1, label=I18nObject( zh_Hans='Top K', en_US='Top K'