feat:调试修改

This commit is contained in:
雷雨
2025-10-14 10:31:00 +08:00
parent be0bc661e2
commit 9d0457ea39
5 changed files with 120 additions and 84 deletions

View File

@@ -71,7 +71,7 @@ def init_vn(vn):
from vanna.flask import VannaFlaskApp
vn = create_vana()
app = VannaFlaskApp(vn,chart=False)
app.cache = TTLCacheWrapper(app.cache, ttl = config('TTL_CACHE', cast=int))
app.cache = TTLCacheWrapper(app.cache, ttl = config('TTL_CACHE', cast=int,default=60*60))
init_vn(vn)
cache = app.cache
@app.flask_app.route("/yj_sqlbot/api/v0/generate_sql_2", methods=["GET"])