Commit Graph

9467 Commits

Author SHA1 Message Date
Bartosz Taudul
c01d5d5dd2 Don't create assistant entries with empty content. 2025-12-31 17:38:25 +01:00
Bartosz Taudul
09aa695048 Tool response labels now have unique ids in them. 2025-12-31 17:10:04 +01:00
Bartosz Taudul
3d9b228177 Allow disabling rendering of thinking regions. 2025-12-31 17:08:35 +01:00
Bartosz Taudul
96961f696b Unify internet icon with the welcome window. 2025-12-31 16:51:05 +01:00
Bartosz Taudul
52179c4428 Hide LLM temperature setting in advanced options. 2025-12-31 15:58:58 +01:00
Bartosz Taudul
8520c79749 Set proper width of LLM input text fields. 2025-12-31 15:57:30 +01:00
Bartosz Taudul
50e6497390 Enable horizontal scroll bars in markdown code segments. 2025-12-31 15:35:59 +01:00
Bartosz Taudul
b17002a9c0 Update markdown manual. 2025-12-31 15:28:05 +01:00
Bartosz Taudul
d9e977ed42 Fix spacing when think scope is not the first item in reply. 2025-12-31 15:26:37 +01:00
Bartosz Taudul
217906b63b Drop Ollama. 2025-12-31 15:20:28 +01:00
Bartosz Taudul
b4ff3b1c83 Do not pass AltGr to ImGui.
AltGr (right alt) is used to enter characters, at least with the Polish
keymap. ImGui uses alt to switch between some of the controls. Keep the
interaction on the (left) Alt key, and leave AltGr to do composition.
2025-12-31 14:00:01 +01:00
Bartosz Taudul
ad09ae8790 Use variables to inject data into system prompt. 2025-12-31 13:54:44 +01:00
Bartosz Taudul
5bc2e4b95c Implement full user name retrieval on win32. 2025-12-30 15:17:08 +01:00
Bartosz Taudul
9016911a04 Fix clash with winapi define crap. 2025-12-30 14:49:23 +01:00
Bartosz Taudul
4661233904 Add missing include for UNLEN definition. 2025-12-30 14:48:17 +01:00
Bartosz Taudul
f6ba6cbd4e Fix typo. 2025-12-30 14:48:11 +01:00
Bartosz Taudul
20b9d002dc Check for empty full name. 2025-12-30 14:23:37 +01:00
Bartosz Taudul
94c1614416 Store full user name in trace info. 2025-12-30 14:19:40 +01:00
Bartosz Taudul
e1b426efe6 Pass full user name to LLM. 2025-12-30 14:17:10 +01:00
Bartosz Taudul
299b641173 Implement getting full user name. 2025-12-30 14:16:53 +01:00
Bartosz Taudul
6933780aed Provide current user name to the LLM. 2025-12-30 13:52:33 +01:00
Bartosz Taudul
da85325686 Move user name retrieval to a common API. 2025-12-30 13:41:19 +01:00
Bartosz Taudul
6a26472278 Reformulate current time statement. 2025-12-30 13:26:23 +01:00
Bartosz Taudul
47806d00c8 Don't mention tool use. 2025-12-30 13:22:31 +01:00
Bartosz Taudul
fc35fa6a1d Give instructions to use multiple tools. 2025-12-30 01:50:31 +01:00
Bartosz Taudul
e889fa17f3 Bump usearch to 2.22.0. 2025-12-29 20:46:48 +01:00
Bartosz Taudul
c996c67390 Take the thinking and tool use context into account in LLM chat rendering. 2025-12-29 20:43:28 +01:00
Bartosz Taudul
ac5dabbb94 Drop user debug role. 2025-12-29 20:43:28 +01:00
Bartosz Taudul
cd9585d713 Less verbose system prompt. 2025-12-29 20:43:28 +01:00
Bartosz Taudul
237e90fe64 Adapt context management to tool role usage. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
7a43036e6e Process tool calls table and respond with tool role. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
26cf9591e7 Remove tool and thinking instructions from the system prompt. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
167779392c Include reasoning in context removal calculation.
The calculations here are so-so at best. The only reliable source of context
usage are the server responses.
2025-12-29 20:43:27 +01:00
Bartosz Taudul
fe567e5b42 Add support for streaming reasoning and tool call responses. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
edffd4af81 Check for content being available when deleting user message. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
f4f3c63755 Move time information to system prompt.
This also changes the context of the information a bit. Previously it was
the current time, now it is the time when the conversation started.
2025-12-29 20:43:27 +01:00
Bartosz Taudul
0a983cb24c Check for "content" in error and attachment messages. 2025-12-29 20:43:27 +01:00
Bartosz Taudul
dedc50e848 Support adding messages completely defined by json. 2025-12-29 20:43:26 +01:00
Bartosz Taudul
c9443db053 Provide LLM tools using a standard API. 2025-12-29 20:43:26 +01:00
Bartosz Taudul
e7288604ea Including ranges is not necessary. 2025-12-29 20:43:26 +01:00
Bartosz Taudul
79ee17d2f6 Inject current time into each user message.
This is not removed later on, mainly to enable caching of previous replies
(changing any earlier message would require processing everything that's
later), but also to give the LLM a sense of passing time.
2025-12-29 20:43:26 +01:00
Bartosz Taudul
9183aef645 Do not display system prompt injected into user messages. 2025-12-29 20:43:26 +01:00
Bartosz Taudul
0246cec0a7 System reminder is no longer in use. 2025-12-29 20:43:26 +01:00
Bartosz Taudul
d385328a16 Remove prefill of assistant messages.
Does not work with models implementing reasoning in a standarized way.
2025-12-29 20:43:26 +01:00
Bartosz Taudul
1708a88445 Remove AssistantDebug LLM role. 2025-12-29 20:43:25 +01:00
Bartosz Taudul
e2a86c1756 Merge pull request #1246 from slomp/slomp/logstring-fix
fix for TRACY_FIBERS
2025-12-29 20:37:59 +01:00
Marcos Slomp
12fa5aeb5e fix for TRACY_FIBERS 2025-12-29 11:23:08 -08:00
Bartosz Taudul
6f9504c50a Redo message filtering UI. 2025-12-28 16:56:09 +01:00
Bartosz Taudul
2a9ab49d13 Use constexpr for tables. 2025-12-28 16:26:19 +01:00
Bartosz Taudul
f649943e93 Fix text formatting. 2025-12-28 16:03:44 +01:00