mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 18:39:06 +08:00
fix: vector_size convert bytes to MB. (#1684)
This commit is contained in:
parent
75a6122173
commit
1263b7de75
@ -14,8 +14,9 @@ class BillingService:
|
||||
|
||||
billing_info = cls._send_request('GET', '/info', params=params)
|
||||
|
||||
vector_size = DatasetService.get_tenant_datasets_usage(tenant_id) / 1024
|
||||
billing_info['vector_space']['size'] = int(vector_size)
|
||||
vector_size = DatasetService.get_tenant_datasets_usage(tenant_id)
|
||||
# Convert bytes to MB
|
||||
billing_info['vector_space']['size'] = int(vector_size / 1024 / 1024)
|
||||
|
||||
return billing_info
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user