Skip to content

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

fix: align LocalAI vision constructor arguments (#16920)

黑墨水鱼4eaad55efe8b
diff --git a/rag/llm/cv_model.py b/rag/llm/cv_model.py
index 30080854fc..df22c41083 100644
--- a/rag/llm/cv_model.py
+++ b/rag/llm/cv_model.py
@@ -728,7 +728,7 @@ class OpenRouterCV(GptV4):
class LocalAICV(GptV4):
_FACTORY_NAME = "LocalAI"
- def __init__(self, key, model_name, base_url, lang="Chinese", **kwargs):
+ def __init__(self, key, model_name, lang="Chinese", base_url="", **kwargs):
if not base_url:
raise ValueError("Local cv model url cannot be None")
base_url = ensure_v1(base_url)