fix: translation + grammar proxy bugs for Voxlen account users #4751
1 changed file+3−1
Modifiedlanding/api/grammar.ts+3−1View fileUnifiedSplit
@@ -34,9 +34,11 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
3434 writingStyle?: string;
3535 style?: string;
3636 preserveTone?: boolean;
37 preserve_tone?: boolean;
3738 custom_vocabulary?: string[];
3839 };
39 const { text, context, preserveTone } = body;
40 const { text, context } = body;
41 const preserveTone = body.preserve_tone ?? body.preserveTone;
4042 const writingStyle = body.writingStyle ?? body.style;
4143 const customVocabulary = body.custom_vocabulary ?? [];
4244
4345
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts