Browse Source

FIX: fix the temperature value of ollama model (#4027)

Yash Parmar 11 months ago
parent
commit
332baca538
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/core/model_runtime/model_providers/ollama/llm/llm.py

+ 1 - 1
api/core/model_runtime/model_providers/ollama/llm/llm.py

@@ -451,7 +451,7 @@ class OllamaLargeLanguageModel(LargeLanguageModel):
                                           "more creatively. (Default: 0.8)"),
                     default=0.1,
                     min=0,
-                    max=2
+                    max=1
                 ),
                 ParameterRule(
                     name=DefaultParameterName.TOP_P.value,