diff options
author | Grail Finder <wohilas@gmail.com> | 2025-02-02 10:05:43 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2025-02-02 10:05:43 +0300 |
commit | 4e9b31baf885c6889d685b255ceb9bee6db7c06b (patch) | |
tree | 113168b858b914fc76c230a545711819ea2d02b5 /tui.go | |
parent | 84c94ecea34753f246bdfd51f6ff989281e873e3 (diff) |
Feat: remove thinking and tool msgs from ctx
Diffstat (limited to 'tui.go')
-rw-r--r-- | tui.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -59,6 +59,7 @@ var ( [yellow]Ctrl+p[white]: props edit form (min-p, dry, etc.) [yellow]Ctrl+v[white]: switch between /completion and /chat api (if provided in config) [yellow]Ctrl+r[white]: menu of files that can be loaded in vector db (RAG) +[yellow]Ctrl+t[white]: remove thinking (<think>) and tool messages from context (delete from chat) Press Enter to go back ` @@ -475,6 +476,14 @@ func init() { startNewChat() return nil } + if event.Key() == tcell.KeyCtrlT { + // clear context + // remove tools and thinking + removeThinking(chatBody) + textView.SetText(chatToText(cfg.ShowSys)) + colorText() + return nil + } if event.Key() == tcell.KeyCtrlV { // switch between /chat and /completion api prevAPI := cfg.CurrentAPI |