A title that states the fact does not need a description that derives it: the log, panels, lifecycle lists, dashboard cards, stages, skills and captures empty states now say the fact once, and keep only the descriptions that carry an action, a cause, or a distinct reading.
27 lines
847 B
Vue
27 lines
847 B
Vue
<script setup lang="ts">
|
|
import { onMounted } from "vue";
|
|
|
|
import PageHeader from "@/base/PageHeader.vue";
|
|
import { useLiveResource } from "@/stores/live-updates";
|
|
import ConfigUnavailable from "./ConfigUnavailable.vue";
|
|
import ModelsCard from "./ModelsCard.vue";
|
|
import { configUnavailable, loadConfig } from "./state";
|
|
|
|
/**
|
|
* Which model handles each stage of work, and which providers are wired up.
|
|
* Nothing on this page is editable from the dashboard: a model role is a
|
|
* structured field, and the server keeps those behind its own config path.
|
|
*/
|
|
useLiveResource(null, () => void loadConfig());
|
|
onMounted(loadConfig);
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<PageHeader title="Models" subtitle="Model roles, and the providers backing them." />
|
|
|
|
<ConfigUnavailable v-if="configUnavailable" />
|
|
<ModelsCard v-else />
|
|
</div>
|
|
</template>
|