Agent Zero AI framework
Refactor default presets, fix chardet version conflict, improve welcome banner refresh logic
frdel986c1b1cee7f
diff --git a/plugins/_model_config/default_presets.yaml b/plugins/_model_config/default_presets.yamlindex 1a575dff9..1d20b6232 100644--- a/plugins/_model_config/default_presets.yaml+++ b/plugins/_model_config/default_presets.yaml@@ -1,31 +1,47 @@-- name: "Efficiency"+- name: "Max Power"chat:provider: "openrouter"- name: "openai/gpt-5.2-chat"+ name: "anthropic/claude-opus-4.6"+ api_key: ""+ api_base: ""+ ctx_length: 200000+ ctx_history: 0.7+ vision: true+ utility:+ provider: "openrouter"+ name: "openai/gpt-5.4-mini"api_key: ""api_base: ""ctx_length: 128000+ ctx_input: 0.7+- name: "Balance"+ chat:+ provider: "openrouter"+ name: "anthropic/claude-sonnet-4.6"+ api_key: ""+ api_base: ""+ ctx_length: 200000ctx_history: 0.7vision: trueutility:provider: "openrouter"- name: "openai/gpt-5-nano"+ name: "google/gemini-3.1-flash-lite-preview"api_key: ""api_base: ""ctx_length: 128000ctx_input: 0.7-- name: "Intelligence"+- name: "Cost Efficient"chat:provider: "openrouter"- name: "anthropic/claude-opus-4.6"+ name: "moonshotai/kimi-k2.5"api_key: ""api_base: ""ctx_length: 128000ctx_history: 0.7- vision: true+ vision: falseutility:provider: "openrouter"- name: "google/gemini-3-flash-preview"+ name: "openai/gpt-5.4-nano"api_key: ""api_base: ""ctx_length: 128000diff --git a/requirements2.txt b/requirements2.txtindex 7256765d8..859237a09 100644--- a/requirements2.txt+++ b/requirements2.txt@@ -1,2 +1,5 @@litellm==1.79.3-openai==1.99.5\ No newline at end of file+openai==1.99.5+# `unstructured` pulls `chardet` without an upper bound, but `requests`+# warns on import when chardet>=6 is present in the same environment.+chardet<6diff --git a/webui/components/welcome/welcome-store.js b/webui/components/welcome/welcome-store.jsindex b82e33266..5d9185894 100644--- a/webui/components/welcome/welcome-store.js+++ b/webui/components/welcome/welcome-store.js@@ -18,9 +18,11 @@ const model = {},init() {- // Reload banners when settings change- document.addEventListener("settings-updated", () => {- this.refreshBanners(true);+ // Reload banners when a modal closes while the welcome screen is visible.+ document.addEventListener("modal-closed", () => {+ if (this.isVisible) {+ this.refreshBanners(true);+ }});},diff --git a/webui/js/modals.js b/webui/js/modals.jsindex 2cd4b0ad6..c4e444a80 100644--- a/webui/js/modals.js+++ b/webui/js/modals.js@@ -306,6 +306,15 @@ export async function closeModal(modalPath = null) {restoreModalScrollSnapshot(modalStack[modalStack.length - 1]);}+ document.dispatchEvent(+ new CustomEvent("modal-closed", {+ detail: {+ modalPath: modal.path ?? null,+ remainingModalCount: modalStack.length,+ },+ }),+ );+return true;});}