Commit Graph

  • 654243eeea Use embed utility to provide fonts. Replace Droid Sans with Roboto. Bartosz Taudul 2025-05-19 22:42:30 +02:00
  • 78a80b64fa Remove explicit spacing hacks. Bartosz Taudul 2025-05-19 03:03:08 +02:00
  • 64c0d645ee Render inline code fragments with fixed width font. Bartosz Taudul 2025-05-19 02:27:59 +02:00
  • d5f732e768 Add ImGui::SameLine() capable wrapped text printing function. Bartosz Taudul 2025-05-19 02:26:40 +02:00
  • bc7f365793 Use proper curl library name. Bartosz Taudul 2025-05-19 00:28:37 +02:00
  • e4a9c9be3c Fix bad code in ollama-hpp. Bartosz Taudul 2025-05-19 00:24:08 +02:00
  • bc126833e2 Fix operator std::string in ollama-hpp. Bartosz Taudul 2025-05-19 00:20:54 +02:00
  • 928ad3dd72 Add libcurl include dir to TracyLibcurl interface. Bartosz Taudul 2025-05-19 00:13:00 +02:00
  • 9bce0bda02 Disable libpsl when building curl. Bartosz Taudul 2025-05-19 00:06:57 +02:00
  • ebe50c9981 Move implementation of all LLM tools to a separate file. Bartosz Taudul 2025-05-18 23:37:42 +02:00
  • 4af390719c Forward declare ImFont. Bartosz Taudul 2025-05-18 23:36:13 +02:00
  • a68cd2543d Handle ollama with no models available. Bartosz Taudul 2025-05-18 23:35:21 +02:00
  • 915e4ab77e Less strict tool use requirements. Bartosz Taudul 2025-05-18 12:41:42 +02:00
  • 101c7c40f7 Provide current time and date in the system prompt. Bartosz Taudul 2025-05-17 21:20:00 +02:00
  • f68253a085 Allow disabling network access for the LLM. Bartosz Taudul 2025-05-17 21:19:50 +02:00
  • b574e28b79 Refine system prompt. Bartosz Taudul 2025-05-17 21:19:04 +02:00
  • aa925a81f7 Fix multiple think tags in one reply. Bartosz Taudul 2025-05-17 21:04:46 +02:00
  • 518587779f Add an option to enable sanitizers. Bartosz Taudul 2025-05-17 19:58:16 +02:00
  • 9755f165f1 Prefer wikipedia as source of information. Bartosz Taudul 2025-05-17 19:05:58 +02:00
  • 92288bc710 Implement web search. Bartosz Taudul 2025-05-17 18:59:39 +02:00
  • 1e5f5215d4 Spoof user agent seen in the wild. Bartosz Taudul 2025-05-17 18:58:35 +02:00
  • c0ffd99c91 Allow setting custom temperature value. Bartosz Taudul 2025-05-17 17:22:05 +02:00
  • 229e810697 Don't set keep_alive value. Bartosz Taudul 2025-05-17 17:18:55 +02:00
  • f4e340b573 Add note about context size estimation. Bartosz Taudul 2025-05-17 17:10:15 +02:00
  • d0acd37b54 Calculate system prompt context size estimate. Bartosz Taudul 2025-05-17 17:07:39 +02:00
  • 290198704b Rewrite the tools description to json. Bartosz Taudul 2025-05-17 16:17:42 +02:00
  • 522395d37e Add a send message button. Bartosz Taudul 2025-05-17 13:14:27 +02:00
  • 72de3ecaa7 Add web cache. Bartosz Taudul 2025-05-17 13:07:02 +02:00
  • 82b976b1ee Adjust user messages color. Bartosz Taudul 2025-05-17 12:43:46 +02:00
  • 97048cf692 Improve wikipedia search by providing a summary of the page. Bartosz Taudul 2025-05-17 03:05:24 +02:00
  • a6c77d73a4 Enable wikipedia in other languages. Bartosz Taudul 2025-05-17 02:12:50 +02:00
  • 5bbe81a029 Don't retrieve the full image, thumbnail is enough. Bartosz Taudul 2025-05-17 02:12:12 +02:00
  • 1f9639dfe3 Reword tool knowledge rules. Bartosz Taudul 2025-05-17 02:11:46 +02:00
  • 14fc45a1e2 Specify user agent. Bartosz Taudul 2025-05-17 01:45:08 +02:00
  • a7cc678960 Display appropriate icon when tool reply contains an image. Bartosz Taudul 2025-05-17 01:44:45 +02:00
  • 46c000fd66 Fix scrolling. Bartosz Taudul 2025-05-17 01:29:09 +02:00
  • 41f9b75372 Add Latin Extended A/B to fixed width font. Bartosz Taudul 2025-05-17 01:21:08 +02:00
  • a35e996f4f Release lock when handling tool calls. Bartosz Taudul 2025-05-17 01:11:33 +02:00
  • 0ba0590dbc Don't use the "tool" role. Bartosz Taudul 2025-05-17 01:09:17 +02:00
  • 68b73811c4 Retrieve images from wikipedia. Bartosz Taudul 2025-05-17 00:50:43 +02:00
  • 13eca84926 Use the user language. Bartosz Taudul 2025-05-16 00:32:24 +02:00
  • 80f678c28a Replace spaces in wikipedia page queries with underscores. Bartosz Taudul 2025-05-16 00:31:50 +02:00
  • e293f87a8a Adapt the wikipedia page cut-off to the available context size. Bartosz Taudul 2025-05-16 00:09:59 +02:00
  • 31afd9dbca Url encode wikipedia search queries. Bartosz Taudul 2025-05-16 00:09:42 +02:00
  • 4f49635c42 Further system prompt refinement. Bartosz Taudul 2025-05-16 00:09:24 +02:00
  • b2f3e6b681 The models like to group separate wikipedia query terms. Bartosz Taudul 2025-05-15 23:22:56 +02:00
  • 40fed7dd6f Update system prompt with new rules. Bartosz Taudul 2025-05-15 23:22:16 +02:00
  • 8a6a6d8132 Merge wikipedia query terms with '+' in code, not in LLM. Bartosz Taudul 2025-05-15 23:12:03 +02:00
  • 116881ae81 Remove stray \r characters from the LLM responses. Bartosz Taudul 2025-05-15 23:02:32 +02:00
  • 50886ac16e Wikipedia search + article retrieval. Bartosz Taudul 2025-05-15 22:36:50 +02:00
  • b0a36cb8e8 Use correct parameter for setting context size. Bartosz Taudul 2025-05-15 21:02:37 +02:00
  • a8dd0ca232 Add Latin Extended A/B to font. Bartosz Taudul 2025-05-15 21:02:19 +02:00
  • b54e36df29 Display context usage. Bartosz Taudul 2025-05-15 20:41:41 +02:00
  • e60e30ddf1 Don't persist tree node open state between chats. Bartosz Taudul 2025-05-15 02:33:12 +02:00
  • b163d97e65 Fix setting context size. Bartosz Taudul 2025-05-15 01:52:31 +02:00
  • f65302984e Remove html2md, remove access to web for LLM. Bartosz Taudul 2025-05-14 21:59:45 +02:00
  • 8b100ff11d Use custom tool handling. Bartosz Taudul 2025-05-14 21:07:52 +02:00
  • 0d3e183540 Display tool responses in chat. Bartosz Taudul 2025-05-14 19:11:46 +02:00
  • 05f7019f30 Chat will have system prompt. Bartosz Taudul 2025-05-14 19:08:23 +02:00
  • 2e61fbac78 Expand system prompt. Bartosz Taudul 2025-05-14 02:09:55 +02:00
  • 4ad9e05814 Convert html to markdown. Bartosz Taudul 2025-05-14 02:09:32 +02:00
  • f5ea5ffce1 Display tool call arguments. Bartosz Taudul 2025-05-14 01:00:19 +02:00
  • dc8c106454 Implement fetching web pages. Bartosz Taudul 2025-05-14 00:45:06 +02:00
  • 3a60926f65 Link with libcurl. Bartosz Taudul 2025-05-14 00:44:46 +02:00
  • 9202ce277d Respond to tool calls. Bartosz Taudul 2025-05-13 23:02:10 +02:00
  • b4763c7500 Pass messages to SendMessage() as const ref, not rvalue. Bartosz Taudul 2025-05-13 22:29:46 +02:00
  • 78257553c7 Allow disabling tools use. Bartosz Taudul 2025-05-13 22:21:56 +02:00
  • 4c46cc4deb Push available tools list to ollama. Bartosz Taudul 2025-05-13 22:16:42 +02:00
  • 7eedbe130e Prepare ollama request in an explicit way. Bartosz Taudul 2025-05-13 20:14:04 +02:00
  • 3414773f18 Keep system prompt unembedded. Bartosz Taudul 2025-05-13 20:13:45 +02:00
  • c8dbe33a3c Move LLM system prompt to an external file. Bartosz Taudul 2025-05-13 19:50:03 +02:00
  • cc0aa73527 Add embed utilities. Bartosz Taudul 2025-05-13 19:45:39 +02:00
  • 8006ae9e30 Build embed tool. Bartosz Taudul 2025-05-13 19:38:44 +02:00
  • 8fd1530c8f Rework context size handling. Bartosz Taudul 2025-05-13 19:24:16 +02:00
  • 74b6e481bb Add spacing between chat messages. Bartosz Taudul 2025-05-13 19:07:01 +02:00
  • 10decca063 Fix chat input focus. Bartosz Taudul 2025-05-13 02:27:36 +02:00
  • b901544fb4 Draw ellipsis when waiting for ollama reply (loading model, parsing prompt, etc.) Bartosz Taudul 2025-05-13 02:08:39 +02:00
  • 1590d3196b Don't wait for streaming to end when exiting. Bartosz Taudul 2025-05-13 01:48:05 +02:00
  • dedc9259c1 Add basic system prompt. Bartosz Taudul 2025-05-13 01:47:22 +02:00
  • e8578668d4 Add support for basic markdown features. Bartosz Taudul 2025-05-13 01:28:32 +02:00
  • 2bf627061e Add support for printing code blocks. Bartosz Taudul 2025-05-13 00:32:33 +02:00
  • b982515774 Use string references instead of copies. Bartosz Taudul 2025-05-12 23:36:24 +02:00
  • 60230c2d7e Split chat responses into lines for easier parsing. Bartosz Taudul 2025-05-12 23:30:27 +02:00
  • cfd3260ea0 Count chat lines. Bartosz Taudul 2025-05-12 22:38:35 +02:00
  • 3a60a67c95 Explicitly check for assistant role. Bartosz Taudul 2025-05-12 22:36:36 +02:00
  • 2ad2fa0b4a Get role string only once. Bartosz Taudul 2025-05-12 22:36:10 +02:00
  • 1ebe85d24f Always show scroll bar in chat window. Bartosz Taudul 2025-05-12 21:25:46 +02:00
  • ef230b08f3 Don't display the "thinking" unless asked for. Bartosz Taudul 2025-05-12 02:33:42 +02:00
  • b90e0fa467 Adjust colors. Bartosz Taudul 2025-05-12 02:06:28 +02:00
  • 18a220d4db Support displaying ollama error messages. Bartosz Taudul 2025-05-12 01:55:08 +02:00
  • 22d139bff7 Allow changing context size. Bartosz Taudul 2025-05-12 01:30:37 +02:00
  • c36386ac81 Scroll to bottom when chat is updating. Bartosz Taudul 2025-05-12 01:20:01 +02:00
  • 8edbdc8081 Add icons to help differentiate user from bot answers. Bartosz Taudul 2025-05-12 01:04:31 +02:00
  • d499458c69 Working chat. Bartosz Taudul 2025-05-12 00:48:41 +02:00
  • a25b189692 Put a date on the Weizenbaum quote. Bartosz Taudul 2025-05-11 23:15:39 +02:00
  • dc325dae89 Focus chat entry field when LLM UI is opened. Bartosz Taudul 2025-05-11 23:01:07 +02:00
  • 58125770b1 Use ollama::messages instead of vector of strings to hold chat messages. Bartosz Taudul 2025-05-11 22:57:51 +02:00
  • c1998bd9f3 Basic chat input and rendering. Bartosz Taudul 2025-05-11 22:26:27 +02:00
  • 2ea7a183f1 Add chat UI elements. Bartosz Taudul 2025-05-11 21:39:49 +02:00
  • 4250fa51c2 Add model selection to LLM UI. Bartosz Taudul 2025-05-11 21:14:36 +02:00