agent-zero/plugins/_model_config/webui/models-summary.html
frdel 15a2b553be Unify global model presets
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.
2026-07-17 12:16:10 +02:00

48 lines
1.3 KiB
HTML

<html>
<head>
<title>Models</title>
<script type="module">
import { store } from "/plugins/_model_config/webui/model-config-store.js";
</script>
</head>
<body>
<div x-data>
<template x-if="$store.modelConfig">
<div>
<div class="section-title">Models</div>
<div class="section-description">
Choose a global model preset. Project and agent-profile defaults are available in the full model settings.
</div>
<div class="settings-model-preset"
x-data="$store.modelConfig.createGlobalPresetSelector()"
x-init="await init($store.chats?.selected || '')">
<div x-show="loading" class="settings-model-loading">
<span class="material-symbols-outlined spinning">progress_activity</span>
Loading model preset...
</div>
<div x-show="!loading">
<x-component path="/plugins/_model_config/webui/preset-overview.html"></x-component>
</div>
</div>
</div>
</template>
</div>
<style>
.settings-model-preset {
margin-top: 1rem;
}
.settings-model-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
min-height: 7rem;
color: var(--color-text-secondary);
}
</style>
</body>
</html>