From 2898efa1db9e612b765258b34fc58a2c53e36de1 Mon Sep 17 00:00:00 2001 From: pavel444-byte Date: Fri, 21 Aug 2026 12:12:10 +0500 Subject: [PATCH] fix(web): 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..24110c3 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. This is clarification ${answerCount + 1} of 4. Do not repeat a topic already answered. Adapt to the requested genre. Use the language of the first user message for the question and every answer option unless the user explicitly requests another language. Provide exactly three concise, mutually distinct answer options. Keep everything suitable for ages 13+.`, messages, schemaName: 'coauthor_question', jsonSchema: QuestionSchema.toJSONSchema(),