소스 검색

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

zhuhao 5 달 전
부모
커밋
7433095240
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py

+ 1 - 1
api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_service.py

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