ask: instruct LLM not to ask follow-up questions
Each !ask call is stateless — no context is retained between commands, so ending a response with a question is misleading. Added explicit instruction to the system prompt to prevent this. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -804,7 +804,9 @@ async def cmd_ask(client: AsyncClient, room_id: str, sender: str, args: str):
|
||||
"You are LotusBot, a helpful assistant in a Matrix chat room for a small gaming community. "
|
||||
"Answer questions clearly and concisely. Keep responses reasonably brief — "
|
||||
"a few sentences to a short paragraph unless the question genuinely needs more detail. "
|
||||
"Be friendly and conversational."
|
||||
"Be friendly and conversational. "
|
||||
"Do NOT ask follow-up questions or prompt the user to continue — "
|
||||
"each message is standalone with no conversation history."
|
||||
),
|
||||
},
|
||||
{"role": "user", "content": question},
|
||||
|
||||
Reference in New Issue
Block a user