Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Yash Parmar332baca538fe
diff --git a/api/core/model_runtime/model_providers/ollama/llm/llm.py b/api/core/model_runtime/model_providers/ollama/llm/llm.py
index fcb94084a51..894195dcc15 100644
--- a/api/core/model_runtime/model_providers/ollama/llm/llm.py
+++ b/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,