mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add disable_model_load flag for classic UI. Only applies restriction on page refresh
This commit is contained in:
@@ -1907,7 +1907,7 @@ def index():
|
||||
if args.no_ui:
|
||||
return redirect('/api/latest')
|
||||
else:
|
||||
return render_template('index.html', hide_ai_menu=args.noaimenu)
|
||||
return render_template('index.html', hide_ai_menu=args.noaimenu or koboldai_vars.disable_model_load)
|
||||
@app.route('/api', strict_slashes=False)
|
||||
@require_allowed_ip
|
||||
def api():
|
||||
|
Reference in New Issue
Block a user