mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-29 18:53:35 +00:00
Make model presets a single global collection and treat presets as reusable setups (main, utility, embedding). Persisted scope configs now store only a preset name (Default is always present and immutable); project-scoped preset definitions were removed and attempts to edit/reset project presets are rejected. Add embedding-model support throughout: include embedding slot in presets, surface embedding in the switcher and override APIs, and notify extensions when the effective embedding model changes. Implement rename/retire propagation to update plugin configs, saved chats, and live AgentContext objects when preset names change or presets are removed. Update CLI/integration commands to use an "inherit" action for returning to the scoped preset and to report the effective scoped-or-chat preset. Add startup migration/bootstrap to initialize presets from remote or bundled fallback and numerous docs/UI text updates to reflect the new preset model. Extra: refactor config resolution helpers and add safety checks (validation, atomic writes) when saving presets.
27 lines
737 B
HTML
27 lines
737 B
HTML
<html>
|
|
<head>
|
|
<title>Model Preset</title>
|
|
<script type="module">
|
|
import { store } from "/plugins/_model_config/webui/model-config-store.js";
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div x-data="$store.modelConfig.createScopedPresetSelector(context)"
|
|
x-init="await init()">
|
|
<div class="section-title">Model Preset</div>
|
|
<div class="section-description">
|
|
This scope stores only a preset selection. Edit the preset once and every scope using it stays in sync.
|
|
</div>
|
|
<div class="scoped-preset-overview">
|
|
<x-component path="/plugins/_model_config/webui/preset-overview.html"></x-component>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.scoped-preset-overview {
|
|
margin-top: 1rem;
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|