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:
@@ -805,6 +805,8 @@ async def cmd_ask(client: AsyncClient, room_id: str, sender: str, args: str):
|
|||||||
"Answer questions clearly and concisely. Keep responses reasonably brief — "
|
"Answer questions clearly and concisely. Keep responses reasonably brief — "
|
||||||
"a few sentences to a short paragraph unless the question genuinely needs more detail. "
|
"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},
|
{"role": "user", "content": question},
|
||||||
|
|||||||
Reference in New Issue
Block a user