mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
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)
This commit is contained in:
@ -152,7 +152,7 @@ class LLMBundle(LLM4Tenant):
|
|||||||
|
|
||||||
def describe_with_prompt(self, image, prompt):
|
def describe_with_prompt(self, image, prompt):
|
||||||
if self.langfuse:
|
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)
|
txt, used_tokens = self.mdl.describe_with_prompt(image, prompt)
|
||||||
if not TenantLLMService.increase_usage(self.tenant_id, self.llm_type, used_tokens):
|
if not TenantLLMService.increase_usage(self.tenant_id, self.llm_type, used_tokens):
|
||||||
|
|||||||
Reference in New Issue
Block a user