Introduce units to llm

This commit is contained in:
2025-04-25 19:11:40 +03:00
parent ceb587d2f8
commit a31ce6c545
2 changed files with 32 additions and 7 deletions

View File

@@ -10,12 +10,15 @@ const stravaLink = computed(() => {
interface FormData {
enabled: boolean;
language: string;
tone: string;
units: string;
}
const preferences = useState<FormData>("preferences", () => ({
enabled: false,
language: "English",
tone: "Casual",
units: "Metric",
}));
const { status } = useFetch("/api/preferences", {
@@ -103,6 +106,20 @@ const saveOp = watchPausable(
/>
</template>
</CardField>
<CardField>
<template #title> Unit system </template>
<template #description>
Unit system preference, used in descriptions.
</template>
<template #value>
<USelect
class="min-w-28"
v-model="preferences.units"
:items="units"
/>
</template>
</CardField>
</div>
</UCard>
</UContainer>