summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-03 19:06:09 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-03 19:06:09 +0300
commit654d6a47ec2d991277e87ca5b2144076eb9f7458 (patch)
treeb171754c62f0e034fd1774f95240a0f233a3fdd7
parent76f14ce4a376bbbb99c79cc2090c067b5ba28484 (diff)
Fix: trigger auto turn cannot be empty
empty message means to continue merging new reply to the last message
-rw-r--r--bot.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot.go b/bot.go
index 120a3fb..13d488a 100644
--- a/bot.go
+++ b/bot.go
@@ -498,7 +498,6 @@ func monitorModelLoad(modelID string) {
}()
}
-
// extractDetailedErrorFromBytes extracts detailed error information from response body bytes
func extractDetailedErrorFromBytes(body []byte, statusCode int) string {
// Try to parse as JSON to extract detailed error information
@@ -1352,9 +1351,10 @@ func triggerPrivateMessageResponses(msg models.RoleMsg) {
return // user in known_to => user's turn
}
// Trigger the recipient character to respond
+ triggerMsg := recipient + ":\n"
// Send empty message so LLM continues naturally from the conversation
crr := &models.ChatRoundReq{
- UserMsg: "", // Empty message - LLM will continue the conversation
+ UserMsg: triggerMsg,
Role: recipient,
}
chatRoundChan <- crr