Skip to content

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

Feat: add exponential back-off for Chat LiteLLM (#9880)

Yongteng Leib58e882eaa5d
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py
index 17a6ccea9a..98d71141c8 100644
--- a/rag/llm/chat_model.py
+++ b/rag/llm/chat_model.py
@@ -1534,6 +1534,7 @@ class LiteLLMBase(ABC):
"model": self.model_name,
"messages": history,
"api_key": self.api_key,
+ "num_retries": self.max_retries,
**kwargs,
}
if stream: