Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
5237439e
Commit
5237439e
authored
Jun 11, 2024
by
Timothy J. Baek
Browse files
feat: tool desc
parent
049b3136
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
src/lib/components/chat/MessageInput.svelte
src/lib/components/chat/MessageInput.svelte
+1
-0
src/lib/components/chat/MessageInput/InputMenu.svelte
src/lib/components/chat/MessageInput/InputMenu.svelte
+4
-1
No files found.
src/lib/components/chat/MessageInput.svelte
View file @
5237439e
...
@@ -659,6 +659,7 @@
...
@@ -659,6 +659,7 @@
tools={$tools.reduce((a, e, i, arr) => {
tools={$tools.reduce((a, e, i, arr) => {
a[e.id] = {
a[e.id] = {
name: e.name,
name: e.name,
description: e.meta.description,
enabled: false
enabled: false
};
};
...
...
src/lib/components/chat/MessageInput/InputMenu.svelte
View file @
5237439e
...
@@ -52,7 +52,10 @@
...
@@ -52,7 +52,10 @@
>
>
<div class="flex-1 flex items-center gap-2">
<div class="flex-1 flex items-center gap-2">
<WrenchSolid />
<WrenchSolid />
<div class="flex items-center">{tools[toolId].name}</div>
<Tooltip content={tools[toolId]?.description ?? ''}>
<div class="flex items-center line-clamp-1">{tools[toolId].name}</div>
</Tooltip>
</div>
</div>
<Switch
<Switch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment