mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 23:39:01 +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)
|
billing_info = cls._send_request('GET', '/info', params=params)
|
||||||
|
|
||||||
vector_size = DatasetService.get_tenant_datasets_usage(tenant_id) / 1024
|
vector_size = DatasetService.get_tenant_datasets_usage(tenant_id)
|
||||||
billing_info['vector_space']['size'] = int(vector_size)
|
# Convert bytes to MB
|
||||||
|
billing_info['vector_space']['size'] = int(vector_size / 1024 / 1024)
|
||||||
|
|
||||||
return billing_info
|
return billing_info
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user