Commit Graph

69 Commits

Author SHA1 Message Date
Etienne Perot
9fbff16a08
feat: add code execution status to chat messages.
This adds `code_executions` as an array of code execution statuses to
chat messages. The intent of this data is to be displayed in a similar
manner as citations: at the bottom of the message, with buttons that open
a modal for more info. However, code execution data doesn't fit well in
citation modals, because they fundamentally differ in their formatting.
Code execution status includes the code that was run (which benefits from
being syntax-highlighted), and the output and generated files. This
differs from citations which are just list of document names and links.

Additionally, code execution is a process, whereas citations are only
emitted once. This is why code execution data uses an ID-based approach,
where each code execution instance is identified by a unique ID and can
be updated by emitting a new `code_execution` message with the same ID.
This allows the code execution status to be updated as code runs.
2024-10-12 16:14:12 -07:00
Timothy J. Baek
63d297756a enh: mermaid copy content button 2024-10-11 00:10:00 -07:00
Timothy J. Baek
a7f543d737 refac 2024-10-06 13:00:53 -07:00
Timothy J. Baek
babfc97c90 enh: svg zoom pan 2024-10-06 12:51:29 -07:00
Timothy J. Baek
097e90f1de refac 2024-10-06 00:30:50 -07:00
Timothy J. Baek
ed47e24494 refac 2024-10-06 00:28:33 -07:00
Timothy J. Baek
ed337b94e1 refac: styling 2024-10-05 20:50:58 -07:00
Timothy J. Baek
0f287c8a09 enh: floating codeblock buttons 2024-10-05 20:48:55 -07:00
Timothy J. Baek
49e9275c5b refac: styling 2024-10-05 18:57:19 -07:00
Timothy J. Baek
2e067b0541 refac 2024-10-05 16:00:25 -07:00
Timothy J. Baek
f5b6785e53 refac 2024-10-05 12:07:45 -07:00
Timothy J. Baek
81440460f2 feat: editable code block 2024-10-05 12:04:36 -07:00
Timothy J. Baek
7036166535 refac 2024-10-05 03:22:17 -07:00
Timothy J. Baek
e06667ead8 refac 2024-09-23 23:39:33 +02:00
Timothy J. Baek
b1521cacad refac: WIP 2024-09-23 14:24:50 +02:00
Timothy J. Baek
2cd1207e73 fix: mermaid error on rating 2024-09-03 15:39:09 +02:00
Timothy J. Baek
d79d3f1352 enh: mermaid dark theme 2024-08-19 19:42:31 +02:00
Timothy J. Baek
6c8a15fae2 refac 2024-08-19 17:47:28 +02:00
Timothy J. Baek
68d8fd69c0 fix 2024-08-19 17:44:14 +02:00
Timothy J. Baek
b31de299e4 fix: mermaid rendering issue 2024-08-19 17:28:38 +02:00
Timothy J. Baek
5a6ece9513 refac: enhanced response content sanitisation
'<' and '>' can be correctly displayed now
2024-08-15 00:08:15 +02:00
Timothy J. Baek
9435d2044a refac: more robust mermaid chart rendering 2024-08-14 21:16:07 +02:00
Timothy J. Baek
609a42c29c refac: mermaid chart rendering 2024-08-14 17:34:44 +02:00
Timothy J. Baek
1597e33a74 refac: mermaid chart rendering 2024-08-14 16:27:55 +02:00
Timothy J. Baek
d388c20373 enh: codeblock i18n 2024-08-08 15:07:24 +02:00
Timothy J. Baek
13403cd7dc enh: codeblock i18n 2024-08-08 14:24:47 +02:00
Timothy J. Baek
dc262a5f79 refac: styling 2024-08-05 19:43:51 +02:00
Timothy J. Baek
24ef5af2a1 fix: code block 2024-07-09 00:41:56 -07:00
Timothy J. Baek
f342f8adc7 refac: code highlight optimisation 2024-06-20 12:27:34 -07:00
arkohut
5166e92f90
Merge branch 'dev' into support-py-for-run-code 2024-05-28 01:05:15 +08:00
arkohut
b443d61c6f feat: support py Python for code execution 2024-05-28 00:57:36 +08:00
Timothy J. Baek
a6af20e1eb fix: codeblock rendering issue 2024-05-25 02:47:09 -07:00
Timothy J. Baek
23859756d8 fix: >:( 2024-05-20 19:20:49 -07:00
Timothy J. Baek
b088b06575 refac 2024-05-19 15:45:57 -07:00
Timothy J. Baek
e36be75754 Update CodeBlock.svelte 2024-05-19 10:07:43 -07:00
Timothy J. Baek
5961fc84f4 feat: seaborn added to pyodide
Co-Authored-By: Silentoplayz <50341825+Silentoplayz@users.noreply.github.com>
2024-05-19 09:46:43 -07:00
Timothy J. Baek
066789d423 refac: pyodide worker error handling 2024-05-19 05:19:48 -07:00
Timothy J. Baek
78cbdbc63f fix: code block execution 2024-05-19 05:16:31 -07:00
Timothy J. Baek
1b6700425a fix 2024-05-18 14:29:39 -07:00
Timothy J. Baek
8766d2699a refac: include packages 2024-05-18 14:28:16 -07:00
Timothy Jaeryang Baek
9e60d03911
Merge pull request #2318 from idomamia/feat/rtl-layout-chat-support
Add RTL layout chat support
2024-05-18 10:57:35 -10:00
Ido Henri Mamia
27c59d985f
Merge branch 'dev' into feat/rtl-layout-chat-support 2024-05-18 13:58:53 +03:00
Jun Siang Cheah
781c904c91 refac: fetch pyodide deps at build time, not checked into git 2024-05-18 14:30:42 +08:00
Timothy J. Baek
cdbabdfa5a refac 2024-05-17 10:30:22 -07:00
Ido Henri Mamia
e5d574307e Merge branch 'dev' of https://github.com/open-webui/open-webui into feat/rtl-layout-chat-support 2024-05-17 13:04:03 +03:00
Timothy J. Baek
6e19e46b07 refac: styling 2024-05-16 23:20:21 -10:00
Timothy J. Baek
aa9f3d0632 refac: styling 2024-05-16 23:19:31 -10:00
Timothy J. Baek
85b2a63b6d fix: matplotlib 2024-05-16 23:15:39 -10:00
Timothy J. Baek
ef300248ba feat: matplotlib support 2024-05-16 22:54:37 -10:00
Timothy J. Baek
548160c739 refac: time limit to 60sec 2024-05-16 22:39:46 -10:00