diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-24 08:59:34 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-24 08:59:34 +0300 |
| commit | 9af21895c6d15e7ab648f35acd44afc9675b54b7 (patch) | |
| tree | 41df561f6a5238219bf8544fd77137889bfccc52 /models | |
| parent | e3bd6f219f0f108fede8bcfd8326888801edeed7 (diff) | |
Chore: remove cfg.ThinkUse
move cleaning image attachment to the end of chatRound
fmt cleanup
Diffstat (limited to 'models')
| -rw-r--r-- | models/models.go | 3 |
1 files changed, 1 insertions, 2 deletions
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") |
