mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
test(ai): pin the output-language adoption across the prompt family
Holds every sibling prompt module to one invariant: strip the directive and the interpolated language name out of a French, Spanish, Italian or Polish prompt and what remains is the English prompt, byte for byte. A German instruction body leaking back into a non-German prompt, an English body drifting away from what the four locales receive, and a module appending a second directive on top of the one the base prompt already carries all fail here. Also drops the now-unused narrow locale alias from the two modules whose prompt builders take the full locale.
This commit is contained in:
1 parent
13197c7ee9
commit
decc6681f6
3 files changed
+271
-2
No files matched your search
@@ -32,7 +32,6 @@ import { getNoKeyGeneralStatusText } from "@/lib/insights/no-key-fallbacks";
|
||||
import { hashInsightSnapshot } from "@/lib/insights/snapshot-hash";
|
||||
import { runStatusCompletion } from "@/lib/insights/status-provider";
|
||||
import {
|
||||
type SupportedLocale,
|
||||
normalizeLocale,
|
||||
normalizeSummaryText,
|
||||
parseSummaryFromContent,
|
||||
|
||||
@@ -31,7 +31,6 @@ import {
|
||||
normalizeSummaryText,
|
||||
parseSummaryFromContent,
|
||||
persistStatusInsight,
|
||||
type SupportedLocale,
|
||||
} from "@/lib/insights/status-shared";
|
||||
import { runStatusCompletion } from "@/lib/insights/status-provider";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user