chore: use dify_config.TIDB_SPEND_LIMIT instead of constant value (#10038)

This commit is contained in:
zhuhao 2024-10-30 15:43:07 +08:00 committed by GitHub
parent 190b6a2aa6
commit 7433095240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@ class TidbService:
} }
spending_limit = { spending_limit = {
"monthly": 100, "monthly": dify_config.TIDB_SPEND_LIMIT,
} }
password = str(uuid.uuid4()).replace("-", "")[:16] password = str(uuid.uuid4()).replace("-", "")[:16]
display_name = str(uuid.uuid4()).replace("-", "")[:16] display_name = str(uuid.uuid4()).replace("-", "")[:16]