Agent Zero AI framework
update Preset key warning banner links to plugin settings modal
keyboardstaffd294ce72d11e
diff --git a/extensions/python/banners/_20_missing_api_key.py b/extensions/python/banners/_20_missing_api_key.pyindex 3528e9a9c..14e7db5e8 100644--- a/extensions/python/banners/_20_missing_api_key.py+++ b/extensions/python/banners/_20_missing_api_key.py@@ -87,8 +87,8 @@ class MissingApiKeyCheck(Extension):"title": "Missing API Key for model presets","html": f"""No API key configured for preset models: {preset_list}.<br>These presets will not work until you provide the required API keys.<br>- <a href="#" onclick="openModal('/plugins/_model_config/webui/api-keys.html');return false;">- Manage API Keys</a>""",+ <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;">+ Configure model settings</a>""","dismissible": True,"source": "backend"})