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
fa26b8d7
Commit
fa26b8d7
authored
Jul 15, 2024
by
SimonOriginal
Browse files
refac
parent
07283ca0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
src/lib/components/workspace/Functions/FunctionEditor.svelte
src/lib/components/workspace/Functions/FunctionEditor.svelte
+3
-1
src/lib/components/workspace/Tools.svelte
src/lib/components/workspace/Tools.svelte
+3
-1
src/lib/components/workspace/Tools/ToolkitEditor.svelte
src/lib/components/workspace/Tools/ToolkitEditor.svelte
+6
-2
No files found.
src/lib/components/workspace/Functions/FunctionEditor.svelte
View file @
fa26b8d7
...
@@ -326,7 +326,9 @@ class Pipe:
...
@@ -326,7 +326,9 @@ class Pipe:
<input
<input
class="w-full px-3 py-2 text-sm font-medium bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
class="w-full px-3 py-2 text-sm font-medium bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
type="text"
type="text"
placeholder={$i18n.t('Function Description (e.g. A filter to remove profanity from text)')}
placeholder={$i18n.t(
'Function Description (e.g. A filter to remove profanity from text)'
)}
bind:value={meta.description}
bind:value={meta.description}
required
required
/>
/>
...
...
src/lib/components/workspace/Tools.svelte
View file @
fa26b8d7
...
@@ -439,7 +439,9 @@
...
@@ -439,7 +439,9 @@
<div>{$i18n.t('Please carefully review the following warnings:')}</div>
<div>{$i18n.t('Please carefully review the following warnings:')}</div>
<ul class=" mt-1 list-disc pl-4 text-xs">
<ul class=" mt-1 list-disc pl-4 text-xs">
<li>{$i18n.t('Tools have a function calling system that allows arbitrary code execution')}.</li>
<li>
{$i18n.t('Tools have a function calling system that allows arbitrary code execution')}.
</li>
<li>{$i18n.t('Do not install tools from sources you do not fully trust.')}</li>
<li>{$i18n.t('Do not install tools from sources you do not fully trust.')}</li>
</ul>
</ul>
</div>
</div>
...
...
src/lib/components/workspace/Tools/ToolkitEditor.svelte
View file @
fa26b8d7
...
@@ -214,7 +214,9 @@ class Tools:
...
@@ -214,7 +214,9 @@ class Tools:
<input
<input
class="w-full px-3 py-2 text-sm font-medium bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
class="w-full px-3 py-2 text-sm font-medium bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
type="text"
type="text"
placeholder={$i18n.t('Toolkit Description (e.g. A toolkit for performing various operations)')}
placeholder={$i18n.t(
'Toolkit Description (e.g. A toolkit for performing various operations)'
)}
bind:value={meta.description}
bind:value={meta.description}
required
required
/>
/>
...
@@ -267,7 +269,9 @@ class Tools:
...
@@ -267,7 +269,9 @@ class Tools:
<div>{$i18n.t('Please carefully review the following warnings:')}</div>
<div>{$i18n.t('Please carefully review the following warnings:')}</div>
<ul class=" mt-1 list-disc pl-4 text-xs">
<ul class=" mt-1 list-disc pl-4 text-xs">
<li>{$i18n.t('Tools have a function calling system that allows arbitrary code execution.')}</li>
<li>
{$i18n.t('Tools have a function calling system that allows arbitrary code execution.')}
</li>
<li>{$i18n.t('Do not install tools from sources you do not fully trust.')}</li>
<li>{$i18n.t('Do not install tools from sources you do not fully trust.')}</li>
</ul>
</ul>
</div>
</div>
...
...
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