Parcourir la source

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

Yash Parmar il y a 11 mois
Parent
commit
332baca538
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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,