mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 21:50:34 +00:00
Add unzip to Docker base packages, refactor API key handling, improve self-update system
- Add unzip package to Docker base installation - Remove deprecated missing API key banner extension - Refactor API key management: clear drafts on init, track dirty state, allow empty string saves - Add version filtering to self-update: enforce minimum v0.9.9, validate tag format - Improve self-update UI: convert howto to Bootstrap collapse, fix branch selector reactivity, group tag suggestions - Fix settings
This commit is contained in:
parent
e680256b29
commit
75b8085b65
12 changed files with 480 additions and 91 deletions
|
|
@ -22,6 +22,7 @@
|
|||
},
|
||||
async init() {
|
||||
await $store.modelConfig.ensureLoaded();
|
||||
$store.modelConfig.resetApiKeyDrafts();
|
||||
await $store.modelConfig.refreshApiKeyStatus();
|
||||
$store.modelConfig.allProviders.forEach((provider) => {
|
||||
this.keys[provider.value] = '';
|
||||
|
|
@ -50,9 +51,7 @@
|
|||
const updates = {};
|
||||
for (const provider of Object.keys(this.touched)) {
|
||||
if (!this.touched[provider]) continue;
|
||||
const value = (this.keys[provider] || '').trim();
|
||||
if (!value) continue;
|
||||
updates[provider] = value;
|
||||
updates[provider] = this.keys[provider] || '';
|
||||
}
|
||||
await $store.modelConfig.saveApiKeys(updates);
|
||||
await $store.modelConfig.refreshApiKeyStatus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue