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
c41b33c9
Unverified
Commit
c41b33c9
authored
Jun 12, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 12, 2024
Browse files
Merge pull request #3013 from open-webui/dev
0.3.3
parents
06976c45
7131ac24
Changes
93
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
819 additions
and
3 deletions
+819
-3
src/lib/components/icons/WrenchSolid.svelte
src/lib/components/icons/WrenchSolid.svelte
+11
-0
src/lib/components/workspace/Documents.svelte
src/lib/components/workspace/Documents.svelte
+1
-1
src/lib/components/workspace/Models/ToolsSelector.svelte
src/lib/components/workspace/Models/ToolsSelector.svelte
+57
-0
src/lib/components/workspace/Tools.svelte
src/lib/components/workspace/Tools.svelte
+358
-0
src/lib/components/workspace/Tools/CodeEditor.svelte
src/lib/components/workspace/Tools/CodeEditor.svelte
+127
-0
src/lib/components/workspace/Tools/ToolkitEditor.svelte
src/lib/components/workspace/Tools/ToolkitEditor.svelte
+179
-0
src/lib/i18n/locales/ar-BH/translation.json
src/lib/i18n/locales/ar-BH/translation.json
+6
-0
src/lib/i18n/locales/bg-BG/translation.json
src/lib/i18n/locales/bg-BG/translation.json
+6
-0
src/lib/i18n/locales/bn-BD/translation.json
src/lib/i18n/locales/bn-BD/translation.json
+6
-0
src/lib/i18n/locales/ca-ES/translation.json
src/lib/i18n/locales/ca-ES/translation.json
+6
-0
src/lib/i18n/locales/ceb-PH/translation.json
src/lib/i18n/locales/ceb-PH/translation.json
+6
-0
src/lib/i18n/locales/de-DE/translation.json
src/lib/i18n/locales/de-DE/translation.json
+6
-0
src/lib/i18n/locales/dg-DG/translation.json
src/lib/i18n/locales/dg-DG/translation.json
+6
-0
src/lib/i18n/locales/en-GB/translation.json
src/lib/i18n/locales/en-GB/translation.json
+6
-0
src/lib/i18n/locales/en-US/translation.json
src/lib/i18n/locales/en-US/translation.json
+6
-0
src/lib/i18n/locales/es-ES/translation.json
src/lib/i18n/locales/es-ES/translation.json
+6
-0
src/lib/i18n/locales/fa-IR/translation.json
src/lib/i18n/locales/fa-IR/translation.json
+6
-0
src/lib/i18n/locales/fi-FI/translation.json
src/lib/i18n/locales/fi-FI/translation.json
+6
-0
src/lib/i18n/locales/fr-CA/translation.json
src/lib/i18n/locales/fr-CA/translation.json
+7
-1
src/lib/i18n/locales/fr-FR/translation.json
src/lib/i18n/locales/fr-FR/translation.json
+7
-1
No files found.
src/lib/components/icons/WrenchSolid.svelte
0 → 100644
View file @
c41b33c9
<script lang="ts">
export let className = 'size-4';
</script>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class={className}>
<path
fill-rule="evenodd"
d="M12 6.75a5.25 5.25 0 0 1 6.775-5.025.75.75 0 0 1 .313 1.248l-3.32 3.319c.063.475.276.934.641 1.299.365.365.824.578 1.3.64l3.318-3.319a.75.75 0 0 1 1.248.313 5.25 5.25 0 0 1-5.472 6.756c-1.018-.086-1.87.1-2.309.634L7.344 21.3A3.298 3.298 0 1 1 2.7 16.657l8.684-7.151c.533-.44.72-1.291.634-2.309A5.342 5.342 0 0 1 12 6.75ZM4.117 19.125a.75.75 0 0 1 .75-.75h.008a.75.75 0 0 1 .75.75v.008a.75.75 0 0 1-.75.75h-.008a.75.75 0 0 1-.75-.75v-.008Z"
clip-rule="evenodd"
/>
</svg>
src/lib/components/workspace/Documents.svelte
View file @
c41b33c9
...
...
@@ -491,7 +491,7 @@
{/each}
</div>
<div class=" text-gray-500 text-xs mt-1">
<div class=" text-gray-500 text-xs mt-1
mb-2
">
ⓘ {$i18n.t("Use '#' in the prompt input to load and select your documents.")}
</div>
...
...
src/lib/components/workspace/Models/ToolsSelector.svelte
0 → 100644
View file @
c41b33c9
<script lang="ts">
import Checkbox from '$lib/components/common/Checkbox.svelte';
import { getContext, onMount } from 'svelte';
export let tools = [];
let _tools = {};
export let selectedToolIds = [];
const i18n = getContext('i18n');
onMount(() => {
_tools = tools.reduce((acc, tool) => {
acc[tool.id] = {
...tool,
selected: selectedToolIds.includes(tool.id)
};
return acc;
}, {});
});
</script>
<div>
<div class="flex w-full justify-between mb-1">
<div class=" self-center text-sm font-semibold">{$i18n.t('Tools')}</div>
</div>
<div class=" text-xs dark:text-gray-500">
{$i18n.t('To select toolkits here, add them to the "Tools" workspace first.')}
</div>
<div class="flex flex-col">
{#if tools.length > 0}
<div class=" flex items-center gap-2 mt-2">
{#each Object.keys(_tools) as tool, toolIdx}
<div class=" flex items-center gap-2">
<div class="self-center flex items-center">
<Checkbox
state={_tools[tool].selected ? 'checked' : 'unchecked'}
on:change={(e) => {
_tools[tool].selected = e.detail === 'checked';
selectedToolIds = Object.keys(_tools).filter((t) => _tools[t].selected);
}}
/>
</div>
<div class=" py-0.5 text-sm w-full capitalize font-medium">
{_tools[tool].name}
</div>
</div>
{/each}
</div>
{/if}
</div>
</div>
src/lib/components/workspace/Tools.svelte
0 → 100644
View file @
c41b33c9
<script lang="ts">
import { toast } from 'svelte-sonner';
import fileSaver from 'file-saver';
const { saveAs } = fileSaver;
import { onMount, getContext } from 'svelte';
import { WEBUI_NAME, prompts, tools } from '$lib/stores';
import { createNewPrompt, deletePromptByCommand, getPrompts } from '$lib/apis/prompts';
import { goto } from '$app/navigation';
import {
createNewTool,
deleteToolById,
exportTools,
getToolById,
getTools
} from '$lib/apis/tools';
import ArrowDownTray from '../icons/ArrowDownTray.svelte';
import Tooltip from '../common/Tooltip.svelte';
import ConfirmDialog from '../common/ConfirmDialog.svelte';
const i18n = getContext('i18n');
let toolsImportInputElement: HTMLInputElement;
let importFiles;
let showConfirm = false;
let query = '';
</script>
<svelte:head>
<title>
{$i18n.t('Tools')} | {$WEBUI_NAME}
</title>
</svelte:head>
<div class="mb-3 flex justify-between items-center">
<div class=" text-lg font-semibold self-center">{$i18n.t('Tools')}</div>
</div>
<div class=" flex w-full space-x-2">
<div class="flex flex-1">
<div class=" self-center ml-1 mr-3">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z"
clip-rule="evenodd"
/>
</svg>
</div>
<input
class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent"
bind:value={query}
placeholder={$i18n.t('Search Tools')}
/>
</div>
<div>
<a
class=" px-2 py-2 rounded-xl border border-gray-200 dark:border-gray-600 dark:border-0 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 transition font-medium text-sm flex items-center space-x-1"
href="/workspace/tools/create"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
fill="currentColor"
class="w-4 h-4"
>
<path
d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"
/>
</svg>
</a>
</div>
</div>
<hr class=" dark:border-gray-850 my-2.5" />
<div class="my-3 mb-5">
{#each $tools.filter((t) => query === '' || t.name
.toLowerCase()
.includes(query.toLowerCase()) || t.id.toLowerCase().includes(query.toLowerCase())) as tool}
<button
class=" flex space-x-4 cursor-pointer w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"
type="button"
on:click={() => {
goto(`/workspace/tools/edit?id=${encodeURIComponent(tool.id)}`);
}}
>
<div class=" flex flex-1 space-x-4 cursor-pointer w-full">
<a
href={`/workspace/tools/edit?id=${encodeURIComponent(tool.id)}`}
class="flex items-center text-left"
>
<div class=" flex-1 self-center pl-5">
<div class=" font-semibold flex items-center gap-1.5">
<div>
{tool.name}
</div>
<div class=" text-gray-500 text-xs font-medium">{tool.id}</div>
</div>
<div class=" text-xs overflow-hidden text-ellipsis line-clamp-1">
{tool.meta.description}
</div>
</div>
</a>
</div>
<div class="flex flex-row space-x-1 self-center">
<Tooltip content="Edit">
<a
class="self-center w-fit text-sm px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
type="button"
href={`/workspace/tools/edit?id=${encodeURIComponent(tool.id)}`}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"
/>
</svg>
</a>
</Tooltip>
<Tooltip content="Clone">
<button
class="self-center w-fit text-sm px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
type="button"
on:click={async (e) => {
e.stopPropagation();
const _tool = await getToolById(localStorage.token, tool.id).catch((error) => {
toast.error(error);
return null;
});
if (_tool) {
sessionStorage.tool = JSON.stringify({
..._tool,
id: `${_tool.id}_clone`,
name: `${_tool.name} (Clone)`
});
goto('/workspace/tools/create');
}
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"
/>
</svg>
</button>
</Tooltip>
<Tooltip content="Export">
<button
class="self-center w-fit text-sm px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
type="button"
on:click={async (e) => {
e.stopPropagation();
const _tool = await getToolById(localStorage.token, tool.id).catch((error) => {
toast.error(error);
return null;
});
if (_tool) {
let blob = new Blob([JSON.stringify([_tool])], {
type: 'application/json'
});
saveAs(blob, `tool-${_tool.id}-export-${Date.now()}.json`);
}
}}
>
<ArrowDownTray />
</button>
</Tooltip>
<Tooltip content="Delete">
<button
class="self-center w-fit text-sm px-2 py-2 dark:text-gray-300 dark:hover:text-white hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
type="button"
on:click={async (e) => {
e.stopPropagation();
const res = await deleteToolById(localStorage.token, tool.id).catch((error) => {
toast.error(error);
return null;
});
if (res) {
toast.success('Tool deleted successfully');
tools.set(await getTools(localStorage.token));
}
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-4 h-4"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
/>
</svg>
</button>
</Tooltip>
</div>
</button>
{/each}
</div>
<div class=" text-gray-500 text-xs mt-1 mb-2">
ⓘ {$i18n.t(
'Admins have access to all tools at all times; users need tools assigned per model in the workspace.'
)}
</div>
<div class=" flex justify-end w-full mb-2">
<div class="flex space-x-2">
<input
id="documents-import-input"
bind:this={toolsImportInputElement}
bind:files={importFiles}
type="file"
accept=".json"
hidden
on:change={() => {
console.log(importFiles);
showConfirm = true;
}}
/>
<button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
on:click={() => {
toolsImportInputElement.click();
}}
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Import Tools')}</div>
<div class=" self-center">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm4 9.5a.75.75 0 0 1-.75-.75V8.06l-.72.72a.75.75 0 0 1-1.06-1.06l2-2a.75.75 0 0 1 1.06 0l2 2a.75.75 0 1 1-1.06 1.06l-.72-.72v2.69a.75.75 0 0 1-.75.75Z"
clip-rule="evenodd"
/>
</svg>
</div>
</button>
<button
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
on:click={async () => {
const _tools = await exportTools(localStorage.token).catch((error) => {
toast.error(error);
return null;
});
if (_tools) {
let blob = new Blob([JSON.stringify(_tools)], {
type: 'application/json'
});
saveAs(blob, `tools-export-${Date.now()}.json`);
}
}}
>
<div class=" self-center mr-2 font-medium">{$i18n.t('Export Tools')}</div>
<div class=" self-center">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M4 2a1.5 1.5 0 0 0-1.5 1.5v9A1.5 1.5 0 0 0 4 14h8a1.5 1.5 0 0 0 1.5-1.5V6.621a1.5 1.5 0 0 0-.44-1.06L9.94 2.439A1.5 1.5 0 0 0 8.878 2H4Zm4 3.5a.75.75 0 0 1 .75.75v2.69l.72-.72a.75.75 0 1 1 1.06 1.06l-2 2a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 0 1 1.06-1.06l.72.72V6.25A.75.75 0 0 1 8 5.5Z"
clip-rule="evenodd"
/>
</svg>
</div>
</button>
</div>
</div>
<ConfirmDialog
bind:show={showConfirm}
on:confirm={() => {
const reader = new FileReader();
reader.onload = async (event) => {
const _tools = JSON.parse(event.target.result);
console.log(_tools);
for (const tool of _tools) {
const res = await createNewTool(localStorage.token, tool).catch((error) => {
toast.error(error);
return null;
});
}
toast.success('Tool imported successfully');
tools.set(await getTools(localStorage.token));
};
reader.readAsText(importFiles[0]);
}}
>
<div class="text-sm text-gray-500">
<div class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-lg px-4 py-3">
<div>Please carefully review the following warnings:</div>
<ul class=" mt-1 list-disc pl-4 text-xs">
<li>Tools have a function calling system that allows arbitrary code execution.</li>
<li>Do not install tools from sources you do not fully trust.</li>
</ul>
</div>
<div class="my-3">
I acknowledge that I have read and I understand the implications of my action. I am aware of
the risks associated with executing arbitrary code and I have verified the trustworthiness of
the source.
</div>
</div>
</ConfirmDialog>
src/lib/components/workspace/Tools/CodeEditor.svelte
0 → 100644
View file @
c41b33c9
<script lang="ts">
import CodeEditor from '$lib/components/common/CodeEditor.svelte';
import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
export let value = '';
let codeEditor;
let boilerplate = `import os
import requests
from datetime import datetime
class Tools:
def __init__(self):
pass
# Add your custom tools using pure Python code here, make sure to add type hints
# Use Sphinx-style docstrings to document your tools, they will be used for generating tools specifications
# Please refer to function_calling_filter_pipeline.py file from pipelines project for an example
def get_user_name_and_email_and_id(self, __user__: dict = {}) -> str:
"""
Get the user name, Email and ID from the user object.
"""
# Do not include :param for __user__ in the docstring as it should not be shown in the tool's specification
# The session user object will be passed as a parameter when the function is called
print(__user__)
result = ""
if "name" in __user__:
result += f"User: {__user__['name']}"
if "id" in __user__:
result += f" (ID: {__user__['id']})"
if "email" in __user__:
result += f" (Email: {__user__['email']})"
if result == "":
result = "User: Unknown"
return result
def get_current_time(self) -> str:
"""
Get the current time in a more human-readable format.
:return: The current time.
"""
now = datetime.now()
current_time = now.strftime("%I:%M:%S %p") # Using 12-hour format with AM/PM
current_date = now.strftime(
"%A, %B %d, %Y"
) # Full weekday, month name, day, and year
return f"Current Date and Time = {current_date}, {current_time}"
def calculator(self, equation: str) -> str:
"""
Calculate the result of an equation.
:param equation: The equation to calculate.
"""
# Avoid using eval in production code
# https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html
try:
result = eval(equation)
return f"{equation} = {result}"
except Exception as e:
print(e)
return "Invalid equation"
def get_current_weather(self, city: str) -> str:
"""
Get the current weather for a given city.
:param city: The name of the city to get the weather for.
:return: The current weather information or an error message.
"""
api_key = os.getenv("OPENWEATHER_API_KEY")
if not api_key:
return (
"API key is not set in the environment variable 'OPENWEATHER_API_KEY'."
)
base_url = "http://api.openweathermap.org/data/2.5/weather"
params = {
"q": city,
"appid": api_key,
"units": "metric", # Optional: Use 'imperial' for Fahrenheit
}
try:
response = requests.get(base_url, params=params)
response.raise_for_status() # Raise HTTPError for bad responses (4xx and 5xx)
data = response.json()
if data.get("cod") != 200:
return f"Error fetching weather data: {data.get('message')}"
weather_description = data["weather"][0]["description"]
temperature = data["main"]["temp"]
humidity = data["main"]["humidity"]
wind_speed = data["wind"]["speed"]
return f"Weather in {city}: {temperature}°C"
except requests.RequestException as e:
return f"Error fetching weather data: {str(e)}"
`;
export const formatHandler = async () => {
if (codeEditor) {
return await codeEditor.formatPythonCodeHandler();
}
return false;
};
</script>
<CodeEditor
bind:value
{boilerplate}
bind:this={codeEditor}
on:save={() => {
dispatch('save');
}}
/>
src/lib/components/workspace/Tools/ToolkitEditor.svelte
0 → 100644
View file @
c41b33c9
<script>
import { getContext, createEventDispatcher, onMount } from 'svelte';
const i18n = getContext('i18n');
import CodeEditor from './CodeEditor.svelte';
import { goto } from '$app/navigation';
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
const dispatch = createEventDispatcher();
let formElement = null;
let loading = false;
let showConfirm = false;
export let edit = false;
export let clone = false;
export let id = '';
export let name = '';
export let meta = {
description: ''
};
export let content = '';
$: if (name && !edit && !clone) {
id = name.replace(/\s+/g, '_').toLowerCase();
}
let codeEditor;
const saveHandler = async () => {
loading = true;
dispatch('save', {
id,
name,
meta,
content
});
};
const submitHandler = async () => {
if (codeEditor) {
const res = await codeEditor.formatHandler();
if (res) {
console.log('Code formatted successfully');
saveHandler();
}
}
};
</script>
<div class=" flex flex-col justify-between w-full overflow-y-auto h-full">
<div class="mx-auto w-full md:px-0 h-full">
<form
bind:this={formElement}
class=" flex flex-col max-h-[100dvh] h-full"
on:submit|preventDefault={() => {
if (edit) {
submitHandler();
} else {
showConfirm = true;
}
}}
>
<div class="mb-2.5">
<button
class="flex space-x-1"
on:click={() => {
goto('/workspace/tools');
}}
type="button"
>
<div class=" self-center">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="w-4 h-4"
>
<path
fill-rule="evenodd"
d="M17 10a.75.75 0 01-.75.75H5.612l4.158 3.96a.75.75 0 11-1.04 1.08l-5.5-5.25a.75.75 0 010-1.08l5.5-5.25a.75.75 0 111.04 1.08L5.612 9.25H16.25A.75.75 0 0117 10z"
clip-rule="evenodd"
/>
</svg>
</div>
<div class=" self-center font-medium text-sm">{$i18n.t('Back')}</div>
</button>
</div>
<div class="flex flex-col flex-1 overflow-auto h-0 rounded-lg">
<div class="w-full mb-2 flex flex-col gap-1.5">
<div class="flex gap-2 w-full">
<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"
type="text"
placeholder="Toolkit Name (e.g. My ToolKit)"
bind:value={name}
required
/>
<input
class="w-full px-3 py-2 text-sm font-medium disabled:text-gray-300 dark:disabled:text-gray-700 bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
type="text"
placeholder="Toolkit ID (e.g. my_toolkit)"
bind:value={id}
required
disabled={edit}
/>
</div>
<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"
type="text"
placeholder="Toolkit Description (e.g. A toolkit for performing various operations)"
bind:value={meta.description}
required
/>
</div>
<div class="mb-2 flex-1 overflow-auto h-0 rounded-lg">
<CodeEditor
bind:value={content}
bind:this={codeEditor}
on:save={() => {
if (formElement) {
formElement.requestSubmit();
}
}}
/>
</div>
<div class="pb-3 flex justify-between">
<div class="flex-1 pr-3">
<div class="text-xs text-gray-500 line-clamp-2">
<span class=" font-semibold dark:text-gray-200">Warning:</span> Tools are a function
calling system with arbitrary code execution <br />—
<span class=" font-medium dark:text-gray-400"
>don't install random tools from sources you don't trust.</span
>
</div>
</div>
<button
class="px-3 py-1.5 text-sm font-medium bg-emerald-600 hover:bg-emerald-700 text-gray-50 transition rounded-lg"
type="submit"
>
{$i18n.t('Save')}
</button>
</div>
</div>
</form>
</div>
</div>
<ConfirmDialog
bind:show={showConfirm}
on:confirm={() => {
submitHandler();
}}
>
<div class="text-sm text-gray-500">
<div class=" bg-yellow-500/20 text-yellow-700 dark:text-yellow-200 rounded-lg px-4 py-3">
<div>Please carefully review the following warnings:</div>
<ul class=" mt-1 list-disc pl-4 text-xs">
<li>Tools have a function calling system that allows arbitrary code execution.</li>
<li>Do not install tools from sources you do not fully trust.</li>
</ul>
</div>
<div class="my-3">
I acknowledge that I have read and I understand the implications of my action. I am aware of
the risks associated with executing arbitrary code and I have verified the trustworthiness of
the source.
</div>
</div>
</ConfirmDialog>
src/lib/i18n/locales/ar-BH/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"لوحة التحكم"
,
"Admin Settings"
:
"اعدادات المشرف"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"التعليمات المتقدمة"
,
"Advanced Params"
:
"المعلمات المتقدمة"
,
"all"
:
"الكل"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"تصدير وثائق الخرائط"
,
"Export Models"
:
"نماذج التصدير"
,
"Export Prompts"
:
"مطالبات التصدير"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"فشل في إنشاء مفتاح API."
,
"Failed to read clipboard contents"
:
"فشل في قراءة محتويات الحافظة"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"استيراد خرائط المستندات"
,
"Import Models"
:
"استيراد النماذج"
,
"Import Prompts"
:
"مطالبات الاستيراد"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"قم بتضمين علامة `-api` عند تشغيل Stable-diffusion-webui"
,
"Info"
:
"معلومات"
,
"Input commands"
:
"إدخال الأوامر"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"عدد نتائج البحث"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_zero"
:
"تم البحث في {{count}} sites_zero"
,
"Searched {{count}} sites_one"
:
"تم البحث في {{count}} sites_one"
,
"Searched {{count}} sites_two"
:
"تم البحث في {{count}} sites_two"
,
...
...
@@ -514,9 +518,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"الى كتابة المحادثه"
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"اليوم"
,
"Toggle settings"
:
"فتح وأغلاق الاعدادات"
,
"Toggle sidebar"
:
"فتح وأغلاق الشريط الجانبي"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"هل تواجه مشكلة في الوصول"
,
...
...
src/lib/i18n/locales/bg-BG/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Панел на Администратор"
,
"Admin Settings"
:
"Настройки на Администратор"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Разширени Параметри"
,
"Advanced Params"
:
"Разширени параметри"
,
"all"
:
"всички"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Експортване на документен мапинг"
,
"Export Models"
:
"Експортиране на модели"
,
"Export Prompts"
:
"Експортване на промптове"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"Неуспешно създаване на API ключ."
,
"Failed to read clipboard contents"
:
"Грешка при четене на съдържанието от клипборда"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Импортване на документен мапинг"
,
"Import Models"
:
"Импортиране на модели"
,
"Import Prompts"
:
"Импортване на промптове"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Включете флага `--api`, когато стартирате stable-diffusion-webui"
,
"Info"
:
"Информация"
,
"Input commands"
:
"Въведете команди"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Брой резултати от търсенето"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Търси се в {{count}} sites_one"
,
"Searched {{count}} sites_other"
:
"Търси се в {{count}} sites_other"
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"към чат входа."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"днес"
,
"Toggle settings"
:
"Toggle settings"
,
"Toggle sidebar"
:
"Toggle sidebar"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Проблеми с достъпът до Ollama?"
,
...
...
src/lib/i18n/locales/bn-BD/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"এডমিন প্যানেল"
,
"Admin Settings"
:
"এডমিন সেটিংস"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"এডভান্সড প্যারামিটার্স"
,
"Advanced Params"
:
"অ্যাডভান্সড প্যারাম"
,
"all"
:
"সব"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"ডকুমেন্টসমূহ ম্যাপিং এক্সপোর্ট করুন"
,
"Export Models"
:
"রপ্তানি মডেল"
,
"Export Prompts"
:
"প্রম্পটগুলো একপোর্ট করুন"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"API Key তৈরি করা যায়নি।"
,
"Failed to read clipboard contents"
:
"ক্লিপবোর্ডের বিষয়বস্তু পড়া সম্ভব হয়নি"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"ডকুমেন্টসমূহ ম্যাপিং ইমপোর্ট করুন"
,
"Import Models"
:
"মডেল আমদানি করুন"
,
"Import Prompts"
:
"প্রম্পটগুলো ইমপোর্ট করুন"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"stable-diffusion-webui চালু করার সময় `--api` ফ্ল্যাগ সংযুক্ত করুন"
,
"Info"
:
"তথ্য"
,
"Input commands"
:
"ইনপুট কমান্ডস"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"অনুসন্ধানের ফলাফল গণনা"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"{{কাউন্ট}} অনুসন্ধান করা হয়েছে sites_one"
,
"Searched {{count}} sites_other"
:
"{{কাউন্ট}} অনুসন্ধান করা হয়েছে sites_other"
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"চ্যাট ইনপুটে"
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"আজ"
,
"Toggle settings"
:
"সেটিংস টোগল"
,
"Toggle sidebar"
:
"সাইডবার টোগল"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Ollama এক্সেস করতে সমস্যা হচ্ছে?"
,
...
...
src/lib/i18n/locales/ca-ES/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Panell d'Administració"
,
"Admin Settings"
:
"Configuració d'Administració"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Paràmetres Avançats"
,
"Advanced Params"
:
"Paràmetres avançats"
,
"all"
:
"tots"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Exporta el Mapatge de Documents"
,
"Export Models"
:
"Models d'exportació"
,
"Export Prompts"
:
"Exporta Prompts"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"No s'ha pogut crear la clau d'API."
,
"Failed to read clipboard contents"
:
"No s'ha pogut llegir el contingut del porta-retalls"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Importa el Mapa de Documents"
,
"Import Models"
:
"Models d'importació"
,
"Import Prompts"
:
"Importa Prompts"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Inclou la bandera `--api` quan executis stable-diffusion-webui"
,
"Info"
:
"Informació"
,
"Input commands"
:
"Entra ordres"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Recompte de resultats de cerca"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Cercat {{count}} sites_one"
,
"Searched {{count}} sites_many"
:
"Cercat {{recompte}} sites_many"
,
"Searched {{count}} sites_other"
:
"Cercat {{recompte}} sites_other"
,
...
...
@@ -511,9 +515,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"a l'entrada del xat."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Avui"
,
"Toggle settings"
:
"Commuta configuracions"
,
"Toggle sidebar"
:
"Commuta barra lateral"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Problemes accedint a Ollama?"
,
...
...
src/lib/i18n/locales/ceb-PH/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Admin Panel"
,
"Admin Settings"
:
"Mga setting sa administratibo"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"advanced settings"
,
"Advanced Params"
:
""
,
"all"
:
"tanan"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"I-export ang pagmapa sa dokumento"
,
"Export Models"
:
""
,
"Export Prompts"
:
"Export prompts"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
""
,
"Failed to read clipboard contents"
:
"Napakyas sa pagbasa sa sulod sa clipboard"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Import nga pagmapa sa dokumento"
,
"Import Models"
:
""
,
"Import Prompts"
:
"Import prompt"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Iapil ang `--api` nga bandila kung nagdagan nga stable-diffusion-webui"
,
"Info"
:
""
,
"Input commands"
:
"Pagsulod sa input commands"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
""
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
""
,
"Searched {{count}} sites_other"
:
""
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"sa entrada sa iring."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
""
,
"Toggle settings"
:
"I-toggle ang mga setting"
,
"Toggle sidebar"
:
"I-toggle ang sidebar"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Ibabaw nga P"
,
"Trouble accessing Ollama?"
:
"Adunay mga problema sa pag-access sa Ollama?"
,
...
...
src/lib/i18n/locales/de-DE/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Admin Panel"
,
"Admin Settings"
:
"Admin Einstellungen"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Erweiterte Parameter"
,
"Advanced Params"
:
"Erweiterte Parameter"
,
"all"
:
"Alle"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Dokumentenmapping exportieren"
,
"Export Models"
:
"Modelle exportieren"
,
"Export Prompts"
:
"Prompts exportieren"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"API Key erstellen fehlgeschlagen"
,
"Failed to read clipboard contents"
:
"Fehler beim Lesen des Zwischenablageninhalts"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Dokumentenmapping importieren"
,
"Import Models"
:
"Modelle importieren"
,
"Import Prompts"
:
"Prompts importieren"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Füge das `--api`-Flag hinzu, wenn du stable-diffusion-webui nutzt"
,
"Info"
:
"Info"
,
"Input commands"
:
"Eingabebefehle"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Anzahl der Suchergebnisse"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Gesucht {{count}} sites_one"
,
"Searched {{count}} sites_other"
:
"Gesucht {{count}} sites_other"
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"to chat input."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Heute"
,
"Toggle settings"
:
"Einstellungen umschalten"
,
"Toggle sidebar"
:
"Seitenleiste umschalten"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Probleme beim Zugriff auf Ollama?"
,
...
...
src/lib/i18n/locales/dg-DG/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Admin Panel"
,
"Admin Settings"
:
"Admin Settings"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Advanced Parameters"
,
"Advanced Params"
:
""
,
"all"
:
"all"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Export Mappings of Dogos"
,
"Export Models"
:
""
,
"Export Prompts"
:
"Export Promptos"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
""
,
"Failed to read clipboard contents"
:
"Failed to read clipboard borks"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Import Doge Mapping"
,
"Import Models"
:
""
,
"Import Prompts"
:
"Import Promptos"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Include `--api` flag when running stable-diffusion-webui"
,
"Info"
:
""
,
"Input commands"
:
"Input commands"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
""
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
""
,
"Searched {{count}} sites_other"
:
""
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"to chat input. Very chat."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
""
,
"Toggle settings"
:
"Toggle settings much toggle"
,
"Toggle sidebar"
:
"Toggle sidebar much toggle"
,
"Tools"
:
""
,
"Top K"
:
"Top K very top"
,
"Top P"
:
"Top P very top"
,
"Trouble accessing Ollama?"
:
"Trouble accessing Ollama? Much trouble?"
,
...
...
src/lib/i18n/locales/en-GB/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
""
,
"Admin Settings"
:
""
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
""
,
"Advanced Params"
:
""
,
"all"
:
""
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
""
,
"Export Models"
:
""
,
"Export Prompts"
:
""
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
""
,
"Failed to read clipboard contents"
:
""
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
""
,
"Import Models"
:
""
,
"Import Prompts"
:
""
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
""
,
"Info"
:
""
,
"Input commands"
:
""
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
""
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
""
,
"Searched {{count}} sites_other"
:
""
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
""
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
""
,
"Toggle settings"
:
""
,
"Toggle sidebar"
:
""
,
"Tools"
:
""
,
"Top K"
:
""
,
"Top P"
:
""
,
"Trouble accessing Ollama?"
:
""
,
...
...
src/lib/i18n/locales/en-US/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
""
,
"Admin Settings"
:
""
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
""
,
"Advanced Params"
:
""
,
"all"
:
""
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
""
,
"Export Models"
:
""
,
"Export Prompts"
:
""
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
""
,
"Failed to read clipboard contents"
:
""
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
""
,
"Import Models"
:
""
,
"Import Prompts"
:
""
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
""
,
"Info"
:
""
,
"Input commands"
:
""
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
""
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
""
,
"Searched {{count}} sites_other"
:
""
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
""
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
""
,
"Toggle settings"
:
""
,
"Toggle sidebar"
:
""
,
"Tools"
:
""
,
"Top K"
:
""
,
"Top P"
:
""
,
"Trouble accessing Ollama?"
:
""
,
...
...
src/lib/i18n/locales/es-ES/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Panel de Administración"
,
"Admin Settings"
:
"Configuración de Administrador"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Parámetros Avanzados"
,
"Advanced Params"
:
"Parámetros avanzados"
,
"all"
:
"todo"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Exportar el mapeo de documentos"
,
"Export Models"
:
"Modelos de exportación"
,
"Export Prompts"
:
"Exportar Prompts"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"No se pudo crear la clave API."
,
"Failed to read clipboard contents"
:
"No se pudo leer el contenido del portapapeles"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Importar Mapeo de Documentos"
,
"Import Models"
:
"Importar modelos"
,
"Import Prompts"
:
"Importar Prompts"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Incluir el indicador `--api` al ejecutar stable-diffusion-webui"
,
"Info"
:
"Información"
,
"Input commands"
:
"Ingresar comandos"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Recuento de resultados de búsqueda"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Buscado {{count}} sites_one"
,
"Searched {{count}} sites_many"
:
"Buscado {{count}} sites_many"
,
"Searched {{count}} sites_other"
:
"Buscó {{count}} sites_other"
,
...
...
@@ -511,9 +515,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"a la entrada del chat."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Hoy"
,
"Toggle settings"
:
"Alternar configuración"
,
"Toggle sidebar"
:
"Alternar barra lateral"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"¿Problemas para acceder a Ollama?"
,
...
...
src/lib/i18n/locales/fa-IR/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"پنل مدیریت"
,
"Admin Settings"
:
"تنظیمات مدیریت"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"پارامترهای پیشرفته"
,
"Advanced Params"
:
"پارام های پیشرفته"
,
"all"
:
"همه"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"اکسپورت از نگاشت اسناد"
,
"Export Models"
:
"مدل های صادرات"
,
"Export Prompts"
:
"اکسپورت از پرامپت
\u
200cها"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"ایجاد کلید API با خطا مواجه شد."
,
"Failed to read clipboard contents"
:
"خواندن محتوای کلیپ بورد ناموفق بود"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"ایمپورت نگاشت اسناد"
,
"Import Models"
:
"واردات مدلها"
,
"Import Prompts"
:
"ایمپورت پرامپت
\u
200cها"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"فلگ `--api` را هنکام اجرای stable-diffusion-webui استفاده کنید."
,
"Info"
:
"اطلاعات"
,
"Input commands"
:
"ورودی دستورات"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"تعداد نتایج جستجو"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"جستجو {{count}} sites_one"
,
"Searched {{count}} sites_other"
:
"جستجو {{count}} sites_other"
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"در ورودی گپ."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"امروز"
,
"Toggle settings"
:
"نمایش/عدم نمایش تنظیمات"
,
"Toggle sidebar"
:
"نمایش/عدم نمایش نوار کناری"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"در دسترسی به اولاما مشکل دارید؟"
,
...
...
src/lib/i18n/locales/fi-FI/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Hallintapaneeli"
,
"Admin Settings"
:
"Hallinta-asetukset"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Edistyneet parametrit"
,
"Advanced Params"
:
"Edistyneet parametrit"
,
"all"
:
"kaikki"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Vie asiakirjakartoitus"
,
"Export Models"
:
"Vie malleja"
,
"Export Prompts"
:
"Vie kehotteet"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"API-avaimen luonti epäonnistui."
,
"Failed to read clipboard contents"
:
"Leikepöydän sisällön lukeminen epäonnistui"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Tuo asiakirjakartoitus"
,
"Import Models"
:
"Mallien tuominen"
,
"Import Prompts"
:
"Tuo kehotteita"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Sisällytä `--api`-parametri suorittaessasi stable-diffusion-webui"
,
"Info"
:
"Info"
,
"Input commands"
:
"Syötä komennot"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Hakutulosten määrä"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Haettu {{count}} sites_one"
,
"Searched {{count}} sites_other"
:
"Haku {{count}} sites_other"
,
"Searching \"{{searchQuery}}\""
:
""
,
...
...
@@ -510,9 +514,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"keskustelusyötteeseen."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Tänään"
,
"Toggle settings"
:
"Kytke asetukset"
,
"Toggle sidebar"
:
"Kytke sivupalkki"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Ongelmia Ollama-yhteydessä?"
,
...
...
src/lib/i18n/locales/fr-CA/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Panneau d'administration"
,
"Admin Settings"
:
"Paramètres d'administration"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Paramètres avancés"
,
"Advanced Params"
:
"Params avancés"
,
"all"
:
"tous"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Exporter le mappage des documents"
,
"Export Models"
:
"Modèles d’exportation"
,
"Export Prompts"
:
"Exporter les prompts"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"Impossible de créer la clé API."
,
"Failed to read clipboard contents"
:
"Échec de la lecture du contenu du presse-papiers"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Importer le mappage des documents"
,
"Import Models"
:
"Importer des modèles"
,
"Import Prompts"
:
"Importer les prompts"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Inclure l'indicateur `--api` lors de l'exécution de stable-diffusion-webui"
,
"Info"
:
"L’info"
,
"Input commands"
:
"Entrez des commandes d'entrée"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Nombre de résultats de la recherche"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Recherche dans {{count}} sites_one"
,
"Searched {{count}} sites_many"
:
"Recherche dans {{count}} sites_many"
,
"Searched {{count}} sites_other"
:
"Recherche dans {{count}} sites_other"
,
...
...
@@ -511,9 +515,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"à l'entrée du chat."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Aujourd'hui"
,
"Toggle settings"
:
"Basculer les paramètres"
,
"Toggle sidebar"
:
"Basculer la barre latérale"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Des problèmes pour accéder à Ollama ?"
,
...
...
@@ -527,7 +533,7 @@
"Update and Copy Link"
:
"Mettre à jour et copier le lien"
,
"Update password"
:
"Mettre à jour le mot de passe"
,
"Upload a GGUF model"
:
"Téléverser un modèle GGUF"
,
"Upload Files"
:
"Télé
charg
er des fichiers"
,
"Upload Files"
:
"Télé
vers
er des fichiers"
,
"Upload Pipeline"
:
""
,
"Upload Progress"
:
"Progression du Téléversement"
,
"URL Mode"
:
"Mode URL"
,
...
...
src/lib/i18n/locales/fr-FR/translation.json
View file @
c41b33c9
...
...
@@ -33,6 +33,7 @@
"Admin"
:
""
,
"Admin Panel"
:
"Panneau d'Administration"
,
"Admin Settings"
:
"Paramètres d'Administration"
,
"Admins have access to all tools at all times; users need tools assigned per model in the workspace."
:
""
,
"Advanced Parameters"
:
"Paramètres Avancés"
,
"Advanced Params"
:
"Params Avancés"
,
"all"
:
"tous"
,
...
...
@@ -220,6 +221,7 @@
"Export Documents Mapping"
:
"Exporter la Correspondance des Documents"
,
"Export Models"
:
"Exporter les Modèles"
,
"Export Prompts"
:
"Exporter les Prompts"
,
"Export Tools"
:
""
,
"External Models"
:
""
,
"Failed to create API Key."
:
"Échec de la création de la clé d'API."
,
"Failed to read clipboard contents"
:
"Échec de la lecture du contenu du presse-papiers"
,
...
...
@@ -257,6 +259,7 @@
"Import Documents Mapping"
:
"Importer la Correspondance des Documents"
,
"Import Models"
:
"Importer des Modèles"
,
"Import Prompts"
:
"Importer des Prompts"
,
"Import Tools"
:
""
,
"Include `--api` flag when running stable-diffusion-webui"
:
"Inclure le drapeau `--api` lors de l'exécution de stable-diffusion-webui"
,
"Info"
:
"Info"
,
"Input commands"
:
"Entrez les commandes d'entrée"
,
...
...
@@ -420,6 +423,7 @@
"Search Query Generation Prompt"
:
""
,
"Search Query Generation Prompt Length Threshold"
:
""
,
"Search Result Count"
:
"Nombre de résultats de recherche"
,
"Search Tools"
:
""
,
"Searched {{count}} sites_one"
:
"Recherché {{count}} sites_one"
,
"Searched {{count}} sites_many"
:
"Recherché {{count}} sites_many"
,
"Searched {{count}} sites_other"
:
"Recherché {{count}} sites_other"
,
...
...
@@ -511,9 +515,11 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel."
:
""
,
"To add documents here, upload them to the \"Documents\" workspace first."
:
""
,
"to chat input."
:
"à l'entrée du chat."
,
"To select toolkits here, add them to the \"Tools\" workspace first."
:
""
,
"Today"
:
"Aujourd'hui"
,
"Toggle settings"
:
"Basculer les paramètres"
,
"Toggle sidebar"
:
"Basculer la barre latérale"
,
"Tools"
:
""
,
"Top K"
:
"Top K"
,
"Top P"
:
"Top P"
,
"Trouble accessing Ollama?"
:
"Problèmes d'accès à Ollama ?"
,
...
...
@@ -527,7 +533,7 @@
"Update and Copy Link"
:
"Mettre à Jour et Copier le Lien"
,
"Update password"
:
"Mettre à Jour le Mot de Passe"
,
"Upload a GGUF model"
:
"Téléverser un modèle GGUF"
,
"Upload Files"
:
"Télé
charg
er des fichiers"
,
"Upload Files"
:
"Télé
vers
er des fichiers"
,
"Upload Pipeline"
:
""
,
"Upload Progress"
:
"Progression du Téléversement"
,
"URL Mode"
:
"Mode URL"
,
...
...
Prev
1
2
3
4
5
Next
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