Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duolabmeng6 committed Sep 14, 2024
1 parent 27fde50 commit ac8f2f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ async def models(

@app.get("/reload_config")
def reload_config():
global ai_manager, db
global ai_manager, db, G_balance
G_balance = {}
db = reload_db()
ai_manager = load_providers(db)
return f"已经执行刷新配置{time.time()}"
Expand Down

0 comments on commit ac8f2f2

Please sign in to comment.