RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix: Bedrock model invocation error. (#6533)
Kevin Hu12ad746ee61c
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.pyindex 1dfdb10683..6c2f154996 100644--- a/rag/llm/chat_model.py+++ b/rag/llm/chat_model.py@@ -829,7 +829,7 @@ class BedrockChat(Base):def chat(self, system, history, gen_conf):from botocore.exceptions import ClientErrorfor k in list(gen_conf.keys()):- if k not in ["top_p", "max_tokens"]:+ if k not in ["temperature"]:del gen_conf[k]for item in history:if not isinstance(item["content"], list) and not isinstance(item["content"], tuple):@@ -854,7 +854,7 @@ class BedrockChat(Base):def chat_streamly(self, system, history, gen_conf):from botocore.exceptions import ClientErrorfor k in list(gen_conf.keys()):- if k not in ["top_p", "max_tokens"]:+ if k not in ["temperature"]:del gen_conf[k]for item in history:if not isinstance(item["content"], list) and not isinstance(item["content"], tuple):