Fix: describe parameter error. (#6519)

### What problem does this PR solve?
#6228

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-03-26 09:02:48 +08:00 committed by GitHub
parent b2b7ed8927
commit bf483fdf02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))