Commit Graph

998 Commits

Author SHA1 Message Date
Bartosz Taudul
c7c20730cf Fix Worker name conflict. 2025-07-13 01:27:56 +02:00
Bartosz Taudul
3d00f3eda1 Disable LLM on emscripten. 2025-07-13 01:00:08 +02:00
Bartosz Taudul
d1e3d1abb5 Proper support for markdown header font sizes (including style changes). 2025-07-13 00:25:14 +02:00
Bartosz Taudul
9ee6af33a4 Format achievements intro message with markdown. 2025-07-12 23:54:49 +02:00
Bartosz Taudul
70d6d7e756 Fully externalize markdown printer. 2025-07-12 23:42:21 +02:00
Bartosz Taudul
75cfc67972 Add robot icon to default assist view. 2025-07-12 23:28:12 +02:00
Bartosz Taudul
3d183e2da1 Markdown renderer is not strictly an LLM functionality. 2025-07-12 23:26:55 +02:00
Bartosz Taudul
00bc533d4d Improve code block style. 2025-07-12 20:08:26 +02:00
Bartosz Taudul
f098102898 Parse source code blocks in markdown. 2025-07-12 20:04:58 +02:00
Bartosz Taudul
5833f0d734 Add SourceContents::Parse() with length argument. 2025-07-12 20:01:27 +02:00
Bartosz Taudul
d4094f45cc Replace all deprecated ImGui functionality. 2025-07-12 19:50:37 +02:00
Bartosz Taudul
78c284cd8f Remove font glyph ranges. 2025-07-12 18:42:08 +02:00
Bartosz Taudul
b58388316a Fix emscripten build. 2025-07-12 18:19:56 +02:00
Bartosz Taudul
1dd4c2d670 Update ImGui to 1.92.0-docking. 2025-07-12 14:36:47 +02:00
Bartosz Taudul
d2d50d2cea Fix flame graph limit range button position. 2025-07-12 14:31:15 +02:00
Bartosz Taudul
ee2ef5c455 Increase number of user manual search results. 2025-07-12 11:50:32 +02:00
Bartosz Taudul
0da4c7e320 Explicit search parameters. 2025-07-12 11:50:32 +02:00
Bartosz Taudul
55cf0139fd Don't crash on assert when a tool call is missing a parameter. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
818d238f50 Update system prompt to use English names for UI elements. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
d5b36ea7d0 Do not block UI thread when waiting for tokenization.
Erasing chat contens or regenerating assistant reply can still block.
2025-07-12 11:50:31 +02:00
Bartosz Taudul
c9cca586cc Add tokenization job. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
37da8f923b Better handling of responding and stop states. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
50d68f6bae Make current job visible. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
a3b06851d8 The queue should be fifo. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
7809e39cac Wrap adding LLM tasks in helper functions. 2025-07-12 11:50:31 +02:00
Bartosz Taudul
c518de7837 Handle empty think section, repeated think close tags. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
d0c4e9bc3a Handle multiple tool calls by erroring out. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
22281d04ab Update system prompt. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
7ffd8310e6 Improve code tokenization estimation. 2025-07-12 11:50:30 +02:00
Bartosz Taudul
6c05079e7b Disable LLM settings when the model is responding. 2025-07-12 11:50:30 +02:00
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
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
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