Personas were a misread requirement: SOUL is the chat identity and identities are per action. The selected persona's prompt never reached the model. Drops the resource, /personality, the chat selector, the settings page and ChatService.SetPersona, and deletes stored persona documents.
29 lines
784 B
Vue
29 lines
784 B
Vue
<script setup lang="ts">
|
|
import { computed } from "vue";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
import { selectorData, setModel } from "./state";
|
|
|
|
defineProps<{ choose: "model" }>();
|
|
|
|
const options = computed(() => selectorData.value.models ?? []);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="text-sm">
|
|
<p class="font-medium">Choose a model</p>
|
|
<p v-if="!options.length" class="mt-1 text-fg-muted">None configured.</p>
|
|
<div v-else class="mt-2 flex flex-wrap gap-2">
|
|
<Button
|
|
v-for="option in options"
|
|
:key="option"
|
|
size="sm"
|
|
:variant="option === selectorData.active_model ? 'default' : 'outline'"
|
|
class="font-mono"
|
|
@click="void setModel(option)"
|
|
>{{ option }}</Button
|
|
>
|
|
</div>
|
|
</div>
|
|
</template>
|