Bartosz Taudul
10decca063
Fix chat input focus.
2025-07-12 11:49:57 +02:00
Bartosz Taudul
b901544fb4
Draw ellipsis when waiting for ollama reply (loading model, parsing prompt, etc.)
2025-07-12 11:49:57 +02:00
Bartosz Taudul
1590d3196b
Don't wait for streaming to end when exiting.
2025-07-12 11:49:57 +02:00
Bartosz Taudul
dedc9259c1
Add basic system prompt.
2025-07-12 11:49:57 +02:00
Bartosz Taudul
e8578668d4
Add support for basic markdown features.
2025-07-12 11:49:57 +02:00
Bartosz Taudul
2bf627061e
Add support for printing code blocks.
2025-07-12 11:49:57 +02:00
Bartosz Taudul
b982515774
Use string references instead of copies.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
60230c2d7e
Split chat responses into lines for easier parsing.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
cfd3260ea0
Count chat lines.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
3a60a67c95
Explicitly check for assistant role.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
2ad2fa0b4a
Get role string only once.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
1ebe85d24f
Always show scroll bar in chat window.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
ef230b08f3
Don't display the "thinking" unless asked for.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
b90e0fa467
Adjust colors.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
18a220d4db
Support displaying ollama error messages.
2025-07-12 11:49:56 +02:00
Bartosz Taudul
22d139bff7
Allow changing context size.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
c36386ac81
Scroll to bottom when chat is updating.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
8edbdc8081
Add icons to help differentiate user from bot answers.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
d499458c69
Working chat.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
a25b189692
Put a date on the Weizenbaum quote.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
dc325dae89
Focus chat entry field when LLM UI is opened.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
58125770b1
Use ollama::messages instead of vector of strings to hold chat messages.
...
The implementation is similar, but this way is needed for the ollama-hpp
API.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
c1998bd9f3
Basic chat input and rendering.
2025-07-12 11:49:55 +02:00
Bartosz Taudul
2ea7a183f1
Add chat UI elements.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
4250fa51c2
Add model selection to LLM UI.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
571189c9da
Use the intended icon for setting default ollama url.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
42010dc457
Handle no connection / busy cases in LLM UI.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
ab76bafdf7
Use three dots to indicate background tasks instead of one pulsing dot.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
3a4786d2be
httplib may throw on invalid protocol.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
4c7338ec1e
Load LLM models in a thread.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
fd291f225e
Properly set state when reseting ollama URL to default.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
6ce5c345a5
Don't fail when there are no models downloaded.
2025-07-12 11:49:54 +02:00
Bartosz Taudul
d50f05c00b
Rework loading LLM models.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
e4e23eabb6
Hook up LLM window.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
e8c2d498d3
Remove redundant m_valid variable.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
02b2882261
Display context size in model selection dropdown.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
cf892505e1
Setup model, get context size.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
0f31d6ac1a
List LLM models in global settings.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
08c877c4ef
Add interface for listing LLM models.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
cb212567ed
Store selected LLM model.
2025-07-12 11:49:53 +02:00
Bartosz Taudul
d72898087f
Allow creating TracyLlm when LLM is disabled.
2025-07-12 11:49:52 +02:00
Bartosz Taudul
6b0589f5eb
Add configuration UI for LLM.
2025-07-12 11:49:52 +02:00
Bartosz Taudul
85a82fbb70
Implement checking for connection validity and API version in TracyLlm.
2025-07-12 11:49:52 +02:00
Bartosz Taudul
584ad9ffde
Add LLM configuration.
2025-07-12 11:49:52 +02:00
Bartosz Taudul
a3e3f9a98f
Add basic integration with ollama-hpp.
2025-07-12 11:49:49 +02:00
Bartosz Taudul
8fa40e87d1
Merge pull request #1016 from 6yry6e/systrace-hang-fix
...
Fix: Hang on shutdown with enabled system tracing
2025-07-12 11:49:05 +02:00
Bartosz Taudul
880c600506
Remove queue delay calibration.
...
This value is not used for anything, it was just a number displayed in
the UI without much meaning to anyone.
Operations on the queue during early init may not work correctly, stopping
some programs from running past the calibration loop.
2025-07-11 23:23:31 +02:00
Bartosz Taudul
33713086b4
Disable stupid function size warnings.
2025-07-11 23:18:37 +02:00
Bartosz Taudul
91c17abcc7
Merge pull request #1092 from wannacu/master
...
Fix profiler compilation for older wayland version
2025-07-07 11:53:11 +02:00
wannacu
034b18a933
Fix profiler compilation for older wayland version
2025-07-07 11:54:14 +08:00