Bartosz Taudul
7e0476a641
Fail when embeddings were not calculated.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
2578a0c04a
URL encode already handles spaces.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
9c831471a3
Refine system prompt.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
017e050f09
Reword user manual query description.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
845933040d
Perform tool calls with json.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
1b24f60ac1
Group lines with no empty line separator between them together.
2025-07-12 11:50:23 +02:00
Bartosz Taudul
3ecac21db9
Filter out manual lines with no usable content.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
c9d70b7f67
Remove ollama-specific image support.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
c443f4fc64
Relax newline requirements around <think> and <tool> tags.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
67419ee931
Don't force newline in injected <think> tag.
...
Fixes qwen3 models.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
555966e1b1
Handle no embeddings response.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
3504f485dd
Add support for google search API.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
43d94a3cc3
Crash fix.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
6255b4c67c
Move current time back to system prompt.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
f04dcc7c42
Don't display model quantization when it's not known.
2025-07-12 11:50:22 +02:00
Bartosz Taudul
14cc545efd
Get context size with llama-swap.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
e2ba66cf04
Detect llama-swap, match embedding models by name.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
c35a75f86c
Fix crash when embedding model is no longer available after provider switch.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
b9595add71
Do not repeatedly probe for LLM provider type.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
a84e63d573
Remove cortex from list of predefined LLM servers.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
08fd4aa182
Automatically load embeddings when already calculated.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
e8b6cdb72b
Rework embeddings handling.
...
Send embedding requests in batches. This shaves off ~4% of run time.
Save ready-to-use database instead of intermediate data that need to be
processed.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
8259cd6aff
Don't waste time calculating embeddings that will be ignored.
2025-07-12 11:50:21 +02:00
Bartosz Taudul
c641787ed1
Bump usearch to 2.17.9.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
0db765a684
Indent list items text.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
75c1735695
Fix word wrap when the first continued word requires line break.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
ddc3d8884f
Fix font ranges.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
9e593ce61c
Support hand pointer mouse cursor on Wayland.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
5778c5ef9f
Fix code block clashes.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
fde94e10d4
Implement printing markdown.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
5a6b51c245
Track hover status in PrintTextWrapped.
2025-07-12 11:50:20 +02:00
Bartosz Taudul
64ec3f6e3f
Add spacing after an expanded think section.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
b521064875
Add spacing between chat turns.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
de9c90673e
Do not copy strings.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
295b597835
Load all characters from fonts.
...
It's not that much more. The majority of the font texture is font awesome.
The size of the font texture (2K x 4K) stays the same with this change.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
5ccd05d2a5
Rework chat rendering.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
33e55c32f7
Remove current time from system prompt.
...
It makes little sense to provide it, when it's already in the system
reminder.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
735ef3b9b8
Use LLM tools through a pointer.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
2ffae6c626
Don't repeat text.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
ceb635d297
Rearrange order of predefined API providers.
2025-07-12 11:50:19 +02:00
Bartosz Taudul
cffc7abff7
Unify API urls.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
31cd82f78d
When managing context don't stop after first removal if quota is not met.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
30c2f45c2c
Disable tool calls in debug replies.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
e0820587a5
Add md4c.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
9c648232a8
Disable LLM integration on emscripten.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
ec205fa854
Move embed utility to a separate project.
...
This has to be separate to build a host executable during cross-compilation
(e.g. on emscripten builds).
2025-07-12 11:50:18 +02:00
Bartosz Taudul
111f68052f
No LLM libs on emscripten.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
84d829454c
Require translating tool output to user's language.
2025-07-12 11:50:18 +02:00
Bartosz Taudul
3d3fb0591d
Add LLM debug mode.
2025-07-12 11:50:17 +02:00
Bartosz Taudul
e693a1923e
Delta content may be null.
...
Compatibility with llama-server.
2025-07-12 11:50:17 +02:00