From ecaa9de8430a08c6ee0bd6a030ba00343aac7471 Mon Sep 17 00:00:00 2001 From: Stephen Hu Date: Mon, 25 Aug 2025 10:17:10 +0800 Subject: [PATCH] Fix:[ERROR]'LLMBundle' object has no attribute 'language' (#9682) ### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/9672 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/db/services/llm_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/db/services/llm_service.py b/api/db/services/llm_service.py index 60bdde7a3..76c4cb40f 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):