Refactor: remove icons

This commit is contained in:
Grail Finder
2025-02-02 17:58:07 +03:00
parent 7ca188dcdc
commit eb53b13381
7 changed files with 19 additions and 27 deletions

View File

@@ -61,13 +61,13 @@ func (m RoleMsg) ToText(i int, cfg *config.Config) string {
if !strings.HasPrefix(m.Content, cfg.UserRole+":") && !strings.HasPrefix(m.Content, cfg.AssistantRole+":") {
switch m.Role {
case "assistant":
icon = fmt.Sprintf("(%d) %s", i, cfg.AssistantIcon)
icon = fmt.Sprintf("(%d) <%s>: ", i, cfg.AssistantRole)
case "user":
icon = fmt.Sprintf("(%d) %s", i, cfg.UserIcon)
icon = fmt.Sprintf("(%d) <%s>: ", i, cfg.UserRole)
case "system":
icon = fmt.Sprintf("(%d) <system>: ", i)
case "tool":
icon = fmt.Sprintf("(%d) %s", i, cfg.ToolIcon)
icon = fmt.Sprintf("(%d) <%s>: ", i, cfg.ToolRole)
default:
icon = fmt.Sprintf("(%d) <%s>: ", i, m.Role)
}