Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(sdk): temperature default should be a float, not a 1-tuple (#18656)

陈志谦f5c359e64bb2
diff --git a/sdk/python/ragflow_sdk/modules/memory.py b/sdk/python/ragflow_sdk/modules/memory.py
index 09b057fd2f..ecdb8a92f7 100644
--- a/sdk/python/ragflow_sdk/modules/memory.py
+++ b/sdk/python/ragflow_sdk/modules/memory.py
@@ -32,7 +32,7 @@ class Memory(Base):
self.description = ""
self.memory_size = 5 * 1024 * 1024
self.forgetting_policy = "FIFO"
- self.temperature = (0.5,)
+ self.temperature = 0.5
self.system_prompt = ""
self.user_prompt = ""
for k in list(res_dict.keys()):