diff --git a/server/src/llm/templates.ts b/server/src/llm/templates.ts index 856726a..f3ff6c8 100644 --- a/server/src/llm/templates.ts +++ b/server/src/llm/templates.ts @@ -69,11 +69,12 @@ export const templates: Record = { backstoryAndDesires: { name: 'backstoryAndDesires', - maxTokens: 600, + maxTokens: 800, systemPrompt: 'Write a brief backstory (1-2 sentences) and 1-2 initial desires for this settler. ' + 'The backstory should reflect their personality without referencing professions or institutions that do not exist. ' + 'Desires should be grounded in what is achievable or aspirational given the current world state.\n\n' + + 'Be concise. Keep backstory under 2 sentences. Keep desire descriptions short (under 10 words).\n\n' + 'Respond ONLY with a valid JSON object. No explanation, no markdown, just JSON.', userPrompt: 'New settler: {{npcName}}\n' + @@ -83,7 +84,7 @@ export const templates: Record = { '- Existing structures: {{structureList}}\n\n' + 'Respond with JSON:\n' + '{"backstory": "1-2 sentence backstory", "desires": [' + - '{"description": "human-readable desire", ' + + '{"description": "short desire", ' + '"category": "material|social|shelter|comfort|community|creative", ' + '"fulfillment": {"type": "own_item|structure_exists|building_exists|relationship_tier|recipe_exists|custom", ...criteria}, ' + '"priority": 0.0-1.0}]}', @@ -91,7 +92,7 @@ export const templates: Record = { desireGeneration: { name: 'desireGeneration', - maxTokens: 400, + maxTokens: 500, systemPrompt: 'Generate a new personal desire for this settler based on their personality and recent experiences.\n\n' + 'Respond ONLY with a valid JSON object. No explanation, no markdown, just JSON.',