Add tone support
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user