update Preset key warning banner links to plugin settings modal
keyboardstaff committed
Mar 17, 2026 at 00:51 UTC
d294ce72d11e44c01deac3350c2fa8e484f82cf0
1 file changed
+2
-2
extensions/python/banners/_20_missing_api_key.py
+2
-2
@@ -87,8 +87,8 @@ class MissingApiKeyCheck(Extension):
87
"title": "Missing API Key for model presets",
88
"html": f"""No API key configured for preset models: {preset_list}.<br>
89
These presets will not work until you provide the required API keys.<br>
90
- <a href="#" onclick="openModal('/plugins/_model_config/webui/api-keys.html');return false;">
91
- Manage API Keys</a>""",
90
+ <a href="#" onclick="(async()=>{{await import('/components/plugins/plugin-settings-store.js');const s=Alpine.store('pluginSettingsPrototype');if(s&&s.open){{await s.open('_model_config',{{perProjectConfig:true,perAgentConfig:true}});}}openModal('components/plugins/plugin-settings.html');}})();return false;">
91
+ Configure model settings</a>""",
92
"dismissible": True,
93
"source": "backend"
94
})