Skip to content
/ core Public

Commit 25ca95d

Browse files
committed
feat(ai): harden lexical translation structured output
1 parent 89fa7d4 commit 25ca95d

19 files changed

+3587
-233
lines changed

apps/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"js-yaml": "^4.1.1",
109109
"json5": "2.2.3",
110110
"jsondiffpatch": "^0.7.3",
111+
"jsonrepair": "^3.13.3",
111112
"jsonwebtoken": "9.0.3",
112113
"jszip": "3.10.1",
113114
"keyv": "5.6.0",

apps/core/scripts/.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copy to `.env` beside this file (see lexical-translation-live.mjs).
2+
3+
MX_AI_PROVIDER_TYPE=
4+
MX_AI_MODEL=haiku
5+
MX_AI_API_KEY=
6+
# Required when MX_AI_PROVIDER_TYPE=openai-compatible
7+
MX_AI_ENDPOINT=
8+
# Default: en
9+
MX_AI_TARGET_LANG=en

0 commit comments

Comments
 (0)