Etienne Perot
6477bf37fe
fix: restore __file__
variable for imported toolkits and functions
...
Commit cf86ba7786
changed the way toolkits
and functions were imported to use `exec`, whereas they previously were
written to files and `import`ed. The use of `exec` means that
module-global variables such as `__file__` are no longer defined.
This breaks https://github.com/EtiennePerot/open-webui-code-execution
(code execution tool for Open WebUI), as the module needs to re-execute
its own code in a subprocess in order to properly sandbox itself. This
is done using `__file__` in order to know where the module's code is
located.
This PR creates a temporary in-memory file that contains the imported
toolkit or function's code and exists only during the import process.
Then it injects the path to this in-memory file as the `__file__`
variable in the `exec` context. This restores the ability for the
toolkit or function being imported to rely on `__file__`.
2024-09-18 01:08:30 -07:00
Timothy J. Baek
1743d3c6c1
fix
2024-09-18 03:47:04 +02:00
Timothy J. Baek
e723b2a4c6
refac
2024-09-18 03:19:32 +02:00
Timothy J. Baek
67f704c98d
enh: scroll to message from overview
2024-09-18 03:13:37 +02:00
Timothy J. Baek
8d92093570
enh: node show content as tooltip
2024-09-18 02:55:25 +02:00
Timothy J. Baek
1ccac9111b
refac: only animate active edges
2024-09-18 02:42:19 +02:00
Timothy J. Baek
98984166f9
refac: styling
2024-09-18 02:11:25 +02:00
Timothy J. Baek
d1bf18eeb0
fix
2024-09-18 01:57:27 +02:00
Timothy J. Baek
2018a6c000
fix: styling
2024-09-18 01:53:08 +02:00
Timothy J. Baek
56152230f8
refac
2024-09-18 01:39:22 +02:00
Timothy J. Baek
7e8cf5504a
refac: styling
2024-09-18 01:35:22 +02:00
Timothy J. Baek
3c03d5069d
refac: styling
2024-09-18 01:31:49 +02:00
Timothy J. Baek
705508a674
refac: allow chat menu in mobile
2024-09-18 01:30:09 +02:00
Timothy J. Baek
771482c6e6
refac
2024-09-18 01:25:28 +02:00
Timothy J. Baek
d25ccfba5f
refac: styling
2024-09-18 01:21:32 +02:00
Timothy J. Baek
614c219010
enh: prepend image filename with prompt
2024-09-18 01:04:20 +02:00
Timothy J. Baek
63b3076d64
refac
2024-09-18 00:52:06 +02:00
Timothy J. Baek
8e3ad45ce4
enh: model move to top
2024-09-18 00:49:27 +02:00
Timothy J. Baek
984e0c533e
refac
2024-09-18 00:18:47 +02:00
Timothy J. Baek
5065291f72
feat: save as new response message
2024-09-17 23:36:48 +02:00
Timothy J. Baek
8c273ba58a
refac
2024-09-17 23:23:38 +02:00
Timothy J. Baek
7a9c0946a4
refac
2024-09-17 23:13:51 +02:00
Timothy J. Baek
7e0a26ef4e
refac
2024-09-17 23:07:04 +02:00
Timothy J. Baek
65b7c9898b
fix
2024-09-17 23:02:41 +02:00
Timothy J. Baek
67f95ddfdc
refac
2024-09-17 22:58:06 +02:00
Timothy J. Baek
d1dbb9a3be
feat: chat overview
2024-09-17 22:05:19 +02:00
Timothy J. Baek
bb087a5989
enh: chat copy button
2024-09-17 21:32:39 +02:00
Timothy Jaeryang Baek
a0d24105fc
Merge pull request #5473 from aleixdorca/dev
...
i18n: Update Catalan Translation
2024-09-17 17:18:40 +02:00
Timothy Jaeryang Baek
a5c9160b7d
Merge pull request #5466 from phil-ogb/add-security-response-headers
...
feat: security response headers
2024-09-17 17:18:28 +02:00
Aleix Dorca
0e2cdbe9fb
Minor typo
2024-09-17 16:49:05 +02:00
Aleix Dorca
3c55a46484
i18n: Update Catalan translation.json
2024-09-17 16:46:52 +02:00
Pawel Ochman
d6b68f405e
added azure speech service support
2024-09-17 09:13:10 +01:00
Pawel Ochman
351bbdb36c
Added Azure speach service option (UI)
2024-09-17 08:47:30 +01:00
Phil Ogbonna
896baf021b
update comment block
2024-09-16 22:02:55 -03:00
Phil Ogbonna
499e5e4f60
feat: security response headers
2024-09-16 21:53:30 -03:00
Timothy J. Baek
3ad003bccb
fix
2024-09-16 16:42:18 +02:00
Timothy J. Baek
af92184c93
chore: colbert-ai requirement
2024-09-16 16:19:40 +02:00
Timothy J. Baek
06debb322b
refac: colbert cuda support
2024-09-16 12:42:48 +02:00
Timothy J. Baek
b7f0759485
refac
2024-09-16 12:36:43 +02:00
Timothy J. Baek
bc6f23f82f
fix
2024-09-16 12:33:55 +02:00
Timothy J. Baek
cb9e76c7f9
refac: default rag template
2024-09-16 12:01:04 +02:00
Timothy J. Baek
b38986a0aa
enh: colbert rerank support
2024-09-16 11:46:39 +02:00
Timothy J. Baek
db0c576f48
refac
2024-09-16 07:14:17 +02:00
Timothy Jaeryang Baek
40d7e5089d
Merge pull request #5436 from khanh-alice/fix-transparent-icons
...
fix: model transparent icons
2024-09-16 07:05:17 +02:00
Timothy Jaeryang Baek
9b8d42c670
Merge pull request #5440 from cheahjs/feat/capabilities-help
...
feat: add help text for capabilities
2024-09-16 05:17:32 +02:00
Jun Siang Cheah
bed3b71860
feat: add help text for capabilities
2024-09-15 14:14:09 +01:00
Khanh Le
253791b92c
save model icon as png
2024-09-15 16:43:42 +07:00
Timothy J. Baek
5dd6ae6ec4
chore: npm
2024-09-14 23:30:56 +01:00
Timothy J. Baek
902f30c123
enh: table view allow overflow
2024-09-14 23:23:52 +01:00
Timothy J. Baek
fa8d7bd9c6
enh: allow new lines in default prompts
2024-09-14 23:17:58 +01:00