Commit Graph

987 Commits

Author SHA1 Message Date
Bartosz Taudul
ea956f4cb2 Bullet points in markdown are '*' or '-'. 2025-07-12 11:50:07 +02:00
Bartosz Taudul
c0e89f992d Extend big font characters range. 2025-07-12 11:50:07 +02:00
Bartosz Taudul
43463abdfe Add bold, italic and bold+italic font. 2025-07-12 11:50:07 +02:00
Bartosz Taudul
2f9436577e Use global font structure. 2025-07-12 11:50:07 +02:00
Bartosz Taudul
654243eeea Use embed utility to provide fonts. Replace Droid Sans with Roboto. 2025-07-12 11:50:06 +02:00
Bartosz Taudul
78a80b64fa Remove explicit spacing hacks.
The new text wrapped functionality works in a way that already does this.
2025-07-12 11:50:06 +02:00
Bartosz Taudul
64c0d645ee Render inline code fragments with fixed width font. 2025-07-12 11:50:06 +02:00
Bartosz Taudul
d5f732e768 Add ImGui::SameLine() capable wrapped text printing function.
Adapted from imgui_markdown.
2025-07-12 11:50:06 +02:00
Bartosz Taudul
ebe50c9981 Move implementation of all LLM tools to a separate file. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
4af390719c Forward declare ImFont. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
a68cd2543d Handle ollama with no models available. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
915e4ab77e Less strict tool use requirements. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
101c7c40f7 Provide current time and date in the system prompt. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
f68253a085 Allow disabling network access for the LLM. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
b574e28b79 Refine system prompt. 2025-07-12 11:50:05 +02:00
Bartosz Taudul
aa925a81f7 Fix multiple think tags in one reply. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
518587779f Add an option to enable sanitizers. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
9755f165f1 Prefer wikipedia as source of information. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
92288bc710 Implement web search. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
1e5f5215d4 Spoof user agent seen in the wild.
The state of modern web sadly discourages being honest.
2025-07-12 11:50:04 +02:00
Bartosz Taudul
c0ffd99c91 Allow setting custom temperature value. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
229e810697 Don't set keep_alive value.
The default is 5 minutes anyway.
2025-07-12 11:50:04 +02:00
Bartosz Taudul
f4e340b573 Add note about context size estimation. 2025-07-12 11:50:04 +02:00
Bartosz Taudul
d0acd37b54 Calculate system prompt context size estimate. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
290198704b Rewrite the tools description to json. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
522395d37e Add a send message button. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
72de3ecaa7 Add web cache. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
82b976b1ee Adjust user messages color. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
97048cf692 Improve wikipedia search by providing a summary of the page. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
a6c77d73a4 Enable wikipedia in other languages. 2025-07-12 11:50:03 +02:00
Bartosz Taudul
5bbe81a029 Don't retrieve the full image, thumbnail is enough.
Too much context pollution for too little gain.
2025-07-12 11:50:03 +02:00
Bartosz Taudul
1f9639dfe3 Reword tool knowledge rules. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
14fc45a1e2 Specify user agent. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
a7cc678960 Display appropriate icon when tool reply contains an image. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
46c000fd66 Fix scrolling. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
41f9b75372 Add Latin Extended A/B to fixed width font. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
a35e996f4f Release lock when handling tool calls. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
0ba0590dbc Don't use the "tool" role. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
68b73811c4 Retrieve images from wikipedia. 2025-07-12 11:50:02 +02:00
Bartosz Taudul
13eca84926 Use the user language. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
80f678c28a Replace spaces in wikipedia page queries with underscores. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
e293f87a8a Adapt the wikipedia page cut-off to the available context size. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
31afd9dbca Url encode wikipedia search queries. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
4f49635c42 Further system prompt refinement. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
b2f3e6b681 The models like to group separate wikipedia query terms.
Some search examples:
1. Tracy Profiler
2. "Tracy Profiler" "C++"
3. "Tracy Profiler"
2025-07-12 11:50:01 +02:00
Bartosz Taudul
40fed7dd6f Update system prompt with new rules. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
8a6a6d8132 Merge wikipedia query terms with '+' in code, not in LLM. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
116881ae81 Remove stray \r characters from the LLM responses. 2025-07-12 11:50:01 +02:00
Bartosz Taudul
50886ac16e Wikipedia search + article retrieval. 2025-07-12 11:50:00 +02:00
Bartosz Taudul
b0a36cb8e8 Use correct parameter for setting context size. 2025-07-12 11:50:00 +02:00