mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Merge branch 'pr839tmp' into feat/korean-locale
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
6ff81b2717
74 files changed
+10848
-66
No files matched your search
@@ -69,7 +69,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "fr" ||
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl"
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ const MAX_OUTPUT_TOKENS = 600;
|
||||
const requestSchema = z.object({
|
||||
text: z.string().min(1).max(MAX_TEXT_LENGTH),
|
||||
/** Optional UI locale; informational hint for the model. */
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl"]).optional(),
|
||||
locale: z.enum(["en", "de", "es", "fr", "it", "pl", "ko"]).optional(),
|
||||
/**
|
||||
* Optional override of the reference date used to resolve relative
|
||||
* phrases ("tomorrow", "next Monday"). Defaults to the server's
|
||||
|
||||
@@ -32,7 +32,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "fr" ||
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl"
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@ function isLocale(value: string | null | undefined): value is Locale {
|
||||
value === "fr" ||
|
||||
value === "es" ||
|
||||
value === "it" ||
|
||||
value === "pl"
|
||||
value === "pl" ||
|
||||
value === "ko"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user