Commit Graph

9101 Commits

Author SHA1 Message Date
Bartosz Taudul
4e8fb7870b Decrease context usage when removing chat content. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
b54c4f7aa9 Get exact token counts when adding or removing messages. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
b36b6a0aa2 Implement llama-swap tokenization request. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
4969be344e Use exact tokens count when available in server response.
Note that this is not really exacy, as it includes system prompt reminder
and possibly other input data that is dynamically injected.
2025-07-12 11:50:29 +02:00
Bartosz Taudul
047fa3b98f Remove readability.js support.
The current method of web retrieval works well enough.
2025-07-12 11:50:29 +02:00
Bartosz Taudul
154c055fcb Update manual. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
2e77045ff7 Rearrange LLM provider presets. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
567cd562e4 Fix rendering complex markdown headers. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
b84f1407d4 Ask for donations. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
dee495cefc Add embedding prefixes required by the nomic-embed-text model. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
c893954da7 Add missing switch case break. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
7252c6b41e Add spacing before markdown headers. 2025-07-12 11:50:29 +02:00
Bartosz Taudul
0b9ea6f650 Refine system prompt. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
fcfbd9810a Add md extension to system prompt files, to get coloring in editor. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
55dc632b10 Handle HTTP errors. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
20182e88cd Sort models list. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
2f1cb512e6 Implement copying chat responses to the clipboard. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
abef0d76b1 Update manual. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
f9be40ae7c Update wording. 2025-07-12 11:50:28 +02:00
Bartosz Taudul
4f01a43920 Reload InputText buffer.
https://github.com/ocornut/imgui/issues/8709#issuecomment-2993482040
2025-07-12 11:50:28 +02:00
Bartosz Taudul
7a0a0a9749 Add option to regenerate LLM reply. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
998ec7941f Clearly indicate that stop operation is in progress. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
7ab657a0d5 Refine system prompt. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
fc840c1d47 Implement attaching assembly loops to LLM chat. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
39d624b969 Reinit connection on error. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
21ddd99d55 Properly handle error output. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
b51ed462f7 Handle response failure. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
ca02df8ad5 Ignore spaces after <think> and <tool> tags. 2025-07-12 11:50:27 +02:00
Bartosz Taudul
91cfc2e5b8 Move jump range calculation to a separate function. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
76fd44ea8a Add function for attaching data to LLM chat. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
9b0bb7cfda Refine system prompt. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
dabfa36913 Display attachment type. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
5d653551b9 Add icon for each single attachment / error. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
96a13f2a45 Move markdown logic to a separate file. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
6419a01849 Refine wording. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
1aa27c81ac Remove call stack text from system prompt. 2025-07-12 11:50:26 +02:00
Bartosz Taudul
f3c066cc69 More explicit local / network tool split. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
b4692740aa Add source_file tool. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
b2122e7d41 Move SplitLines to TracyUtility.cpp. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
0b8f7344e6 Don't create intermediate string. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
712fd3b58a Update system prompt. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
5d7695cbce Allow attaching call stacks for the AI chat. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
a09f1b2d15 Implement attachments in chat. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
1e508f0b44 Implement removing chat messages. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
8b2de04cd9 Chat message removal UI. 2025-07-12 11:50:25 +02:00
Bartosz Taudul
764348be79 Trim section title and newlines from manual sections. 2025-07-12 11:50:24 +02:00
Bartosz Taudul
80a10a9095 Better context delivery for manual sections. 2025-07-12 11:50:24 +02:00
Bartosz Taudul
ed1f64d001 Disable send button when there's no input. 2025-07-12 11:50:24 +02:00
Bartosz Taudul
1183364812 Add warning. 2025-07-12 11:50:24 +02:00
Bartosz Taudul
d67d37de8e Request verbose user manual search queries. 2025-07-12 11:50:24 +02:00