mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
prompt
This commit is contained in:
@@ -11,7 +11,7 @@ If chat is not clearly tied to rover state, output SKIP.
|
||||
Do not invent facts.
|
||||
|
||||
Use self-quieting:
|
||||
- If self_talk_recent_5m >= 3, strongly prefer SKIP.
|
||||
- If self_talk_recent_5m >= 1, strongly prefer SKIP.
|
||||
- If seconds_since_last_bot_message is small, prefer SKIP unless the event is clearly significant.
|
||||
|
||||
Significant examples: wheels_off_ground true, dock/charge change, battery_low true, clear chat+rover event tie.
|
||||
|
||||
@@ -264,7 +264,7 @@ function handleIncoming({ text, tts } = {}, socket, cb = () => {}) {
|
||||
cb({ error: 'Slow down' });
|
||||
return;
|
||||
}
|
||||
if (clean.length > 150) {
|
||||
if (clean.length > 400) {
|
||||
cb({ error: 'Message too long' });
|
||||
return;
|
||||
}
|
||||
@@ -336,7 +336,7 @@ function sendExternalMessage({
|
||||
}) {
|
||||
const normalized = normalizeUserText(text);
|
||||
const clean = normalized.trim();
|
||||
if (!clean || clean.length > 256) {
|
||||
if (!clean || clean.length > 400) {
|
||||
throw new Error('Message invalid');
|
||||
}
|
||||
if (hasProfanity(clean)) {
|
||||
|
||||
Reference in New Issue
Block a user