Skip to content

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

Fix: describe parameter error. (#6519)

Kevin Hubf483fdf0243
diff --git a/api/db/services/llm_service.py b/api/db/services/llm_service.py
index 15c461afc7..f5abb776fe 100644
--- a/api/db/services/llm_service.py
+++ b/api/db/services/llm_service.py
@@ -258,7 +258,7 @@ class LLMBundle:
if self.langfuse:
generation = self.trace.generation(name="describe", metadata={"model": self.llm_name})
- txt, used_tokens = self.mdl.describe(image, max_tokens)
+ txt, used_tokens = self.mdl.describe(image)
if not TenantLLMService.increase_usage(self.tenant_id, self.llm_type, used_tokens):
logging.error("LLMBundle.describe can't update token usage for {}/IMAGE2TEXT used_tokens: {}".format(self.tenant_id, used_tokens))