main
html 48 lines 1.3 KB
Raw
1 <html>
2 <head>
3 <title>Models</title>
4 <script type="module">
5 import { store } from "/plugins/_model_config/webui/model-config-store.js";
6 </script>
7 </head>
8
9 <body>
10 <div x-data>
11 <template x-if="$store.modelConfig">
12 <div>
13 <div class="section-title">Models</div>
14 <div class="section-description">
15 Choose a global model preset. Project and agent-profile defaults are available in the full model settings.
16 </div>
17
18 <div class="settings-model-preset"
19 x-data="$store.modelConfig.createGlobalPresetSelector()"
20 x-init="await init($store.chats?.selected || '')">
21 <div x-show="loading" class="settings-model-loading">
22 <x-icon class="spinning" name="progress_activity"></x-icon>
23 Loading model preset...
24 </div>
25 <div x-show="!loading">
26 <x-component path="/plugins/_model_config/webui/preset-overview.html"></x-component>
27 </div>
28 </div>
29 </div>
30 </template>
31 </div>
32
33 <style>
34 .settings-model-preset {
35 margin-top: 1rem;
36 }
37
38 .settings-model-loading {
39 display: flex;
40 align-items: center;
41 justify-content: center;
42 gap: 0.5rem;
43 min-height: 7rem;
44 color: var(--color-text-secondary);
45 }
46 </style>
47 </body>
48 </html>