ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Can't update token usage for cc28c3f250ae11ef9584acde48001122/EMBEDDING

Open fuhao009 opened this issue 6 months ago • 1 comments

Describe your problem

def encode_queries(self, query: str):
    emd, used_tokens = self.mdl.encode_queries(query)
    if not TenantLLMService.increase_usage(
            self.tenant_id, self.llm_type, used_tokens):
        database_logger.error(
            "Can't update token usage for {}/EMBEDDING".format(self.tenant_id))
    return emd, used_tokens
    

fuhao009 avatar Aug 05 '24 01:08 fuhao009