diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-02 08:18:49 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-02 08:18:49 +0300 |
| commit | e52e8ce2cc44b4e8cc950fe6811810db4142921d (patch) | |
| tree | 9ff132464eeecf9d4fdc6f431e5421dc1e668fa1 /bot.go | |
| parent | c1b04303ef91709e6a0f2ec93f5ae5a1dac610ce (diff) | |
Enha: consolidate assistant messages only
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -195,8 +195,8 @@ func consolidateAssistantMessages(messages []models.RoleMsg) []models.RoleMsg { isBuildingAssistantMsg := false for i := 0; i < len(messages); i++ { msg := messages[i] - // what about the case with multiplpe assistant roles? - if msg.Role == cfg.AssistantRole || msg.Role == cfg.WriteNextMsgAsCompletionAgent { + // assistant role only + if msg.Role == cfg.AssistantRole { // If this is an assistant message, start or continue building if !isBuildingAssistantMsg { // Start accumulating assistant message |
