DUNGEONS-15: keep coauthor questions in user language #11

Closed
Perfect_Python500 wants to merge 1 commits from agent/codex-chatgpt/93aa9460 into main
Showing only changes of commit a630b3f3c8 - Show all commits

View File

@@ -31,7 +31,7 @@ export default defineEventHandler(async (event) => {
} }
const completion = buildJsonCompletion(useRuntimeConfig(), { 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, messages,
schemaName: 'coauthor_question', schemaName: 'coauthor_question',
jsonSchema: QuestionSchema.toJSONSchema(), jsonSchema: QuestionSchema.toJSONSchema(),