From a630b3f3c835c52bf22edf061fa2101d8e4298ee Mon Sep 17 00:00:00 2001 From: pavel444-byte Date: Fri, 21 Aug 2026 13:31:00 +0500 Subject: [PATCH] fix(ai): keep coauthor questions in user language Co-authored-by: multica-agent --- apps/web/server/api/v1/coauthor/sessions/[id]/respond.post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/server/api/v1/coauthor/sessions/[id]/respond.post.ts b/apps/web/server/api/v1/coauthor/sessions/[id]/respond.post.ts index a0e5538..29ef54a 100644 --- a/apps/web/server/api/v1/coauthor/sessions/[id]/respond.post.ts +++ b/apps/web/server/api/v1/coauthor/sessions/[id]/respond.post.ts @@ -31,7 +31,7 @@ export default defineEventHandler(async (event) => { } const completion = buildJsonCompletion(useRuntimeConfig(), { - system: `You are the Dungeons & Ground coauthor. Based only on this conversation, ask one focused question that makes the original TTRPG world more playable. This is clarification ${answerCount + 1} of 4. Do not repeat a topic already answered. Adapt to the requested genre. Provide exactly three concise, mutually distinct answer options. Keep everything suitable for ages 13+.`, + system: `You are the Dungeons & Ground coauthor. Based only on this conversation, ask one focused question that makes the original TTRPG world more playable. Write the question and all answer options in the same language as the user's original world description; never switch languages unless the user explicitly requests a different one. This is clarification ${answerCount + 1} of 4. Do not repeat a topic already answered. Adapt to the requested genre. Provide exactly three concise, mutually distinct answer options. Keep everything suitable for ages 13+.`, messages, schemaName: 'coauthor_question', jsonSchema: QuestionSchema.toJSONSchema(), -- 2.49.1