mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Refactor default presets, fix chardet version conflict, improve welcome banner refresh logic
- Rename presets: "Efficiency" → "Max Power", "Intelligence" → "Balance", add "Cost Efficient" - Update preset models: use Claude Opus 4.6, Sonnet 4.6, Kimi K2.5, GPT-5.4-mini/nano, Gemini 3.1 Flash Lite - Adjust context lengths and vision capabilities across presets - Pin chardet<6 to avoid import warnings from requests when unstructured is installed - Replace settings-updated listener with modal-closed event
This commit is contained in:
parent
ab28c0f25a
commit
986c1b1cee
4 changed files with 53 additions and 23 deletions
|
|
@ -1,31 +1,47 @@
|
|||
- name: "Efficiency"
|
||||
chat:
|
||||
provider: "openrouter"
|
||||
name: "openai/gpt-5.2-chat"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
ctx_history: 0.7
|
||||
vision: true
|
||||
utility:
|
||||
provider: "openrouter"
|
||||
name: "openai/gpt-5-nano"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
ctx_input: 0.7
|
||||
- name: "Intelligence"
|
||||
- name: "Max Power"
|
||||
chat:
|
||||
provider: "openrouter"
|
||||
name: "anthropic/claude-opus-4.6"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
ctx_length: 200000
|
||||
ctx_history: 0.7
|
||||
vision: true
|
||||
utility:
|
||||
provider: "openrouter"
|
||||
name: "google/gemini-3-flash-preview"
|
||||
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: 200000
|
||||
ctx_history: 0.7
|
||||
vision: true
|
||||
utility:
|
||||
provider: "openrouter"
|
||||
name: "google/gemini-3.1-flash-lite-preview"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
ctx_input: 0.7
|
||||
- name: "Cost Efficient"
|
||||
chat:
|
||||
provider: "openrouter"
|
||||
name: "moonshotai/kimi-k2.5"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
ctx_history: 0.7
|
||||
vision: false
|
||||
utility:
|
||||
provider: "openrouter"
|
||||
name: "openai/gpt-5.4-nano"
|
||||
api_key: ""
|
||||
api_base: ""
|
||||
ctx_length: 128000
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
litellm==1.79.3
|
||||
openai==1.99.5
|
||||
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<6
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue