diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-01-02 22:16:06 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-01-02 22:16:06 +0300 |
| commit | 6b875a2782e77afe6595b47d069a217fa2702eb1 (patch) | |
| tree | 4d39a9933f08afecb41cd1d2956550cd67f75812 | |
| parent | d7c443c8930fdae24b1bbf98a9d6a2e7cf197cf2 (diff) | |
Enha: more \n
| -rw-r--r-- | bot.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -658,7 +658,7 @@ func chatRound(userMsg, role string, tv *tview.TextView, regen, resume bool) { go sendMsgToLLM(reader) logger.Debug("looking at vars in chatRound", "msg", userMsg, "regen", regen, "resume", resume) if !resume { - fmt.Fprintf(tv, "\n[-:-:b](%d) ", len(chatBody.Messages)) + fmt.Fprintf(tv, "\n\n[-:-:b](%d) ", len(chatBody.Messages)) fmt.Fprint(tv, roleToIcon(botPersona)) fmt.Fprint(tv, "[-:-:-]\n") if cfg.ThinkUse && !strings.Contains(cfg.CurrentAPI, "v1") { @@ -909,7 +909,7 @@ func findCall(msg, toolCall string, tv *tview.TextView) { toolMsg := string(resp) // Remove the "tool response: " prefix and %+v formatting logger.Info("llm used tool call", "tool_resp", toolMsg, "tool_attrs", fc) fmt.Fprintf(tv, "%s[-:-:b](%d) <%s>: [-:-:-]\n%s\n", - "\n", len(chatBody.Messages), cfg.ToolRole, toolMsg) + "\n\n", len(chatBody.Messages), cfg.ToolRole, toolMsg) // Create tool response message with the proper tool_call_id toolResponseMsg := models.RoleMsg{ Role: cfg.ToolRole, |
