Skip to content

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

Fix:[ERROR]'LLMBundle' object has no attribute 'language' (#9682)

Stephen Huecaa9de8430a
diff --git a/api/db/services/llm_service.py b/api/db/services/llm_service.py
index 60bdde7a3f..76c4cb40f6 100644
--- a/api/db/services/llm_service.py
+++ b/api/db/services/llm_service.py
@@ -152,7 +152,7 @@ class LLMBundle(LLM4Tenant):
def describe_with_prompt(self, image, prompt):
if self.langfuse:
- generation = self.language.start_generation(trace_context=self.trace_context, name="describe_with_prompt", metadata={"model": self.llm_name, "prompt": prompt})
+ generation = self.langfuse.start_generation(trace_context=self.trace_context, name="describe_with_prompt", metadata={"model": self.llm_name, "prompt": prompt})
txt, used_tokens = self.mdl.describe_with_prompt(image, prompt)
if not TenantLLMService.increase_usage(self.tenant_id, self.llm_type, used_tokens):