summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2024-12-08 14:18:16 +0300
committerGrail Finder <wohilas@gmail.com>2024-12-08 14:18:16 +0300
commitbdd40ea8df60b6b161da3c1d201e9ec05ef743d1 (patch)
tree13fe8eff8a4c3415d117e6ed53e4e9fc347df95b /models
parent55010bb70439260bf58cdd163d0041e00254c06b (diff)
Feat: export chat to json file;
Diffstat (limited to 'models')
-rw-r--r--models/models.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index 2ac087a..82ff63d 100644
--- a/models/models.go
+++ b/models/models.go
@@ -69,7 +69,7 @@ func (m RoleMsg) ToText(i int) string {
default:
icon = fmt.Sprintf("(%d) <%s>: ", i, m.Role)
}
- textMsg := fmt.Sprintf("%s\n%s\n", icon, m.Content)
+ textMsg := fmt.Sprintf("[-:-:u]%s[-:-:-]\n%s\n", icon, m.Content)
return strings.ReplaceAll(textMsg, "\n\n", "\n")
}