From 9af21895c6d15e7ab648f35acd44afc9675b54b7 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 24 Feb 2026 08:59:34 +0300 Subject: Chore: remove cfg.ThinkUse move cleaning image attachment to the end of chatRound fmt cleanup --- models/models.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'models/models.go') diff --git a/models/models.go b/models/models.go index 4e33ba5..ee13928 100644 --- a/models/models.go +++ b/models/models.go @@ -241,8 +241,7 @@ func (m *RoleMsg) ToText(i int) string { } finalContent.WriteString(contentStr) if m.Stats != nil { - finalContent.WriteString(fmt.Sprintf("\n[gray::i][%d tok, %.1fs, %.1f t/s][-:-:-]", - m.Stats.Tokens, m.Stats.Duration, m.Stats.TokensPerSec)) + fmt.Fprintf(&finalContent, "\n[gray::i][%d tok, %.1fs, %.1f t/s][-:-:-]", m.Stats.Tokens, m.Stats.Duration, m.Stats.TokensPerSec) } textMsg := fmt.Sprintf("[-:-:b]%s[-:-:-]\n%s\n", icon, finalContent.String()) return strings.ReplaceAll(textMsg, "\n\n", "\n") -- cgit v1.2.3