Add tone support

This commit is contained in:
2025-04-08 18:38:07 +03:00
parent 8082eae230
commit 3fb4afd4fa
8 changed files with 53 additions and 18 deletions

View File

@@ -13,9 +13,10 @@ interface FormData {
const preferences = useState<FormData>("preferences", () => ({
enabled: false,
language: "English",
tone: "Casual",
}));
const { status, refresh } = useFetch("/api/preferences", {
const { status } = useFetch("/api/preferences", {
onResponse({ error, response }) {
if (error) {
return;
@@ -86,6 +87,20 @@ const saveOp = watchPausable(
/>
</template>
</CardField>
<CardField>
<template #title> Model tone </template>
<template #description>
Tone used for generated titles and descriptions.
</template>
<template #value>
<USelect
class="min-w-28"
v-model="preferences.tone"
:items="tones"
/>
</template>
</CardField>
</div>
</UCard>
</UContainer>