From 551b03ff90bddaa2bbdac49d76d2bab61367e895 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sun, 25 Oct 2026 15:02:00 -0400 Subject: [PATCH 01/98] feat: rename a chat from the menu next to its title (#33177) --- src/lib/components/chat/Navbar.svelte | 76 +++++++++++++++++-- src/lib/components/layout/Navbar/Menu.svelte | 17 +++++ .../components/layout/Sidebar/ChatItem.svelte | 2 +- 3 files changed, 88 insertions(+), 7 deletions(-) diff --git a/src/lib/components/chat/Navbar.svelte b/src/lib/components/chat/Navbar.svelte index fb7540f94a..67b54148d3 100644 --- a/src/lib/components/chat/Navbar.svelte +++ b/src/lib/components/chat/Navbar.svelte @@ -1,5 +1,5 @@ @@ -122,11 +164,32 @@ > {#if chat?.id}
-

- {title || chat?.chat?.title || $i18n.t('New Chat')} -

+ {#if confirmEdit} + { + if (e.isComposing || e.keyCode === 229) return; + + if (e.key === 'Enter') { + e.preventDefault(); + editChatTitle(); + } else if (e.key === 'Escape') { + e.preventDefault(); + confirmEdit = false; + } + }} + on:blur={editChatTitle} + /> + {:else} +

+ {title || chat?.chat?.title || $i18n.t('New Chat')} +

+ {/if} {#if shareEnabled && chat && (chat.id || $temporaryChatEnabled) && (scrollToTop || ($artifactContents ?? []).length > 0 || (!readOnly && !$temporaryChatEnabled) || $user?.role === 'admin' || ($user?.permissions?.chat?.export ?? true))} { showShareChatModal = !showShareChatModal; }} + {renameHandler} archiveChatHandler={() => { archiveChatHandler(chat.id); }} diff --git a/src/lib/components/layout/Navbar/Menu.svelte b/src/lib/components/layout/Navbar/Menu.svelte index 76cb6bac11..186ecf03fd 100644 --- a/src/lib/components/layout/Navbar/Menu.svelte +++ b/src/lib/components/layout/Navbar/Menu.svelte @@ -37,6 +37,7 @@ import GarbageBin from '$lib/components/icons/GarbageBin.svelte'; import Messages from '$lib/components/chat/Messages.svelte'; import Download from '$lib/components/icons/Download.svelte'; + import EditPencilIcon from '$lib/components/layout/Sidebar/icons/EditPencil.svelte'; const i18n = getContext('i18n'); @@ -44,6 +45,7 @@ export let readOnly: boolean = false; export let shareHandler: Function; + export let renameHandler: Function; export let moveChatHandler: Function; export let archiveChatHandler: Function; @@ -464,7 +466,22 @@
{$i18n.t('PDF document (.pdf)')}
+ {/if} + {#if !readOnly && !$temporaryChatEnabled && chat?.id} + + {/if} + + {#if $user?.role === 'admin' || ($user.permissions?.chat?.export ?? true)}
{/if} + {#if suggestions.length} +
+ {#each suggestions as suggestion, index}{/each} +
+ {/if} {#if panel === 'types'}
Date: Sun, 25 Oct 2026 17:29:23 -0400 Subject: [PATCH 05/98] feat: unassign a keyboard shortcut from Settings > Keyboard (#33185) --- src/lib/components/chat/Settings/Shortcuts.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/components/chat/Settings/Shortcuts.svelte b/src/lib/components/chat/Settings/Shortcuts.svelte index 5e8f1932e8..573bd22b65 100644 --- a/src/lib/components/chat/Settings/Shortcuts.svelte +++ b/src/lib/components/chat/Settings/Shortcuts.svelte @@ -17,6 +17,7 @@ import { settings, user } from '$lib/stores'; import { canManageChats, canUseTemporaryChats } from '$lib/utils/settings-access'; import Switch from '$lib/components/common/Switch.svelte'; + import XMark from '$lib/components/icons/XMark.svelte'; import ShortcutItem from '../ShortcutItem.svelte'; type ShortcutEntry = { @@ -243,6 +244,15 @@ > {formatChord(chord)} + {:else} +
+
+
+ {#if session.user_name}{session.user_name}{/if} + {#if session.started_at}{dayjs + .unix(session.started_at) + .locale($i18n.language) + .format('MMM D, YYYY · HH:mm')}{/if} + {#if session.kind === 'subagent'}{$i18n.t('Sub-agent')}{/if} +
+
+
+
{$i18n.t('Prompts')}
+
{session.prompts}
+
+
+
{$i18n.t('Responses')}
+
{session.responses}
+
+ {#if session.recorded_responses}
+
{$i18n.t('Tokens')}
+
+ {formatter.format(session.tokens)}{session.complete_responses < session.responses + ? '*' + : ''} +
+
{/if} + {#if session.cache_read != null}
+
{$i18n.t('Cache read')}
+
+ {formatter.format(session.cache_read)} +
+
{/if} + {#if session.cache_write != null}
+
{$i18n.t('Cache write')}
+
+ {formatter.format(session.cache_write)} +
+
{/if} +
+
+ {#each [{ id: 'tokens', label: $i18n.t('Tokens') }, { id: 'timeline', label: $i18n.t('Timeline') }] as option} + + {/each} +
+ {#if visualization === 'tokens'} + {#if chart?.usage.some((bar) => bar.recorded > 0)} + + {:else if !loading && !error} +

+ {$i18n.t('Token usage not recorded')} +

+ {/if} + {:else if !loading && !error} + + {/if} +
+ {#each [{ id: 'all', label: $i18n.t('All') }, { id: 'tools', label: $i18n.t('Tools') }, { id: 'errors', label: $i18n.t('Errors') }] as filter} + + {/each} +
+
+ {#if loading}
+ +
+ {:else if error} + {:else} + {#each rows as row (`${row.item.message_id}:${row.item.index}`)} + {@const item = row.item} + {#if item.index < 0} + + {:else} +
+
+ + {label(item)} + {#if status(item)}{status(item)}{/if} + + {#if item.duration_seconds !== null}{duration(item.duration_seconds)}{/if} +
+
+ {/if} + {:else}

+ {$i18n.t('No saved items match this filter.')} +

{/each} + {/if} +
+
+
+ + {$i18n.t('Page')} {page + 1} + +
+ diff --git a/src/lib/components/admin/Analytics/SessionExplorer.svelte b/src/lib/components/admin/Analytics/SessionExplorer.svelte new file mode 100644 index 0000000000..4f5696ce95 --- /dev/null +++ b/src/lib/components/admin/Analytics/SessionExplorer.svelte @@ -0,0 +1,412 @@ + + +
+
+ {#if overview && overviewKey === scopeKey && !error} (tokenRange = index)} + />{/if} +
+ +
+ +
+ + +
+ + + +
+
+
+
+
+
+ {#if loading} +
+ +
+ {:else if error} + + {:else if !items.length} +
{$i18n.t('No sessions match these filters.')}
+ {:else} +
+ + + + {#each columns as column} + + {/each} + + + + {#each items as session (session.id)} + + + + + + + + + + {/each} + +
+ +
+ + {session.user_name || '-'}{session.last_active + ? dayjs + .unix(session.last_active) + .locale($i18n.language) + .format('MMM D, HH:mm') + : $i18n.t('Not logged')}{session.responses.toLocaleString($i18n.language)}
+ + {session.recorded_responses + ? formatter.format(session.tokens) + : '-'}{#if session.recorded_responses > 0 && session.complete_responses < session.responses}*{/if} +
{session.errors}{span(session.span_seconds)}
+
+ {/if} +
+
+ {$i18n.t('- usage not recorded · * partial usage')} +
+ {$i18n.t('Page')} {page + 1} +
+
+
+ {#if selected} + +
+ +
+
+ {/if} +
diff --git a/src/lib/components/admin/Analytics/SessionSignals.svelte b/src/lib/components/admin/Analytics/SessionSignals.svelte new file mode 100644 index 0000000000..33eacfee07 --- /dev/null +++ b/src/lib/components/admin/Analytics/SessionSignals.svelte @@ -0,0 +1,94 @@ + + +
+
+ {#each [{ label: $i18n.t('Sessions'), value: number.format(overview.sessions) }, { label: $i18n.t('Prompts'), value: number.format(overview.prompts) }, { label: $i18n.t('Recorded tokens'), value: overview.recorded_responses ? number.format(overview.tokens) + (overview.complete_responses < overview.responses ? '*' : '') : '-' }, { label: $i18n.t('Response errors'), value: overview.responses ? `${((overview.errors / overview.responses) * 100).toFixed(1)}%` : '-' }] as stat} +
+
{stat.label}
+
{stat.value}
+
+ {/each} +
+ {#if counts.some((count) => count > 0)} +
+
+ {$i18n.t('Sessions by recorded token usage')} + {#if selectedRange !== null}{:else}{$i18n.t('Sessions')}{/if} +
+
+ {#each [ceiling, ceiling * 0.75, ceiling / 2, ceiling * 0.25, 0] as count} +
+ {number.format(count)} +
+ {/each} +
+ {#each SESSION_TOKEN_RANGES as range, index} + + {/each} +
+
+
+ {#each SESSION_TOKEN_RANGES as range}{range.label.replace('–<', '–')}{/each} +
+

+ {$i18n.t('Select a range to filter sessions. Partial usage is included.')} + {#if overview.unrecorded_sessions} + {number.format(overview.unrecorded_sessions)} + {$i18n.t( + overview.unrecorded_sessions === 1 + ? 'session without recorded usage' + : 'sessions without recorded usage' + )}{/if} +

+
+ {/if} +
diff --git a/src/lib/components/admin/Analytics/SessionUsageChart.svelte b/src/lib/components/admin/Analytics/SessionUsageChart.svelte new file mode 100644 index 0000000000..4017345a34 --- /dev/null +++ b/src/lib/components/admin/Analytics/SessionUsageChart.svelte @@ -0,0 +1,172 @@ + + +{#if bars.length} +
+
+ {$i18n.t('Recorded tokens by response')} + + {$i18n.t('Input')} + {$i18n.t('Output')} + {#if usage.some((bar) => bar.errors > 0)}{$i18n.t( + 'Response errors' + )}{/if} + +
+
+ {#each [ceiling, ceiling * 0.75, ceiling / 2, ceiling * 0.25, 0] as value} +
+ {formatter.format(value)} + +
+ {/each} +
+ {#each bars as bar, index (bar.first)} + + {/each} +
+
+
+ {bars[0].first}{$i18n.t('Response order')}{bars[bars.length - 1].last} +
+ {#if current} +
+ {range(current)} + {$i18n.t('Input')} {amount(current.input_tokens)}{$i18n.t('Output')} {amount(current.output_tokens)} + {#if partial(current)}{$i18n.t('Partial usage')} · {current.complete}/{current.last - current.first + 1} + {$i18n.t('complete')}{/if} + {#if current.errors}{current.errors} {$i18n.t('Response errors')}{/if} +
+ {/if} +

+ {$i18n.t( + 'Select a bar to jump to its saved responses. Grouped bars sum consecutive responses.' + )} + {$i18n.t('- usage not recorded')} +

+
+{/if} diff --git a/src/lib/components/admin/Analytics/SessionWaterfall.svelte b/src/lib/components/admin/Analytics/SessionWaterfall.svelte new file mode 100644 index 0000000000..b3c1cea463 --- /dev/null +++ b/src/lib/components/admin/Analytics/SessionWaterfall.svelte @@ -0,0 +1,140 @@ + + +
+
+ {sequence + ? $i18n.t('Recorded sequence') + : waterfall + ? $i18n.t('Execution timeline') + : $i18n.t('Recorded duration')} + {$i18n.t('Page')} {page + 1} +
+ {#if bars.length} + + +
+ + {#each lanes as lane, laneIndex (laneIndex)} + {@const item = lane.entries[0].item} +
+ {lane.name}{!sequence && item.status === 'failed' ? ` · ${status(item)}` : ''} + + {sequence ? lane.entries.length : duration(elapsed(item))} +
+ {/each} +
+

+ {sequence + ? $i18n.t('Saved order only; spacing does not represent elapsed time.') + : waterfall + ? $i18n.t('Time from first timed operation on this page.') + : $i18n.t('Start/end times not recorded; bars compare durations only.')} + {#if !sequence && bars.length < items.length}{items.length - bars.length} + {waterfall + ? $i18n.t('items without recorded start/end times') + : $i18n.t('items without recorded durations')}{/if} +

+ {:else} +

+ {$i18n.t('No saved items match this filter.')} +

+ {/if} +
diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index c70f8fc7db..e9c221f1ea 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -1,5 +1,6 @@ { "-1 for no limit, or a positive integer for a specific limit": "", + "- usage not recorded · * partial usage": "- usage not recorded · * partial usage", "(latest)": "", "(leave blank for to use commercial endpoint)": "", "[Last] dddd [at] h:mm A": "", @@ -70,6 +71,7 @@ "{{user}}'s Chats": "", "{{webUIName}} Backend Required": "", "* (all domains)": "", + "* Partial token usage.": "* Partial token usage.", "*Prompt node ID(s) are required for image generation": "", "*required": "", "1 file": "", @@ -116,8 +118,10 @@ "Actions for {{filename}}": "Actions for {{filename}}", "Activate this command by typing \"/{{COMMAND}}\" to chat input.": "", "Active": "", + "active sessions": "active sessions", "Active Users": "", "Activity": "", + "Activity over time": "Activity over time", "Add": "", "Add a model ID": "", "Add a preference, fact, or instruction about you": "", @@ -241,6 +245,7 @@ "Amazing": "", "an assistant": "", "Analytics": "", + "Analytics view": "Analytics view", "Analyzed": "", "Analyzing...": "", "and": "", @@ -361,6 +366,7 @@ "Azure OpenAI": "", "Back": "", "Back to files": "", + "Back to sessions": "Back to sessions", "Back to sign in": "", "Background Image": "", "Background image must be at most 25 megapixels.": "", @@ -406,9 +412,11 @@ "Call feature is not supported when using Web STT engine": "", "Call in progress": "", "Call mode": "", + "Calls": "Calls", "Camera": "", "Cancel": "", "Cancel download of {{model}}": "", + "Cancelled": "Cancelled", "Cannot create an empty note.": "", "Cannot delete the production version": "", "Capture": "", @@ -516,6 +524,7 @@ "Close comment": "", "Close Configure Connection Modal": "", "Close embed": "", + "Close execution details": "Close execution details", "Close feedback": "", "Close modal": "", "Close Modal": "", @@ -528,6 +537,7 @@ "Code Editor": "", "Code execution": "", "Code formatted successfully": "", + "Code interpreter": "Code interpreter", "Code Interpreter": "", "Codes match": "", "Collaboration channel where people join as members": "", @@ -568,6 +578,7 @@ "Comparing with knowledge base...": "", "Comparison options": "", "Comparison reached its time limit; some changes are grouped together.": "", + "Completed": "Completed", "Completions": "", "Compress uploaded images before sending or storage.": "", "Computing checksums ({{count}} files)_one": "", @@ -702,6 +713,7 @@ "Current": "", "Current branch": "", "Current Model": "", + "Current page": "Current page", "Current streak": "", "Custom": "", "Custom animation": "", @@ -726,6 +738,7 @@ "Date Modified": "", "Date range": "", "Day": "", + "day buckets": "day buckets", "DD/MM/YYYY": "", "December": "", "Decline": "", @@ -1119,6 +1132,7 @@ "Enter Your Username": "", "Enterprise licenses also include dedicated support, customization options, and more, at a fraction of the cost of building and maintaining this stack internally.": "", "Enterprise licensing": "", + "Entire filtered range": "Entire filtered range", "Entra ID": "", "Environment Variables": "", "Ephemeral": "", @@ -1134,6 +1148,7 @@ "Error uploading file: {{error}}": "", "Error: A model with the ID '{{modelId}}' already exists. Please select a different ID to proceed.": "", "Error: Model ID cannot be empty. Please enter a valid ID to proceed.": "", + "Errors": "Errors", "Evaluations": "", "Event": "", "Event created": "", @@ -1160,6 +1175,8 @@ "Exclude": "", "Execute code for analysis": "", "Executing {{NAME}}...": "", + "Execution item details": "Execution item details", + "Execution trace": "Execution trace", "Expand": "", "Expand {{name}}": "", "Expand input": "", @@ -1191,6 +1208,7 @@ "Extract action items from this note.": "", "Extracted text lines": "", "Extracting text and comparing…": "", + "failed": "failed", "Failed": "", "Failed to add file.": "", "Failed to add members": "", @@ -1261,6 +1279,7 @@ "Failed to upload avatar.": "", "Failed to upload background image.": "", "Failed to upload file.": "", + "Failed tool calls": "Failed tool calls", "Fast": "", "Features Permissions": "", "February": "", @@ -1302,6 +1321,7 @@ "Filter is now globally enabled": "", "Filters": "", "Fingerprint spoofing detected: Unable to use initials as avatar. Defaulting to default profile image.": "", + "First to last saved message, including idle time": "First to last saved message, including idle time", "Focus Chat Input": "", "Folder": "", "Folder Background Image": "", @@ -1418,6 +1438,7 @@ "Hide from Sidebar": "", "Hide Hidden Files": "", "Hide Model": "", + "Hide sub-agents": "Hide sub-agents", "Hide whitespace": "", "High": "", "History": "", @@ -1470,6 +1491,7 @@ "Imported automations successfully": "", "Imported notes successfully": "", "Importing...": "", + "In progress": "In progress", "Inactive": "", "Include": "", "Include the current directory in tool instructions.": "", @@ -1552,6 +1574,7 @@ "Last 30 days": "", "Last 7 days": "", "Last 90 days": "", + "Last active": "Last active", "Last Active": "", "Last Modified": "", "Last reply": "", @@ -1610,7 +1633,9 @@ "Loading more results": "", "Loading policy...": "", "Loading release notes...": "", + "Loading sessions": "Loading sessions", "Loading tools...": "", + "Loading trace": "Loading trace", "Loading...": "", "local": "", "Local": "", @@ -1619,6 +1644,7 @@ "Location access not allowed": "", "Location unavailable": "", "Longest active chat": "", + "Longest span": "Longest span", "Longest streak": "", "Lost": "", "Low": "", @@ -1674,6 +1700,7 @@ "Message rating should be enabled to use this feature": "", "Message share": "", "Message text...": "", + "Message time, then saved output order. Includes branches. Dashed lines mean timing was not logged.": "Message time, then saved output order. Includes branches. Dashed lines mean timing was not logged.", "messages": "", "Messages": "", "Messages are end-to-end encrypted and aren’t saved.": "", @@ -1752,6 +1779,9 @@ "More Concise": "", "More options": "", "More Options": "", + "Most response errors": "Most response errors", + "Most responses": "Most responses", + "Most tokens": "Most tokens", "Move": "", "Move to top level": "Move to top level", "Moved {{name}}": "", @@ -1799,6 +1829,8 @@ "Next month": "", "Next page": "", "Next run": "", + "Next sessions": "Next sessions", + "Next trace items": "Next trace items", "Next version": "", "No": "", "No access grants. Private to you.": "", @@ -1854,6 +1886,7 @@ "No matching scopes.": "", "No model data": "", "No model IDs": "", + "No model recorded": "No model recorded", "No model usage found": "", "No models accessible": "", "No models available": "", @@ -1874,9 +1907,12 @@ "No results": "", "No results found": "", "No runs yet": "", + "No saved items match this filter.": "No saved items match this filter.", + "No saved payload": "No saved payload", "No scopes requested.": "", "No search query generated": "", "No servers detected": "", + "No sessions match these filters.": "No sessions match these filters.", "No skills found": "", "No source available": "", "No sources found": "", @@ -1885,6 +1921,7 @@ "No terminal connections configured.": "", "No terminal servers available": "No terminal servers available", "No text differences": "", + "No tool calls saved for this session.": "No tool calls saved for this session.", "No tool server connections configured.": "", "No tools accessible": "", "No tools found": "", @@ -1899,6 +1936,8 @@ "Not configured": "", "Not factually correct": "", "Not helpful": "", + "Not logged": "Not logged", + "Not recorded": "Not recorded", "Not Registered": "", "Not scheduled": "", "Note": "", @@ -1929,6 +1968,7 @@ "Omit": "", "On": "", "Once": "", + "One session per chat. Counts cover the selected date range; span includes idle time.": "One session per chat. Counts cover the selected date range; span includes idle time.", "Only active during Voice Mode.": "", "Only active when \"Paste Large Text as File\" setting is toggled on.": "", "Only active when a tool call is waiting for approval.": "", @@ -1952,6 +1992,8 @@ "Oops! You're using an unsupported method (frontend only). Please serve the WebUI from the backend.": "", "Open": "", "Open automation": "", + "Open chat": "Open chat", + "Open chat for full content": "Open chat for full content", "Open create menu": "", "Open file": "", "Open Folder": "", @@ -2091,6 +2133,7 @@ "Preview failed": "", "Preview gesture": "", "Preview not available": "", + "Preview shortened. Open the chat for full content.": "Preview shortened. Open the chat for full content.", "Previous": "", "Previous 30 days": "", "Previous 7 days": "", @@ -2098,6 +2141,8 @@ "Previous message": "", "Previous month": "", "Previous page": "", + "Previous sessions": "Previous sessions", + "Previous trace items": "Previous trace items", "Previous version": "", "Private": "", "Private conversation between selected users": "", @@ -2147,17 +2192,20 @@ "Realtime": "", "Realtime Voice": "", "Reason": "", + "Reasoning": "Reasoning", "Reasoning text...": "", "Rebuild knowledge file, knowledge search, and memory vectors using the current embedding model.": "", "Receives matching events across the instance, including system/config events and events associated with any user.": "", "Receives matching events that are not associated with a user.": "", "Receives matching user-associated events only when the actor, user subject, or user data matches these users or current group members. System/config events are not sent.": "", + "Recent activity": "Recent activity", "Recently Used": "", "Recommended": "", "Reconnect": "", "Reconnected": "", "Record": "", "Record voice": "", + "Recorded duration · logarithmic scale": "Recorded duration · logarithmic scale", "Recover your authenticator": "", "Recovery code": "", "Redirecting you to Open WebUI Community": "", @@ -2236,8 +2284,13 @@ "Resolved": "", "Response": "", "Response complete": "", + "response errors": "response errors", + "Response duration": "Response duration", + "Response errors": "Response errors", "Response notifications cannot be activated as the website permissions have been denied. Please visit your browser settings to grant the necessary access.": "", "Responses": "", + "responses with input and output tokens": "responses with input and output tokens", + "responses with recorded usage": "responses with recorded usage", "Restart": "", "Restricted": "", "Result": "", @@ -2281,6 +2334,8 @@ "Save your changes before continuing?": "", "Save your recovery codes": "", "Saved": "", + "Saved execution sequence": "Saved execution sequence", + "Saved item": "Saved item", "Saving approves the updated app identity and selected scopes.": "Saving approves the updated app identity and selected scopes.", "Saving...": "", "Scan the QR code, then enter the six-digit code from your authenticator app.": "", @@ -2326,6 +2381,8 @@ "Search Prompts": "", "Search results": "", "Search scopes": "", + "Search sessions": "Search sessions", + "Search sessions, users or folders": "Search sessions, users or folders", "Search skills": "", "Search Skills": "", "Search the internet": "", @@ -2414,7 +2471,11 @@ "Service Account": "", "Services": "", "Session": "", + "Session details": "Session details", "Session expired. Please sign in again.": "", + "Session signals": "Session signals", + "Sessions": "Sessions", + "Sessions can be active in more than one bucket.": "Sessions can be active in more than one bucket.", "Set a local zoom level for the app interface.": "", "Set as default": "", "Set as Pinned Model": "", @@ -3641,7 +3702,9 @@ "Sonar Reasoning Pro": "", "Sort": "", "Sort by": "", + "Sort sessions": "Sort sessions", "Source": "", + "Span": "Span", "Speaking": "", "Specific users or groups": "", "Speech recognition error: {{error}}": "", @@ -3679,6 +3742,7 @@ "Streamable HTTP": "", "Strikethrough": "", "Su_day_of_week": "", + "Sub-agent": "Sub-agent", "Submit": "", "Submit answers": "", "Submit question": "", @@ -3841,10 +3905,14 @@ "Token activity": "", "Token counts are estimates and may not reflect actual API usage": "", "Token share": "", + "Token usage not recorded": "Token usage not recorded", "tokens": "", "Tokens": "", "Too verbose": "", "tool": "", + "Tool call": "Tool call", + "Tool calls": "Tool calls", + "tool calls with a saved final status": "tool calls with a saved final status", "Tool created successfully": "", "Tool deleted successfully": "", "Tool Description": "", @@ -3853,7 +3921,9 @@ "tool loops per sub-agent": "", "Tool Menu": "", "Tool Name": "", + "Tool outcomes": "Tool outcomes", "Tool Permissions": "", + "Tool result": "Tool result", "Tool Servers": "", "Tool updated successfully": "", "Tools": "", @@ -3862,10 +3932,13 @@ "Tools have a function calling system that allows arbitrary code execution.": "", "Tools Public Sharing": "", "Tools Sharing": "", + "Tools used in this session": "Tools used in this session", "Top": "", + "Top sessions": "Top sessions", "Total": "", "Total chats": "", "Total Tokens": "", + "Trace filter": "Trace filter", "Transformers": "", "Translation": "", "Translation key": "", @@ -3888,6 +3961,9 @@ "Ultra-fast": "", "Unable to copy link": "", "Unable to load analytics. Please try again.": "", + "Unable to load execution items.": "Unable to load execution items.", + "Unable to load session.": "Unable to load session.", + "Unable to load sessions.": "Unable to load sessions.", "Unable to load tools": "", "Unarchive": "", "Unarchive Chat": "", @@ -3911,6 +3987,7 @@ "Unloads {{FROM_NOW}}": "", "Unmute": "", "Unmute to continue": "", + "Unnamed tool": "Unnamed tool", "Unpin": "", "Unpin from Sidebar": "", "Unread": "", @@ -3923,6 +4000,7 @@ "Unsupported input format": "", "Untagged": "", "Untitled": "", + "Untitled chat": "Untitled chat", "Update": "", "Update All Models": "", "Update and Copy Link": "", @@ -4153,5 +4231,47 @@ "YouTube": "", "YouTube video player": "", "Zoom in": "", - "Zoom out": "" + "Zoom out": "", + "Recorded tokens": "Recorded tokens", + "p95 tool latency": "p95 tool latency", + "calls with recorded timing": "calls with recorded timing", + "rejected": "rejected", + "pending or unknown": "pending or unknown", + "Recorded duration": "Recorded duration", + "Saved message order, including branches. Copied history is excluded. Unknown timing is not estimated.": "Saved message order, including branches. Copied history is excluded. Unknown timing is not estimated.", + "Redacted preview. Open the chat for full content.": "Redacted preview. Open the chat for full content.", + "Close session details": "Close session details", + "Cache read": "Cache read", + "Cache write": "Cache write", + "Coverage": "Coverage", + "Session summary": "Session summary", + "Arguments": "Arguments", + "Rejected": "Rejected", + "Saved operation details": "Saved operation details", + "Recorded tokens by response": "Recorded tokens by response", + "Partial usage": "Partial usage", + "complete": "complete", + "Response order": "Response order", + "Select a bar to jump to its saved responses. Grouped bars sum consecutive responses.": "Select a bar to jump to its saved responses. Grouped bars sum consecutive responses.", + "- usage not recorded": "- usage not recorded", + "from first timed operation": "from first timed operation", + "Execution time from first timed operation": "Execution time from first timed operation", + "Sessions by recorded token usage": "Sessions by recorded token usage", + "All sessions": "All sessions", + "Select a range to filter sessions. Partial usage is included.": "Select a range to filter sessions. Partial usage is included.", + "sessions without recorded usage": "sessions without recorded usage", + "session without recorded usage": "session without recorded usage", + "Session options": "Session options", + "Execution timeline": "Execution timeline", + "Time from first timed operation on this page.": "Time from first timed operation on this page.", + "Start/end times not recorded; bars compare durations only.": "Start/end times not recorded; bars compare durations only.", + "items without recorded start/end times": "items without recorded start/end times", + "items without recorded durations": "items without recorded durations", + "Timing not recorded for this page.": "Timing not recorded for this page.", + "Session visualization": "Session visualization", + "Timeline": "Timeline", + "Recorded sequence": "Recorded sequence", + "Saved order": "Saved order", + "Saved order only; spacing does not represent elapsed time.": "Saved order only; spacing does not represent elapsed time.", + "Count": "Count" } From 706dd223c0aff184a4b69c1ce1c84750f59d56e0 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 26 Oct 2026 15:22:06 +0900 Subject: [PATCH 08/98] refac --- src/lib/components/admin/Analytics/SessionExplorer.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/components/admin/Analytics/SessionExplorer.svelte b/src/lib/components/admin/Analytics/SessionExplorer.svelte index 4f5696ce95..68b9e8b0c3 100644 --- a/src/lib/components/admin/Analytics/SessionExplorer.svelte +++ b/src/lib/components/admin/Analytics/SessionExplorer.svelte @@ -64,7 +64,7 @@ let detailPanel: HTMLElement; let selectedButton: HTMLElement | null = null; async function selectSession(session: Session, event: MouseEvent) { - selectedButton = event.currentTarget as HTMLElement; + selectedButton = (event.currentTarget as HTMLTableRowElement).querySelector('button'); selected = session; await tick(); detailPanel @@ -289,15 +289,16 @@ {#each items as session (session.id)} + selectSession(session, event)} + class="cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors" class:bg-gray-50={selected?.id === session.id} class:dark:bg-gray-850={selected?.id === session.id} > - {#each [{ kind: 'folder', label: 'Folders' }, { kind: 'channel', label: 'Channels' }] as group} - {#if scopes.some((item) => item.kind === group.kind)} + {#each locations as group} + {#if (kind === 'all' || kind === group.type) && scopes.some((item) => item.kind === group.kind)}
Date: Tue, 27 Oct 2026 08:41:51 +0900 Subject: [PATCH 26/98] refac --- backend/open_webui/tools/builtin.py | 27 ++++++++-- backend/open_webui/utils/middleware.py | 14 ++++- backend/open_webui/utils/terminals.py | 73 ++++++++++++++++++++++---- src/routes/+layout.svelte | 15 ++++-- 4 files changed, 109 insertions(+), 20 deletions(-) diff --git a/backend/open_webui/tools/builtin.py b/backend/open_webui/tools/builtin.py index 749e198127..72dd8422a7 100644 --- a/backend/open_webui/tools/builtin.py +++ b/backend/open_webui/tools/builtin.py @@ -69,6 +69,7 @@ from open_webui.utils.json_codec import JSONCodec from open_webui.utils.notifications import notify_target from open_webui.utils.sanitize import sanitize_code from open_webui.utils.skill_files import SkillFile, SkillFileOperation, skill_content_page, skill_overview +from open_webui.utils.terminals import upload_files_to_terminal log = logging.getLogger(__name__) @@ -375,6 +376,8 @@ async def generate_image( __event_emitter__: callable = None, __chat_id__: str = None, __message_id__: str = None, + __metadata__: dict = None, + __event_call__: callable = None, ) -> str: """ Generate an image based on a text prompt. @@ -382,7 +385,7 @@ async def generate_image( :param prompt: A detailed description of the image to generate :param size: Optional output size in WIDTHxHEIGHT pixels (e.g. "1536x1024"), supported by the configured image model. Omit to use the configured default. - :return: Confirmation that the image was generated, or an error message + :return: Image URLs and, when a terminal is selected, terminal_path for display_file or further processing. """ if __request__ is None: return JSONCodec.dumps({'error': 'Request context not available'}) @@ -401,6 +404,10 @@ async def generate_image( user=user, ) + await upload_files_to_terminal( + __request__, user, images, __metadata__ or {}, {'__event_call__': __event_call__} + ) + # Prepare file entries for the images image_files = [{'type': 'image', **img} for img in images] @@ -428,7 +435,10 @@ async def generate_image( return JSONCodec.dumps( { 'status': 'success', - 'message': 'The image has been successfully generated and is already visible to the user in the chat. You do not need to display or embed the image again - just acknowledge that it has been created.', + 'message': ( + 'The image is already visible in chat. Use terminal_path with terminal tools or ' + 'display_file when available to continue the requested task.' + ), 'images': images, }, ensure_ascii=False, @@ -449,6 +459,8 @@ async def edit_image( __event_emitter__: callable = None, __chat_id__: str = None, __message_id__: str = None, + __metadata__: dict = None, + __event_call__: callable = None, ) -> str: """ Transform one or more existing images according to a text prompt. @@ -458,7 +470,7 @@ async def edit_image( :param image_urls: Source image URLs to modify or use as composition inputs :param size: Optional output size in WIDTHxHEIGHT pixels (e.g. "1536x1024"), supported by the configured image model. Omit to use the configured default. - :return: Confirmation that the images were edited, or an error message + :return: Image URLs and, when a terminal is selected, terminal_path for display_file or further processing. """ if __request__ is None: return JSONCodec.dumps({'error': 'Request context not available'}) @@ -477,6 +489,10 @@ async def edit_image( user=user, ) + await upload_files_to_terminal( + __request__, user, images, __metadata__ or {}, {'__event_call__': __event_call__} + ) + # Prepare file entries for the images image_files = [{'type': 'image', **img} for img in images] @@ -504,7 +520,10 @@ async def edit_image( return JSONCodec.dumps( { 'status': 'success', - 'message': 'The edited image has been successfully generated and is already visible to the user in the chat. You do not need to display or embed the image again - just acknowledge that it has been created.', + 'message': ( + 'The edited image is already visible in chat. Use terminal_path with terminal tools or ' + 'display_file when available to continue the requested task.' + ), 'images': images, }, ensure_ascii=False, diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index c851bb6063..8a4e2ba902 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -151,6 +151,7 @@ from open_webui.utils.task import ( rag_template, tools_function_calling_generation_template, ) +from open_webui.utils.terminals import upload_files_to_terminal from open_webui.utils.tool_approval import complete_tool_call, pending_tool_calls from open_webui.utils.tool_search import apply_tool_search, resolve_tool_call from open_webui.utils.tools import ( @@ -1496,6 +1497,7 @@ async def chat_image_generation_handler(request: Request, form_data: dict, extra 'message_id': metadata.get('message_id', None), **({'channel_id': chat_id.removeprefix('channel:')} if is_channel_chat else {'chat_id': chat_id}), } + terminal_metadata = {**metadata, 'terminal_id': form_data.get('terminal_id')} if not is_saved_chat_id(chat_id): message_list = form_data.get('messages', []) @@ -1544,6 +1546,7 @@ async def chat_image_generation_handler(request: Request, form_data: dict, extra metadata=image_metadata, user=user, ) + await upload_files_to_terminal(request, user, images, terminal_metadata, extra_params) await __event_emitter__( { @@ -1567,7 +1570,10 @@ async def chat_image_generation_handler(request: Request, form_data: dict, extra } ) - system_message_content = 'The requested image has been edited and created and is now being shown to the user. Let them know that it has been generated.' + system_message_content = ( + 'The edited images are shown in chat. Use terminal_path with terminal tools or ' + f'display_file when available. Images: {JSONCodec.dumps(images)}' + ) except Exception as e: log.debug(e) @@ -1652,6 +1658,7 @@ async def chat_image_generation_handler(request: Request, form_data: dict, extra metadata=image_metadata, user=user, ) + await upload_files_to_terminal(request, user, images, terminal_metadata, extra_params) await __event_emitter__( { @@ -1675,7 +1682,10 @@ async def chat_image_generation_handler(request: Request, form_data: dict, extra } ) - system_message_content = 'The requested image has been created by the system successfully and is now being shown to the user. Let the user know that the image they requested has been generated and is now shown in the chat.' + system_message_content = ( + 'The generated images are shown in chat. Use terminal_path with terminal tools or ' + f'display_file when available. Images: {JSONCodec.dumps(images)}' + ) except Exception as e: log.debug(e) diff --git a/backend/open_webui/utils/terminals.py b/backend/open_webui/utils/terminals.py index 1bb2369629..af0970bccf 100644 --- a/backend/open_webui/utils/terminals.py +++ b/backend/open_webui/utils/terminals.py @@ -5,6 +5,7 @@ import hashlib import logging import ntpath import posixpath +from pathlib import Path from urllib.parse import quote from open_webui.env import ENABLE_TOOL_SERVERS @@ -129,9 +130,13 @@ def terminal_chat_uploads(connection: dict) -> str: return value if value in TERMINAL_CHAT_UPLOAD_MODES else 'default' -async def get_terminal_json(request, user, metadata: dict, path: str, extra_params: dict | None = None): - """Read from an admin terminal on the backend or a personal terminal in its browser.""" - if not ENABLE_TOOL_SERVERS: +async def get_terminal_json( + request, user, metadata: dict, path: str, extra_params: dict | None = None, *, file: dict | None = None +): + """Read JSON or upload a file through an admin terminal or a personal terminal's browser.""" + metadata = metadata or {} + terminal_id = metadata.get('terminal_id') + if not ENABLE_TOOL_SERVERS or not terminal_id: return None import aiohttp @@ -142,11 +147,6 @@ async def get_terminal_json(request, user, metadata: dict, path: str, extra_para from open_webui.utils.access_control import has_connection_access from open_webui.utils.tools import build_tool_server_headers - metadata = metadata or {} - terminal_id = metadata.get('terminal_id') - if not terminal_id: - return None - user_model = user if isinstance(user, UserModel) else UserModel(**user) connections = await Config.get('terminal_server.connections', []) or [] connection = next((item for item in connections if item.get('id') == terminal_id), None) @@ -179,29 +179,80 @@ async def get_terminal_json(request, user, metadata: dict, path: str, extra_para headers['X-Session-Id'] = metadata['chat_id'] if context_id: headers[TERMINAL_CONTEXT_HEADER] = context_id + body = None + if file: + from open_webui.models.files import Files + from open_webui.storage.provider import Storage + + source = await Files.get_file_by_id(file['id']) + if not source or source.user_id != user_model.id or not source.path: + return None + local_path = await asyncio.to_thread(Storage.get_file, source.path) + body = aiohttp.FormData() + body.add_field( + 'file', + await asyncio.to_thread(Path(local_path).read_bytes), + filename=file['name'], + content_type=(source.meta or {}).get('content_type') or 'application/octet-stream', + ) + headers = {key: value for key, value in headers.items() if key.lower() != 'content-type'} timeout = aiohttp.ClientTimeout(total=AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA) async with aiohttp.ClientSession(timeout=timeout, trust_env=True) as session: - async with session.get( + async with session.request( + 'POST' if file else 'GET', f'{get_terminal_server_url(connection)}{path}', headers=headers, cookies=cookies, + data=body, ssl=AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL, allow_redirects=False, ) as response: - return await response.json() if response.status == 200 else None + return await response.json() if 200 <= response.status < 300 else None event_caller = (extra_params or {}).get('__event_call__') if event_caller: result = await event_caller( { 'type': 'request:terminal', - 'data': {'terminal_id': terminal_id, 'path': path, 'session_id': metadata.get('session_id')}, + 'data': { + 'terminal_id': terminal_id, + 'path': path, + 'session_id': metadata.get('session_id'), + **({'file': file} if file else {}), + }, } ) return result.get('data') if isinstance(result, dict) else None return None +async def upload_files_to_terminal(request, user, files: list[dict], metadata: dict, extra_params: dict): + """Copy Open WebUI files to the selected terminal, adding terminal_path or terminal_error to each entry.""" + if not metadata.get('terminal_id') or not files: + return + try: + cwd = await get_terminal_json(request, user, metadata, '/files/cwd', extra_params) + directory = cwd.get('cwd') if isinstance(cwd, dict) else None + if not directory: + raise ValueError('Terminal working directory unavailable') + path = f'/files/upload?directory={quote(directory, safe="")}' + for entry in files: + try: + # The file ID keeps separate files from overwriting one another. + file = {'id': entry['id'], 'name': f'{entry["id"]}{Path(entry["name"]).suffix}'} + result = await get_terminal_json(request, user, metadata, path, extra_params, file=file) + if not isinstance(result, dict) or not isinstance(result.get('path'), str) or not result['path']: + raise ValueError('Terminal upload failed') + entry['terminal_path'] = result['path'] + except Exception as error: + log.warning('File terminal upload failed (%s)', type(error).__name__) + entry['terminal_error'] = 'File saved in Open WebUI, but upload to the selected terminal failed.' + except Exception as error: + log.warning('File terminal unavailable (%s)', type(error).__name__) + for entry in files: + entry['terminal_error'] = 'File saved in Open WebUI, but the selected terminal is unavailable.' + + async def get_terminal_agents_md(request, user, metadata: dict, extra_params: dict | None = None) -> str | None: """Load the selected terminal user's home AGENTS.md afresh for this turn.""" try: diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 0acb691cc1..99c4a5252b 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -41,7 +41,7 @@ desktopEvent } from '$lib/stores'; import { refreshChatList } from '$lib/stores/chatList'; - import { getFileContentById } from '$lib/apis/files'; + import { getFileBlobById, getFileContentById } from '$lib/apis/files'; import { goto } from '$app/navigation'; import { page } from '$app/stores'; import { beforeNavigate } from '$app/navigation'; @@ -672,11 +672,20 @@ const connection = resolveTerminalConnection( data.terminal_id, [], - $config?.features?.enable_direct_integrations ? ($settings?.terminalServers ?? []) : [], + $config?.features?.enable_direct_integrations + ? ($settings?.terminalServers ?? []).filter((server) => server.enabled) + : [], localStorage.token ); if (!connection) throw new Error('Terminal Not Found'); - const result = await terminalRequest(connection, event.chat_id, data.path); + let options = {}; + if (data.file) { + const blob = await getFileBlobById(localStorage.token, data.file.id); + const body = new FormData(); + body.append('file', blob, data.file.name); + options = { method: 'POST', body }; + } + const result = await terminalRequest(connection, event.chat_id, data.path, options); cb?.({ data: result }); } catch (error) { cb?.({ error: `${error}` }); From 83437197e3839fd894b7767ffd78b83ba927d54d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 27 Oct 2026 09:10:12 +0900 Subject: [PATCH 27/98] refac --- backend/open_webui/utils/terminals.py | 6 ++++-- src/routes/+layout.svelte | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/utils/terminals.py b/backend/open_webui/utils/terminals.py index af0970bccf..00e2b3fa19 100644 --- a/backend/open_webui/utils/terminals.py +++ b/backend/open_webui/utils/terminals.py @@ -231,7 +231,7 @@ async def upload_files_to_terminal(request, user, files: list[dict], metadata: d if not metadata.get('terminal_id') or not files: return try: - cwd = await get_terminal_json(request, user, metadata, '/files/cwd', extra_params) + cwd = await asyncio.wait_for(get_terminal_json(request, user, metadata, '/files/cwd', extra_params), timeout=30) directory = cwd.get('cwd') if isinstance(cwd, dict) else None if not directory: raise ValueError('Terminal working directory unavailable') @@ -240,7 +240,9 @@ async def upload_files_to_terminal(request, user, files: list[dict], metadata: d try: # The file ID keeps separate files from overwriting one another. file = {'id': entry['id'], 'name': f'{entry["id"]}{Path(entry["name"]).suffix}'} - result = await get_terminal_json(request, user, metadata, path, extra_params, file=file) + result = await asyncio.wait_for( + get_terminal_json(request, user, metadata, path, extra_params, file=file), timeout=30 + ) if not isinstance(result, dict) or not isinstance(result.get('path'), str) or not result['path']: raise ValueError('Terminal upload failed') entry['terminal_path'] = result['path'] diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 99c4a5252b..aaf4851dc0 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -672,9 +672,7 @@ const connection = resolveTerminalConnection( data.terminal_id, [], - $config?.features?.enable_direct_integrations - ? ($settings?.terminalServers ?? []).filter((server) => server.enabled) - : [], + $config?.features?.enable_direct_integrations ? ($settings?.terminalServers ?? []) : [], localStorage.token ); if (!connection) throw new Error('Terminal Not Found'); From a88fbc41a197f46ca148bf6dee16ad9ebafa2245 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:02:03 +0100 Subject: [PATCH 28/98] fix: Backspace while typing with a Japanese or other IME commits or duplicates the composing text (#33245) Pressing Backspace inside an unconfirmed IME composition in the chat input ended the composition, so the next keystrokes started a new one and the text appeared twice. This started in 0.12.4, when the editor library picked up a release that treats every deletion as a Backspace key press, including deletions the IME makes inside a composition, and the editor's Backspace handling then disturbs the composition. Pinning that library to the last release without this behaviour restores normal IME editing. Fixes #33223 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f019650ec..4670c22572 100644 --- a/package-lock.json +++ b/package-lock.json @@ -94,7 +94,7 @@ "prosemirror-schema-list": "^1.5.1", "prosemirror-state": "^1.4.3", "prosemirror-tables": "^1.7.1", - "prosemirror-view": "^1.34.3", + "prosemirror-view": "1.42.6", "pyodide": "^314.0.3", "shiki": "^4.0.1", "socket.io-client": "^4.8.3", @@ -12453,9 +12453,9 @@ } }, "node_modules/prosemirror-view": { - "version": "1.42.8", - "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.8.tgz", - "integrity": "sha512-ftDZjCs9AjAekXmCfJRn2U3IdlRCl0Yc4tZT1/jJWCsz4DiSifEBXtWmpJpw/4f1Rg328uAUQ+u2lCJ0+AVZkw==", + "version": "1.42.6", + "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.42.6.tgz", + "integrity": "sha512-3g25f6hKV2bBxo3puH3EcYWmmVNSH0iWmNsMVT7sugDSpA025jgpOLarcDWr39SdzPjYMaiYtRdNtXialPSjEQ==", "license": "MIT", "dependencies": { "prosemirror-model": "^1.25.12", diff --git a/package.json b/package.json index a9d68a1730..a4a960ee5a 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "prosemirror-schema-list": "^1.5.1", "prosemirror-state": "^1.4.3", "prosemirror-tables": "^1.7.1", - "prosemirror-view": "^1.34.3", + "prosemirror-view": "1.42.6", "pyodide": "^314.0.3", "shiki": "^4.0.1", "socket.io-client": "^4.8.3", From c21c24ce6ef0865df55001bdea94c0ea2ba0d29e Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:02:22 -0400 Subject: [PATCH 29/98] i18n: fill missing translations in 48 languages (#33252) --- src/lib/i18n/locales/az-AZ/translation.json | 16 ++++++++-------- src/lib/i18n/locales/bg-BG/translation.json | 16 ++++++++-------- src/lib/i18n/locales/bn-BD/translation.json | 16 ++++++++-------- src/lib/i18n/locales/bo-TB/translation.json | 16 ++++++++-------- src/lib/i18n/locales/bs-BA/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ceb-PH/translation.json | 16 ++++++++-------- src/lib/i18n/locales/cs-CZ/translation.json | 16 ++++++++-------- src/lib/i18n/locales/da-DK/translation.json | 16 ++++++++-------- src/lib/i18n/locales/de-DE/translation.json | 16 ++++++++-------- src/lib/i18n/locales/el-GR/translation.json | 16 ++++++++-------- src/lib/i18n/locales/es-ES/translation.json | 16 ++++++++-------- src/lib/i18n/locales/et-EE/translation.json | 16 ++++++++-------- src/lib/i18n/locales/eu-ES/translation.json | 16 ++++++++-------- src/lib/i18n/locales/fa-IR/translation.json | 16 ++++++++-------- src/lib/i18n/locales/fil-PH/translation.json | 16 ++++++++-------- src/lib/i18n/locales/fo-FO/translation.json | 16 ++++++++-------- src/lib/i18n/locales/gl-ES/translation.json | 16 ++++++++-------- src/lib/i18n/locales/he-IL/translation.json | 16 ++++++++-------- src/lib/i18n/locales/hi-IN/translation.json | 16 ++++++++-------- src/lib/i18n/locales/hr-HR/translation.json | 16 ++++++++-------- src/lib/i18n/locales/hu-HU/translation.json | 16 ++++++++-------- src/lib/i18n/locales/id-ID/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ie-GA/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ja-JP/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ka-GE/translation.json | 16 ++++++++-------- src/lib/i18n/locales/kab-DZ/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ko-KR/translation.json | 16 ++++++++-------- src/lib/i18n/locales/lt-LT/translation.json | 16 ++++++++-------- src/lib/i18n/locales/lv-LV/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ms-MY/translation.json | 16 ++++++++-------- src/lib/i18n/locales/nb-NO/translation.json | 16 ++++++++-------- src/lib/i18n/locales/nl-NL/translation.json | 16 ++++++++-------- src/lib/i18n/locales/pa-IN/translation.json | 16 ++++++++-------- src/lib/i18n/locales/pl-PL/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ro-RO/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ru-RU/translation.json | 16 ++++++++-------- src/lib/i18n/locales/sk-SK/translation.json | 16 ++++++++-------- src/lib/i18n/locales/sl-SI/translation.json | 16 ++++++++-------- src/lib/i18n/locales/sr-RS/translation.json | 16 ++++++++-------- src/lib/i18n/locales/sv-SE/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ta-IN/translation.json | 16 ++++++++-------- src/lib/i18n/locales/th-TH/translation.json | 16 ++++++++-------- src/lib/i18n/locales/tk-TM/translation.json | 16 ++++++++-------- src/lib/i18n/locales/tr-TR/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ug-CN/translation.json | 16 ++++++++-------- src/lib/i18n/locales/uk-UA/translation.json | 16 ++++++++-------- src/lib/i18n/locales/ur-PK/translation.json | 16 ++++++++-------- src/lib/i18n/locales/vi-VN/translation.json | 16 ++++++++-------- 48 files changed, 384 insertions(+), 384 deletions(-) diff --git a/src/lib/i18n/locales/az-AZ/translation.json b/src/lib/i18n/locales/az-AZ/translation.json index 3192f6ef3f..d3452afbcb 100644 --- a/src/lib/i18n/locales/az-AZ/translation.json +++ b/src/lib/i18n/locales/az-AZ/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Cavabın qiymətləndirilməsinə icazə ver", "Allow Regenerate Response": "Cavabın yenidən yaradılmasına icazə ver", "Allow replies": "Cavablara icazə ver", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Gizli modellərin əsas model kimi seçilməsinə icazə verin.", "Allow Sharing With Groups": "Qruplarla paylaşmağa icazə ver", "Allow Sharing With Users": "İstifadəçilərlə paylaşmağa icazə ver", "Allow Speech to Text": "Səsdən mətnə (STT) keçidinə icazə ver", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Konteksti qısalt: bu çatın davam edə bilməsi üçün köhnə mesajları qısaldın.", "Compacting context": "Kontekst qısaldılır", "Compacting context...": "Kontekst qısaldılır...", - "Compaction summary": "", + "Compaction summary": "Konteksti qısaltma xülasəsi", "Compare": "Müqayisə et", "Compare files": "Faylları müqayisə et", "Compare revision": "Redaktəni müqayisə et", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex Rəngi", "Hex Color - Leave empty for default color": "Hex Rəngi - Standart rəng üçün boş saxlayın", "Hidden": "Gizli", - "Hidden Models": "", + "Hidden Models": "Gizli modellər", "Hide": "Gizlət", "Hide All": "Hamısını gizlət", "Hide conversation": "Söhbəti gizlət", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Autentifikatorunuzu bərpa edin", "Recovery code": "Bərpa kodu", "Redirecting you to Open WebUI Community": "Open WebUI İcmasına yönləndirilirsiniz", - "Redo": "", + "Redo": "Yenidən et", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Mənasız mətnlərin yaradılma ehtimalını azaldır. Daha yüksək dəyər (məs. 100) daha müxtəlif cavablar verəcək, daha aşağı dəyər (məs. 10) isə daha mühafizəkar olacaq.", "Reference Chats": "İstinad çatları", "Refresh": "Yenilə", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Klient ID-si", "settings.admin.authentication.clientSecret.description": "Təminatçının təqdim etdiyi OAuth müştəri sirri.", "settings.admin.authentication.clientSecret.label": "Klient sirri", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP e-poçt atributu boş olduqda username@domain istifadə edir. Söndürmək üçün boş saxlayın. Həmin e-poçt ünvanı ilə mövcud hesaba daxil olur; nəzarətinizdə olan domendən istifadə edin.", + "settings.admin.authentication.defaultEmailDomain.label": "Standart e-poçt domeni", "settings.admin.authentication.defaultGroup.description": "Yeni istifadəçilərə standart olaraq təyin edilən qrup.", "settings.admin.authentication.defaultGroup.label": "Standart qrup", "settings.admin.authentication.defaultUserRole.description": "Yeni istifadəçilərə hesab yaratdıqda təyin olunan rol.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Təxirəsalma həddi (simvol)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Köməkçinin alət və funksiya çağırışlarını necə formatlaşdıracağını müəyyən edir.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Alətlər üçün funksiya çağırma göstərişi", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "İstifadəçilər üçün hansı idarəetmə elementlərinin görünəcəyini seçin. İdarəetmə elementinin gizlədilməsi onun cari ayarını saxlayır, aid olduğu funksiya isə mövcud qalır. Administratorlar həmişə mövcud idarəetmə elementlərini görürlər.", + "settings.admin.interface.visibility.title": "Görünən idarəetmə elementləri", "settings.admin.interface.voiceModePrompt.description": "Səs rejimi aktiv olduqda səsə xüsusi təlimatlar tətbiq edin.", "settings.admin.interface.voiceModePrompt.label": "Səs rejimi sorğusu", "settings.admin.interface.webSearchQueryGeneration.description": "İstifadəçi sorğularını veb axtarış sorğularına çevirin.", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index b60dc6e125..3d22f933f6 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Разреши оценяване на отговорите", "Allow Regenerate Response": "Разреши повторно генериране на отговори", "Allow replies": "Разреши отговори", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Разрешете избирането на скрити модели като базови модели.", "Allow Sharing With Groups": "Разреши споделяне с групи", "Allow Sharing With Users": "Разреши споделяне с потребители", "Allow Speech to Text": "Разреши преобразуване на реч в текст", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Свий контекста: съкрати по-старите съобщения, за да може този чат да продължи.", "Compacting context": "Свиване на контекста", "Compacting context...": "Свиване на контекста...", - "Compaction summary": "", + "Compaction summary": "Обобщение при свиване на контекста", "Compare": "Сравни", "Compare files": "Сравняване на файлове", "Compare revision": "Сравняване на редакция", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex цвят", "Hex Color - Leave empty for default color": "Hex цвят - Оставете празно за цвят по подразбиране", "Hidden": "Скрито", - "Hidden Models": "", + "Hidden Models": "Скрити модели", "Hide": "Скрий", "Hide All": "Скриване на всички", "Hide conversation": "Скриване на разговора", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Възстановяване на приложението за удостоверяване", "Recovery code": "Код за възстановяване", "Redirecting you to Open WebUI Community": "Пренасочване към OpenWebUI общността", - "Redo": "", + "Redo": "Възстановяване", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Намалява вероятността за генериране на безсмислици. По-висока стойност (напр. 100) дава по-разнообразни отговори, а по-ниска (напр. 10) — по-консервативни.", "Reference Chats": "Позоваване на чатове", "Refresh": "Обновяване", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ID на клиента", "settings.admin.authentication.clientSecret.description": "Тайна на OAuth клиента, предоставена от доставчика.", "settings.admin.authentication.clientSecret.label": "Тайна на клиента", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Използва username@domain, когато LDAP атрибутът за имейл е празен. Оставете празно, за да деактивирате. Потребителят влиза в съществуващ акаунт с този имейл; използвайте домейн, който контролирате.", + "settings.admin.authentication.defaultEmailDomain.label": "Имейл домейн по подразбиране", "settings.admin.authentication.defaultGroup.description": "Група, която се задава по подразбиране на новите потребители.", "settings.admin.authentication.defaultGroup.label": "Група по подразбиране", "settings.admin.authentication.defaultUserRole.description": "Роля, задавана на новите потребители при създаване на акаунт.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Праг за отлагане (знаци)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Насочва начина, по който асистентът форматира извикванията на инструменти и функции.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Промпт за извикване на функциите на инструментите", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Изберете кои контроли да се показват на потребителите. Скриването на контрола запазва текущата ѝ настройка и оставя съответната функция достъпна. Администраторите винаги виждат наличните контроли.", + "settings.admin.interface.visibility.title": "Видими контроли", "settings.admin.interface.voiceModePrompt.description": "Прилагайте специалните инструкции за гласови разговори, докато гласовият режим е активен.", "settings.admin.interface.voiceModePrompt.label": "Промпт за гласов режим", "settings.admin.interface.webSearchQueryGeneration.description": "Пренаписване на потребителските заявки като заявки за търсене в интернет.", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index 65441f88f1..f6c91b57a2 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "উত্তর মূল্যায়নের অনুমতি দিন", "Allow Regenerate Response": "উত্তর আবার তৈরির অনুমতি দিন", "Allow replies": "উত্তর দেওয়ার অনুমতি দিন", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "লুকানো মডেলকে বেস মডেল হিসেবে নির্বাচন করার অনুমতি দিন।", "Allow Sharing With Groups": "গ্রুপের সঙ্গে শেয়ারের অনুমতি দিন", "Allow Sharing With Users": "ব্যবহারকারীদের সঙ্গে শেয়ারের অনুমতি দিন", "Allow Speech to Text": "কথা থেকে পাঠ্য তৈরির অনুমতি দিন", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "কনটেক্সট সংক্ষিপ্ত করুন: চ্যাট চালিয়ে যেতে পুরোনো বার্তা সংক্ষিপ্ত করুন।", "Compacting context": "কনটেক্সট সংক্ষিপ্ত করা হচ্ছে", "Compacting context...": "কনটেক্সট সংক্ষিপ্ত করা হচ্ছে...", - "Compaction summary": "", + "Compaction summary": "কনটেক্সট সংক্ষিপ্তকরণের সারাংশ", "Compare": "তুলনা করুন", "Compare files": "ফাইল তুলনা করুন", "Compare revision": "সংশোধিত পাঠ তুলনা করুন", @@ -1411,7 +1411,7 @@ "Hex Color": "হেক্স রং", "Hex Color - Leave empty for default color": "হেক্স রং - ডিফল্ট রঙের জন্য খালি রাখুন", "Hidden": "লুকানো", - "Hidden Models": "", + "Hidden Models": "লুকানো মডেল", "Hide": "লুকান", "Hide All": "সব লুকান", "Hide conversation": "কথোপকথন লুকান", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "আপনার অথেনটিকেটর পুনরুদ্ধার করুন", "Recovery code": "পুনরুদ্ধার কোড", "Redirecting you to Open WebUI Community": "আপনাকে OpenWebUI কমিউনিটিতে পাঠানো হচ্ছে", - "Redo": "", + "Redo": "আবার করুন", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "অর্থহীন লেখা তৈরির সম্ভাবনা কমায়। বড় মান (যেমন 100) আরও বৈচিত্র্যময় উত্তর দেবে, আর ছোট মান (যেমন 10) আরও সংযত উত্তর দেবে।", "Reference Chats": "চ্যাটসমূহকে সূত্র হিসেবে ব্যবহার করুন", "Refresh": "রিফ্রেশ করুন", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ক্লায়েন্ট আইডি", "settings.admin.authentication.clientSecret.description": "প্রদানকারীর দেওয়া OAuth ক্লায়েন্ট সিক্রেট।", "settings.admin.authentication.clientSecret.label": "ক্লায়েন্ট সিক্রেট", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ইমেইল অ্যাট্রিবিউট খালি থাকলে username@domain ব্যবহার করে। নিষ্ক্রিয় করতে খালি রাখুন। ওই ইমেইলের বিদ্যমান অ্যাকাউন্টে সাইন ইন করে; আপনার নিয়ন্ত্রণে থাকা একটি ডোমেইন ব্যবহার করুন।", + "settings.admin.authentication.defaultEmailDomain.label": "ডিফল্ট ইমেইল ডোমেইন", "settings.admin.authentication.defaultGroup.description": "নতুন ব্যবহারকারীকে ডিফল্টভাবে যে গ্রুপে যুক্ত করা হয়।", "settings.admin.authentication.defaultGroup.label": "ডিফল্ট গ্রুপ", "settings.admin.authentication.defaultUserRole.description": "একাউন্ট তৈরির সময় নতুন ব্যবহারকারীকে দেওয়া ভূমিকা।", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "স্থগিত রাখার সীমা (অক্ষর)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "সহকারী কীভাবে টুল ও ফাংশন কল ফরম্যাট করে তা নির্দেশ করে।", "settings.admin.interface.toolsFunctionCallingPrompt.label": "টুলের ফাংশন কল করার প্রম্পট", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "ব্যবহারকারীদের কোন নিয়ন্ত্রণগুলো দেখানো হবে তা বেছে নিন। কোনো নিয়ন্ত্রণ লুকালে তার বর্তমান সেটিং বজায় থাকে এবং সংশ্লিষ্ট সুবিধা উপলব্ধ থাকে। প্রশাসকেরা সব সময় উপলব্ধ নিয়ন্ত্রণগুলো দেখতে পান।", + "settings.admin.interface.visibility.title": "দৃশ্যমান নিয়ন্ত্রণ", "settings.admin.interface.voiceModePrompt.description": "ভয়েস মোড চালু থাকলে ভয়েসের জন্য নির্দিষ্ট নির্দেশনা প্রয়োগ করুন।", "settings.admin.interface.voiceModePrompt.label": "ভয়েস মোডের প্রম্পট", "settings.admin.interface.webSearchQueryGeneration.description": "ব্যবহারকারীর অনুরোধ ওয়েব অনুসন্ধানের কোয়েরি হিসেবে পুনরায় লিখুন।", diff --git a/src/lib/i18n/locales/bo-TB/translation.json b/src/lib/i18n/locales/bo-TB/translation.json index a46e9ee578..32b04bf013 100644 --- a/src/lib/i18n/locales/bo-TB/translation.json +++ b/src/lib/i18n/locales/bo-TB/translation.json @@ -211,7 +211,7 @@ "Allow Rate Response": "ལན་ལ་སྐར་མ་སྤྲོད་ཆོག་པ་བྱེད།", "Allow Regenerate Response": "ལན་བསྐྱར་བསྐྲུན་བྱེད་ཆོག་པ་བྱེད།", "Allow replies": "ལན་འདེབས་བྱེད་ཆོག་པ་བྱེད།", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "སྦས་པའི་དཔེ་དབྱིབས་གཞི་རྩའི་དཔེ་དབྱིབས་སུ་འདེམས་ཆོག་པ།", "Allow Sharing With Groups": "ཚོགས་པ་དང་མཉམ་སྤྱོད་བྱེད་ཆོག་པ་བྱེད།", "Allow Sharing With Users": "བེད་སྤྱོད་མཁན་དང་མཉམ་སྤྱོད་བྱེད་ཆོག་པ་བྱེད།", "Allow Speech to Text": "སྐད་ཡི་གེར་བསྒྱུར་ཆོག་པ་བྱེད།", @@ -543,7 +543,7 @@ "Compact: shorten older messages so this chat can keep going.": "ནང་དོན་བསྡུ་སྒྲིལ། ཁ་བརྡ་འདི་མུ་མཐུད་ཐུབ་ཆེད་འཕྲིན་རྙིང་པ་ཐུང་དུ་གཏོང་།", "Compacting context": "ནང་དོན་བསྡུ་སྒྲིལ་བྱེད་བཞིན་ཡོད།", "Compacting context...": "ནང་དོན་བསྡུ་སྒྲིལ་བྱེད་བཞིན་ཡོད།...", - "Compaction summary": "", + "Compaction summary": "ནང་དོན་བསྡུ་སྒྲིལ་གྱི་སྙིང་བསྡུས།", "Compare": "བསྡུར་བ།", "Compare files": "ཡིག་ཆ་བསྡུར་བ།", "Compare revision": "བཅོས་ཡིག་བསྡུར་བ།", @@ -1393,7 +1393,7 @@ "Hex Color": "Hex ཚོན་མདོག", "Hex Color - Leave empty for default color": "Hex ཚོན་མདོག - སྔོན་སྒྲིག་ཚོན་མདོག་གི་ཆེད་དུ་སྟོང་པ་བཞག་པ།", "Hidden": "སྦས་པ།", - "Hidden Models": "", + "Hidden Models": "སྦས་པའི་དཔེ་དབྱིབས།", "Hide": "སྦ་བ།", "Hide All": "ཚང་མ་སྦེད་པ།", "Hide conversation": "གླེང་མོལ་སྦ་བ།", @@ -2142,7 +2142,7 @@ "Recover your authenticator": "ཁྱེད་ཀྱི་དངོས་ར་སྤྲོད་ཉེར་སྤྱོད་སླར་གསོ།", "Recovery code": "སླར་གསོའི་ཨང་རྟགས།", "Redirecting you to Open WebUI Community": "ཁྱེད་ Open WebUI སྤྱི་ཚོགས་ལ་ཁ་ཕྱོགས་སྒྱུར་བཞིན་པ།", - "Redo": "", + "Redo": "བསྐྱར་སྒྲུབ།", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "དོན་མེད་བཟོ་བའི་ཆགས་ཚུལ་ཉུང་དུ་གཏོང་བ། རིན་ཐང་མཐོ་བ་ (དཔེར་ན། ༡༠༠) ཡིས་ལན་སྣ་ཚོགས་ཆེ་བ་སྤྲོད་ངེས། དེ་བཞིན་དུ་རིན་ཐང་དམའ་བ་ (དཔེར་ན། ༡༠) ཡིས་སྲུང་འཛིན་ཆེ་བ་ཡོང་ངེས།", "Reference Chats": "ཁ་བརྡ་དཔྱད་གཞིར་སྤྱོད་པ།", "Refresh": "གསར་འདོན།", @@ -2506,8 +2506,8 @@ "settings.admin.authentication.clientId.label": "མཁོ་མཁན་གྱི་ ID།", "settings.admin.authentication.clientSecret.description": "ཞབས་ཞུ་མཁོ་འདོན་པས་སྤྲད་པའི་ OAuth མཁོ་མཁན་གྱི་གསང་ལྡེ།", "settings.admin.authentication.clientSecret.label": "མཁོ་མཁན་གྱི་གསང་ལྡེ།", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ཡི་ཡིག་ཟམ་ཁྱད་ཆོས་སྟོང་པ་ཡིན་སྐབས་ username@domain སྤྱོད་པ། ནུས་མེད་བཟོ་བར་སྟོང་པ་འཇོག་པ། ཡིག་ཟམ་དེ་དང་མཐུན་པའི་ཡོད་མུས་རྩིས་ཁྲར་ནང་འཛུལ་བྱེད། ཁྱེད་ཀྱིས་ཚོད་འཛིན་བྱེད་པའི་དྲ་ཁོངས་ཤིག་སྤྱོད།", + "settings.admin.authentication.defaultEmailDomain.label": "སྔོན་སྒྲིག་ཡིག་ཟམ་གྱི་དྲ་ཁོངས།", "settings.admin.authentication.defaultGroup.description": "སྔོན་སྒྲིག་ལྟར་བེད་སྤྱོད་མཁན་གསར་པར་སྤྲོད་པའི་ཚོགས་པ།", "settings.admin.authentication.defaultGroup.label": "སྔོན་སྒྲིག་ཚོགས་པ།", "settings.admin.authentication.defaultUserRole.description": "རྩིས་ཁྲ་གསར་བཟོ་སྐབས་བེད་སྤྱོད་མཁན་གསར་པར་སྤྲོད་པའི་གནས་ཚད།", @@ -3005,8 +3005,8 @@ "settings.admin.interface.toolSearchThreshold.label": "འགྱངས་པའི་ཚད་མཚམས། (ཡིག་རྟགས།)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "རོགས་རམ་པས་ལག་ཆ་དང་ལས་འགན་འབོད་པའི་རྣམ་གཞག་ལ་ལམ་སྟོན་བྱེད།", "settings.admin.interface.toolsFunctionCallingPrompt.label": "ལག་ཆ་ལས་འགན་འབོད་པའི་འགུལ་སློང་།", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "བེད་སྤྱོད་མཁན་ལ་ཚོད་འཛིན་གང་དག་སྟོན་རྒྱུ་ཡིན་པ་འདེམས། ཚོད་འཛིན་ཞིག་སྦས་ཀྱང་དེའི་ད་ལྟའི་སྒྲིག་འགོད་རང་སོར་གནས་པ་དང་དེ་དང་འབྲེལ་བའི་ཁྱད་ཆོས་མུ་མཐུད་སྤྱོད་ཐུབ། དོ་དམ་པས་སྤྱོད་རུང་གི་ཚོད་འཛིན་རྟག་ཏུ་མཐོང་ཐུབ།", + "settings.admin.interface.visibility.title": "མཐོང་ཐུབ་པའི་ཚོད་འཛིན།", "settings.admin.interface.voiceModePrompt.description": "སྐད་ཀྱི་རྣམ་པ་སྤྱོད་སྐབས་སྐད་ཀྱི་ཆེད་བཀོད་ཁྱབ་སྤྱོད།", "settings.admin.interface.voiceModePrompt.label": "སྐད་སྒྲའི་རྣམ་པའི་འགུལ་སློང་།", "settings.admin.interface.webSearchQueryGeneration.description": "བེད་སྤྱོད་མཁན་གྱི་རེ་ཞུ་དྲ་བའི་འཚོལ་བཤེར་འདྲི་རྩད་དུ་བསྐྱར་འབྲི།", diff --git a/src/lib/i18n/locales/bs-BA/translation.json b/src/lib/i18n/locales/bs-BA/translation.json index f425b706fe..15760737f0 100644 --- a/src/lib/i18n/locales/bs-BA/translation.json +++ b/src/lib/i18n/locales/bs-BA/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Dozvoli ocjenjivanje odgovora", "Allow Regenerate Response": "Dozvoli Regeneraciju Odgovora", "Allow replies": "Dozvoli odgovore", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Dozvolite odabir skrivenih modela kao osnovnih modela.", "Allow Sharing With Groups": "Dozvoli dijeljenje s grupama", "Allow Sharing With Users": "Dozvoli dijeljenje s korisnicima", "Allow Speech to Text": "Dozvoli transformaciju Govora u Tekst", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Sažmi kontekst: skrati starije poruke kako bi se ovaj razgovor mogao nastaviti.", "Compacting context": "Sažimanje konteksta", "Compacting context...": "Sažimanje konteksta...", - "Compaction summary": "", + "Compaction summary": "Sažetak konteksta", "Compare": "Uporedi", "Compare files": "Uporedi datoteke", "Compare revision": "Uporedi verziju", @@ -1429,7 +1429,7 @@ "Hex Color": "Heksadecimalna boja", "Hex Color - Leave empty for default color": "Heksadecimalna boja – ostavite prazno za zadanu boju", "Hidden": "Skriveno", - "Hidden Models": "", + "Hidden Models": "Skriveni modeli", "Hide": "Sakrij", "Hide All": "Sakrij sve", "Hide conversation": "Sakrij razgovor", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Oporavite autentifikator", "Recovery code": "Kod za oporavak", "Redirecting you to Open WebUI Community": "Preusmjeravanje na OpenWebUI zajednicu", - "Redo": "", + "Redo": "Ponovi", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Smanjuje vjerovatnoću generiranja besmislica. Veća vrijednost (npr. 100) daje raznovrsnije odgovore, dok manja vrijednost (npr. 10) daje suzdržanije odgovore.", "Reference Chats": "Koristi razgovore kao reference", "Refresh": "Osvježi", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "ID klijenta", "settings.admin.authentication.clientSecret.description": "Tajni ključ OAuth klijenta koji daje pružalac usluge.", "settings.admin.authentication.clientSecret.label": "Tajna klijenta", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Koristi username@domain kada je LDAP atribut za email prazan. Ostavite prazno da onemogućite ovu opciju. Prijavljuje korisnika na postojeći račun s tom email adresom; koristite domenu koju kontrolišete.", + "settings.admin.authentication.defaultEmailDomain.label": "Zadana email domena", "settings.admin.authentication.defaultGroup.description": "Grupa koja se zadano dodjeljuje novim korisnicima.", "settings.admin.authentication.defaultGroup.label": "Zadana grupa", "settings.admin.authentication.defaultUserRole.description": "Uloga dodijeljena novim korisnicima pri kreiranju računa.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Prag odgađanja (znakova)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Usmjerava način na koji asistent formatira pozive alata i funkcija.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt za pozivanje funkcija alata", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Odaberite koje se kontrole prikazuju korisnicima. Skrivanjem kontrole zadržava se njena trenutna postavka, a pripadajuća funkcija ostaje dostupna. Administratori uvijek vide dostupne kontrole.", + "settings.admin.interface.visibility.title": "Vidljive kontrole", "settings.admin.interface.voiceModePrompt.description": "Primijenite upute za glasovne razgovore dok je glasovni način rada aktivan.", "settings.admin.interface.voiceModePrompt.label": "Prompt glasovnog načina rada", "settings.admin.interface.webSearchQueryGeneration.description": "Preformuliši korisničke zahtjeve u upite za internet pretragu.", diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json index 1fcd0b92e3..d740949f81 100644 --- a/src/lib/i18n/locales/ceb-PH/translation.json +++ b/src/lib/i18n/locales/ceb-PH/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Tugoti ang pagmarka sa tubag", "Allow Regenerate Response": "Tugoti ang paghimo pag-usab sa tubag", "Allow replies": "Tugoti ang mga tubag", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Tugoti ang pagpili sa tinagong mga modelo isip mga basihang modelo.", "Allow Sharing With Groups": "Tugoti ang pagpaambit sa mga grupo", "Allow Sharing With Users": "Tugoti ang pagpaambit sa mga tiggamit", "Allow Speech to Text": "Tugoti ang pag-ilis sa sinultihan ngadto sa teksto", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Pamuboa ang konteksto: pamuboa ang daang mga mensahe aron makapadayon kini nga panaghisgot.", "Compacting context": "Pagpamubo sa konteksto", "Compacting context...": "Nagpamubo sa konteksto...", - "Compaction summary": "", + "Compaction summary": "Sumaryo sa pagpamubo sa konteksto", "Compare": "Itandi", "Compare files": "Itandi ang mga file", "Compare revision": "Itandi ang pag-usab", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex nga kolor", "Hex Color - Leave empty for default color": "Hex nga kolor — pasagdi nga walay sulod alang sa default nga kolor", "Hidden": "Gitago", - "Hidden Models": "", + "Hidden Models": "Tinagong mga modelo", "Hide": "Tagoa", "Hide All": "Tagoa ang tanan", "Hide conversation": "Tagoa ang panaghisgot", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Ibalik ang imong app sa pagpamatuod", "Recovery code": "Kodigo sa pagbawi", "Redirecting you to Open WebUI Community": "Gi-redirect ka sa komunidad sa OpenWebUI", - "Redo": "", + "Redo": "I-redo", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Mopamenos sa posibilidad sa paghimo og walay pulos nga teksto. Ang mas taas nga bili (pananglitan 100) mohatag og mas nagkalainlaing tubag, samtang ang mas ubos (pananglitan 10) mas konserbatibo.", "Reference Chats": "Paghisgot og mga panaghisgot", "Refresh": "I-refresh", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ID sa kliyente", "settings.admin.authentication.clientSecret.description": "Sekreto sa OAuth client gikan sa tighatag.", "settings.admin.authentication.clientSecret.label": "Sekreto sa kliyente", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Gigamit ang username@domain kon walay sulod ang atributo sa email sa LDAP. Biyai nga walay sulod aron ipalong. Mosulod ang tiggamit sa kasamtangang account nga adunay maong email; paggamit og domain nga imong kontrolado.", + "settings.admin.authentication.defaultEmailDomain.label": "Default nga domain sa email", "settings.admin.authentication.defaultGroup.description": "Grupo nga awtomatikong ihatag sa bag-ong mga tiggamit.", "settings.admin.authentication.defaultGroup.label": "Default nga grupo", "settings.admin.authentication.defaultUserRole.description": "Papel nga ihatag sa bag-ong mga tiggamit kon maghimo sila og account.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Utlanan sa dili dayon pagkarga (mga karakter)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Naggiya kon giunsa sa katabang pag-format ang mga tawag sa himan ug punsiyon.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Aghat sa pagtawag sa punsiyon sa mga himan", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Pilia kon unsang mga kontrol ang makita sa mga tiggamit. Kon tagoon ang usa ka kontrol, magpabilin ang kasamtangang setting niini ug magamit gihapon ang bahin nga gikontrol niini. Kanunay nga makita sa mga administrator ang magamit nga mga kontrol.", + "settings.admin.interface.visibility.title": "Makita nga mga kontrol", "settings.admin.interface.voiceModePrompt.description": "Gamita ang mga panudlo nga alang sa tingog samtang aktibo ang voice mode.", "settings.admin.interface.voiceModePrompt.label": "Aghat sa mode sa tingog", "settings.admin.interface.webSearchQueryGeneration.description": "Himoang mga pangutana sa pagpangita sa web ang mga hangyo sa tiggamit.", diff --git a/src/lib/i18n/locales/cs-CZ/translation.json b/src/lib/i18n/locales/cs-CZ/translation.json index ef414fe94f..202dcb8ec4 100644 --- a/src/lib/i18n/locales/cs-CZ/translation.json +++ b/src/lib/i18n/locales/cs-CZ/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Povolit hodnocení odpovědí", "Allow Regenerate Response": "Povolit opětovné generování odpovědi", "Allow replies": "Povolit odpovědi", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Povolte uživatelům vybírat skryté modely jako základní modely.", "Allow Sharing With Groups": "Povolit sdílení se skupinami", "Allow Sharing With Users": "Povolit sdílení s uživateli", "Allow Speech to Text": "Povolit převod řeči na text", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Zhuštit kontext: zkrátit starší zprávy, aby mohla tato konverzace pokračovat.", "Compacting context": "Zhušťování kontextu", "Compacting context...": "Zhušťování kontextu...", - "Compaction summary": "", + "Compaction summary": "Souhrn zhuštěného kontextu", "Compare": "Porovnat", "Compare files": "Porovnat soubory", "Compare revision": "Porovnat revizi", @@ -1447,7 +1447,7 @@ "Hex Color": "Hex barva", "Hex Color - Leave empty for default color": "Hex barva - pro výchozí barvu ponechte prázdné", "Hidden": "Skryté", - "Hidden Models": "", + "Hidden Models": "Skryté modely", "Hide": "Skrýt", "Hide All": "Skrýt vše", "Hide conversation": "Skrýt konverzaci", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Obnovení ověřovací aplikace", "Recovery code": "Kód pro obnovení", "Redirecting you to Open WebUI Community": "Přesměrovávám vás do komunity Open WebUI", - "Redo": "", + "Redo": "Znovu", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Snižuje pravděpodobnost generování nesmyslů. Vyšší hodnota (např. 100) vede k rozmanitějším odpovědím, zatímco nižší (např. 10) k opatrnějším.", "Reference Chats": "Připojit chat", "Refresh": "Obnovit", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "ID klienta", "settings.admin.authentication.clientSecret.description": "Tajný klíč klienta OAuth od poskytovatele.", "settings.admin.authentication.clientSecret.label": "Tajný klíč klienta", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Pokud je atribut e-mailu v LDAP prázdný, použije se username@domain. Ponechte prázdné pro zakázání. Přihlásí uživatele k existujícímu účtu s tímto e-mailem; použijte doménu, kterou máte pod kontrolou.", + "settings.admin.authentication.defaultEmailDomain.label": "Výchozí doména e-mailu", "settings.admin.authentication.defaultGroup.description": "Skupina, do které jsou noví uživatelé ve výchozím nastavení zařazeni.", "settings.admin.authentication.defaultGroup.label": "Výchozí skupina", "settings.admin.authentication.defaultUserRole.description": "Role přidělovaná novým uživatelům při vytvoření účtu.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Práh odložení (znaky)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Určuje, jak asistent formátuje volání nástrojů a funkcí.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Instrukce pro volání funkcí nástrojů", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Vyberte, které ovládací prvky se mají uživatelům zobrazovat. Skrytím ovládacího prvku se zachová jeho aktuální nastavení a příslušná funkce zůstane dostupná. Administrátoři vždy vidí dostupné ovládací prvky.", + "settings.admin.interface.visibility.title": "Viditelné ovládací prvky", "settings.admin.interface.voiceModePrompt.description": "Použijte instrukce pro hlasové konverzace, když je aktivní hlasový režim.", "settings.admin.interface.voiceModePrompt.label": "Instrukce pro hlasový režim", "settings.admin.interface.webSearchQueryGeneration.description": "Převést požadavky uživatele na dotazy pro vyhledávání na webu.", diff --git a/src/lib/i18n/locales/da-DK/translation.json b/src/lib/i18n/locales/da-DK/translation.json index 84518c6186..563a8b2074 100644 --- a/src/lib/i18n/locales/da-DK/translation.json +++ b/src/lib/i18n/locales/da-DK/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Tillad vurdering af svar", "Allow Regenerate Response": "Tillad regenerering af svar", "Allow replies": "Tillad svar", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Tillad valg af skjulte modeller som basismodeller.", "Allow Sharing With Groups": "Tillad deling med grupper", "Allow Sharing With Users": "Tillad deling med brugere", "Allow Speech to Text": "Tillad tale til tekst", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Komprimer kontekst: forkort ældre beskeder, så denne chat kan fortsætte.", "Compacting context": "Komprimerer kontekst", "Compacting context...": "Komprimerer kontekst...", - "Compaction summary": "", + "Compaction summary": "Opsummering ved komprimering af kontekst", "Compare": "Sammenlign", "Compare files": "Sammenlign filer", "Compare revision": "Sammenlign revision", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex farve", "Hex Color - Leave empty for default color": "Hex farve - Lad stå tomt for standard farve", "Hidden": "Skjult", - "Hidden Models": "", + "Hidden Models": "Skjulte modeller", "Hide": "Skjul", "Hide All": "Skjul alle", "Hide conversation": "Skjul samtale", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Gendan din godkendelsesapp", "Recovery code": "Gendannelseskode", "Redirecting you to Open WebUI Community": "Omdirigerer dig til OpenWebUI Community", - "Redo": "", + "Redo": "Annuller fortryd", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reducerer sandsynligheden for at generere vrøvl. En højere værdi (f.eks. 100) vil give mere varierede svar, mens en lavere værdi (f.eks. 10) vil være mere konservativ.", "Reference Chats": "Reference chats", "Refresh": "Opdater", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Klient-ID", "settings.admin.authentication.clientSecret.description": "OAuth-klienthemmelighed fra udbyderen.", "settings.admin.authentication.clientSecret.label": "Klienthemmelighed", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Bruger username@domain, når LDAP-attributten for e-mail er tom. Lad feltet være tomt for at deaktivere. Findes der allerede en konto med den e-mailadresse, logges brugeren ind på den. Brug et domæne, du kontrollerer.", + "settings.admin.authentication.defaultEmailDomain.label": "Standarddomæne for e-mail", "settings.admin.authentication.defaultGroup.description": "Gruppe, som nye brugere som standard tildeles.", "settings.admin.authentication.defaultGroup.label": "Standardgruppe", "settings.admin.authentication.defaultUserRole.description": "Rolle, som nye brugere tildeles, når de opretter en konto.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Grænse for udskydelse (tegn)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Styrer, hvordan assistenten formaterer værktøjs- og funktionskald.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Værktøjs Funktionkaldprompt", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Vælg, hvilke kontrolelementer der vises for brugerne. Hvis du skjuler et kontrolelement, bevares dets nuværende indstilling, og den underliggende funktion er fortsat tilgængelig. Administratorer ser altid tilgængelige kontrolelementer.", + "settings.admin.interface.visibility.title": "Synlige kontrolelementer", "settings.admin.interface.voiceModePrompt.description": "Brug stemmespecifikke instruktioner, mens stemmetilstanden er aktiv.", "settings.admin.interface.voiceModePrompt.label": "Prompt til stemmetilstand", "settings.admin.interface.webSearchQueryGeneration.description": "Omskriv brugeranmodninger til websøgninger.", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index b9669c5d9d..05a3bc89d4 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Antwortbewertung erlauben", "Allow Regenerate Response": "Antwort-Neugenerierung erlauben", "Allow replies": "Antworten erlauben", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Erlaubt die Auswahl ausgeblendeter Modelle als Basismodelle.", "Allow Sharing With Groups": "Teilen mit Gruppen erlauben", "Allow Sharing With Users": "Teilen mit Benutzern erlauben", "Allow Speech to Text": "Sprache-zu-Text erlauben", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Verdichten: ältere Nachrichten kürzen, damit dieser Chat fortgesetzt werden kann.", "Compacting context": "Kontext wird verdichtet", "Compacting context...": "Kontext wird verdichtet...", - "Compaction summary": "", + "Compaction summary": "Zusammenfassung der Kontextverdichtung", "Compare": "Vergleichen", "Compare files": "Dateien vergleichen", "Compare revision": "Überarbeitung vergleichen", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex-Farbe", "Hex Color - Leave empty for default color": "Hex-Farbe - Leer lassen für Standard", "Hidden": "Versteckt", - "Hidden Models": "", + "Hidden Models": "Ausgeblendete Modelle", "Hide": "Verbergen", "Hide All": "Alle verstecken", "Hide conversation": "Unterhaltung ausblenden", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Authenticator wiederherstellen", "Recovery code": "Wiederherstellungscode", "Redirecting you to Open WebUI Community": "Sie werden zur Open WebUI Community weitergeleitet", - "Redo": "", + "Redo": "Wiederholen", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Verringert die Wahrscheinlichkeit von unsinnigen Ausgaben. Ein höherer Wert (z. B. 100) führt zu vielfältigeren Antworten, während ein niedrigerer Wert (z. B. 10) konservativer ist.", "Reference Chats": "Chats referenzieren", "Refresh": "Aktualisieren", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Client-ID", "settings.admin.authentication.clientSecret.description": "Client-Secret vom OAuth-Anbieter.", "settings.admin.authentication.clientSecret.label": "Client-Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Verwendet username@domain, wenn das LDAP-E-Mail-Attribut leer ist. Zum Deaktivieren leer lassen. Meldet den Benutzer bei einem bestehenden Konto mit dieser E-Mail-Adresse an; verwenden Sie eine Domain, die Sie selbst verwalten.", + "settings.admin.authentication.defaultEmailDomain.label": "Standard-E-Mail-Domain", "settings.admin.authentication.defaultGroup.description": "Gruppe, der neue Benutzer standardmäßig zugewiesen werden.", "settings.admin.authentication.defaultGroup.label": "Standardgruppe", "settings.admin.authentication.defaultUserRole.description": "Rolle, die neuen Benutzern beim Erstellen eines Kontos zugewiesen wird.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Schwellenwert für Zurückstellung (Zeichen)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Gibt vor, wie der Assistent Werkzeug- und Funktionsaufrufe formatiert.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt für Werkzeug-Funktionsaufrufe", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Legt fest, welche Steuerelemente Benutzern angezeigt werden. Beim Ausblenden eines Steuerelements bleibt dessen aktuelle Einstellung erhalten, und die zugrunde liegende Funktion bleibt verfügbar. Administratoren sehen immer alle verfügbaren Steuerelemente.", + "settings.admin.interface.visibility.title": "Sichtbare Steuerelemente", "settings.admin.interface.voiceModePrompt.description": "Wendet spezielle Anweisungen an, solange der Sprachmodus aktiv ist.", "settings.admin.interface.voiceModePrompt.label": "Prompt für Sprachmodus", "settings.admin.interface.webSearchQueryGeneration.description": "Formuliert Benutzeranfragen in Websuchanfragen um.", diff --git a/src/lib/i18n/locales/el-GR/translation.json b/src/lib/i18n/locales/el-GR/translation.json index 670b214a9c..a050787582 100644 --- a/src/lib/i18n/locales/el-GR/translation.json +++ b/src/lib/i18n/locales/el-GR/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Επιτρέπεται η Αξιολόγηση Απάντησης", "Allow Regenerate Response": "Επιτρέπεται η Επαναδημιουργία Απάντησης", "Allow replies": "Επιτρέπονται απαντήσεις", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Επιτρέπει την επιλογή κρυφών μοντέλων ως βασικών μοντέλων.", "Allow Sharing With Groups": "Επιτρέπεται η κοινή χρήση με ομάδες", "Allow Sharing With Users": "Επιτρέπεται η κοινή χρήση με χρήστες", "Allow Speech to Text": "Επιτρέπεται η Μετατροπή Φωνής σε Κείμενο", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Συμπύκνωση: σύντμηση παλαιότερων μηνυμάτων, ώστε η συνομιλία να μπορεί να συνεχιστεί.", "Compacting context": "Συμπύκνωση συμφραζομένων", "Compacting context...": "Συμπύκνωση συμφραζομένων...", - "Compaction summary": "", + "Compaction summary": "Περίληψη συμπύκνωσης", "Compare": "Σύγκριση", "Compare files": "Σύγκριση αρχείων", "Compare revision": "Σύγκριση αναθεώρησης", @@ -1411,7 +1411,7 @@ "Hex Color": "Χρώμα Hex", "Hex Color - Leave empty for default color": "Χρώμα Hex - Αφήστε κενό για προεπιλεγμένο χρώμα", "Hidden": "Κρυφό", - "Hidden Models": "", + "Hidden Models": "Κρυφά μοντέλα", "Hide": "Απόκρυψη", "Hide All": "Απόκρυψη όλων", "Hide conversation": "Απόκρυψη συνομιλίας", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Ανάκτηση της εφαρμογής ταυτοποίησης", "Recovery code": "Κωδικός ανάκτησης", "Redirecting you to Open WebUI Community": "Μετακατεύθυνση στην Κοινότητα OpenWebUI", - "Redo": "", + "Redo": "Ακύρωση αναίρεσης", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Μειώνει την πιθανότητα δημιουργίας ασυναρτησιών. Μια υψηλότερη τιμή (π.χ. 100) θα δώσει πιο ποικίλες απαντήσεις, ενώ μια χαμηλότερη τιμή (π.χ. 10) θα είναι πιο συντηρητική.", "Reference Chats": "Αναφορά σε Συνομιλίες", "Refresh": "Ανανέωση", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ID πελάτη", "settings.admin.authentication.clientSecret.description": "Μυστικό πελάτη OAuth από τον πάροχο.", "settings.admin.authentication.clientSecret.label": "Μυστικό πελάτη", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Χρησιμοποιεί το username@domain όταν το γνώρισμα email του LDAP είναι κενό. Αφήστε το κενό για απενεργοποίηση. Συνδέει τον χρήστη σε υπάρχοντα λογαριασμό με αυτό το email. Χρησιμοποιήστε ένα domain που διαχειρίζεστε εσείς.", + "settings.admin.authentication.defaultEmailDomain.label": "Προεπιλεγμένο domain email", "settings.admin.authentication.defaultGroup.description": "Ομάδα που ανατίθεται από προεπιλογή στους νέους χρήστες.", "settings.admin.authentication.defaultGroup.label": "Προεπιλεγμένη ομάδα", "settings.admin.authentication.defaultUserRole.description": "Ρόλος που ανατίθεται στους νέους χρήστες όταν δημιουργούν λογαριασμό.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Όριο αναβολής (χαρακτήρες)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Καθοδηγεί τον τρόπο με τον οποίο ο βοηθός μορφοποιεί τις κλήσεις εργαλείων και λειτουργιών.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Προτροπή Κλήσης Εργαλείων Λειτουργιών", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Επιλέξτε ποια στοιχεία ελέγχου εμφανίζονται στους χρήστες. Η απόκρυψη ενός στοιχείου ελέγχου διατηρεί την τρέχουσα ρύθμισή του και τη σχετική λειτουργία διαθέσιμη. Οι διαχειριστές βλέπουν πάντα τα διαθέσιμα στοιχεία ελέγχου.", + "settings.admin.interface.visibility.title": "Ορατά στοιχεία ελέγχου", "settings.admin.interface.voiceModePrompt.description": "Εφαρμόζει οδηγίες ειδικά για τη φωνή όσο η λειτουργία φωνής είναι ενεργή.", "settings.admin.interface.voiceModePrompt.label": "Προτροπή λειτουργίας φωνής", "settings.admin.interface.webSearchQueryGeneration.description": "Αναδιατυπώνει τα αιτήματα των χρηστών σε ερωτήματα αναζήτησης στο διαδίκτυο.", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 983ec2b715..31aa6c15ce 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Permitir Calificar Respuesta", "Allow Regenerate Response": "Permitir Regenerar Respuesta", "Allow replies": "Permitir respuestas", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Permite seleccionar modelos ocultos como modelos base.", "Allow Sharing With Groups": "Permitir Compartir con Grupos", "Allow Sharing With Users": "Permitir Compartir con Usuarios", "Allow Speech to Text": "Permitir Transcribir Voz a Texto", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Compactar: acorta los mensajes más antiguos para que este chat pueda continuar.", "Compacting context": "Compactando el contexto", "Compacting context...": "Compactando el contexto...", - "Compaction summary": "", + "Compaction summary": "Resumen de compactación", "Compare": "Comparar", "Compare files": "Comparar archivos", "Compare revision": "Comparar revisión", @@ -1429,7 +1429,7 @@ "Hex Color": "Color Hex", "Hex Color - Leave empty for default color": "Color Hex - Deja vacío para el color predeterminado", "Hidden": "Oculto", - "Hidden Models": "", + "Hidden Models": "Modelos Ocultos", "Hide": "Esconder", "Hide All": "Ocultar Todo", "Hide conversation": "Ocultar conversación", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Recupera tu autenticador", "Recovery code": "Código de recuperación", "Redirecting you to Open WebUI Community": "Redireccionando a la Comunidad Open WebUI", - "Redo": "", + "Redo": "Rehacer", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reduce la probabilidad de generación sin sentido. Un valor más alto (p.ej. 100) dará respuestas más diversas, mientras que un valor más bajo (p.ej. 10) será más conservador.", "Reference Chats": "Referenciar Chats", "Refresh": "Refrescar", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "ID de Cliente", "settings.admin.authentication.clientSecret.description": "Contraseña de cliente de OAuth proporcionada por el proveedor.", "settings.admin.authentication.clientSecret.label": "Contraseña del Cliente", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Usa username@domain cuando el atributo de correo electrónico de LDAP está vacío. Déjalo vacío para deshabilitarlo. Si ya existe una cuenta con ese correo electrónico, se inicia sesión en ella; usa un dominio que controles.", + "settings.admin.authentication.defaultEmailDomain.label": "Dominio de Correo Electrónico Predeterminado", "settings.admin.authentication.defaultGroup.description": "Grupo asignado a los usuarios nuevos de forma predeterminada.", "settings.admin.authentication.defaultGroup.label": "Grupo Predeterminado", "settings.admin.authentication.defaultUserRole.description": "Rol asignado a los usuarios nuevos cuando crean una cuenta.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Umbral de Aplazamiento (caracteres)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Guía cómo el asistente formatea las llamadas a herramientas y funciones.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt para la Función de Llamada a las Herramientas", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Elige qué controles se muestran a los usuarios. Ocultar un control mantiene su ajuste actual y la característica subyacente disponible. Los administradores siempre ven los controles disponibles.", + "settings.admin.interface.visibility.title": "Controles visibles", "settings.admin.interface.voiceModePrompt.description": "Aplica instrucciones específicas de voz mientras el modo de voz está activo.", "settings.admin.interface.voiceModePrompt.label": "Prompt para el Modo Voz", "settings.admin.interface.webSearchQueryGeneration.description": "Reescribe las solicitudes de los usuarios como consultas de búsqueda web.", diff --git a/src/lib/i18n/locales/et-EE/translation.json b/src/lib/i18n/locales/et-EE/translation.json index f966c7c2f4..b5cbb7e027 100644 --- a/src/lib/i18n/locales/et-EE/translation.json +++ b/src/lib/i18n/locales/et-EE/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Luba vastuse hindamine", "Allow Regenerate Response": "Luba vastuse uuestigenereerimine", "Allow replies": "Luba vastamine", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Luba peidetud mudelite valimine baasmudeliteks.", "Allow Sharing With Groups": "Luba jagamine gruppidega", "Allow Sharing With Users": "Luba jagamine kasutajatega", "Allow Speech to Text": "Luba kõnest tekstiks", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Tihenda: lühenda vanemaid sõnumeid, et see vestlus saaks jätkuda.", "Compacting context": "Konteksti tihendamine", "Compacting context...": "Konteksti tihendamine...", - "Compaction summary": "", + "Compaction summary": "Tihendamise kokkuvõte", "Compare": "Võrdle", "Compare files": "Võrdle faile", "Compare revision": "Võrdle redaktsiooni", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex värv", "Hex Color - Leave empty for default color": "Hex värv - jätke tühjaks vaikevärvi jaoks", "Hidden": "Peidetud", - "Hidden Models": "", + "Hidden Models": "Peidetud mudelid", "Hide": "Peida", "Hide All": "Peida kõik", "Hide conversation": "Peida vestlus", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Taastage oma autentimisrakendus", "Recovery code": "Taastamiskood", "Redirecting you to Open WebUI Community": "Suunamine Open WebUI kogukonda", - "Redo": "", + "Redo": "Tee uuesti", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Vähendab mõttetuste genereerimise tõenäosust. Kõrgem väärtus (nt 100) annab mitmekesisemaid vastuseid, samas kui madalam väärtus (nt 10) on konservatiivsem.", "Reference Chats": "Viitevestlused", "Refresh": "Värskenda", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Kliendi ID", "settings.admin.authentication.clientSecret.description": "Teenusepakkujalt saadud OAuthi kliendi salavõti.", "settings.admin.authentication.clientSecret.label": "Kliendi salavõti", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Kasutab aadressi username@domain, kui LDAP-i e-posti atribuut on tühi. Keelamiseks jätke tühjaks. Logib sisse selle e-posti aadressiga olemasolevale kontole; kasutage domeeni, mida te haldate.", + "settings.admin.authentication.defaultEmailDomain.label": "Vaikimisi e-posti domeen", "settings.admin.authentication.defaultGroup.description": "Uutele kasutajatele vaikimisi määratav grupp.", "settings.admin.authentication.defaultGroup.label": "Vaikimisi grupp", "settings.admin.authentication.defaultUserRole.description": "Roll, mis määratakse uutele kasutajatele konto loomisel.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Edasilükkamise lävi (märki)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Juhendab, kuidas assistent vormindab tööriistade ja funktsioonide kutseid.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Tööriistade funktsioonide kutsumise sisend", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Vali, millised juhtnupud kasutajatele kuvatakse. Juhtnupu peitmisel säilib selle praegune seade ja vastav funktsioon jääb kättesaadavaks. Administraatorid näevad alati saadaolevaid juhtnuppe.", + "settings.admin.interface.visibility.title": "Nähtavad juhtnupud", "settings.admin.interface.voiceModePrompt.description": "Rakenda häälrežiimi ajal hääle jaoks mõeldud juhiseid.", "settings.admin.interface.voiceModePrompt.label": "Häälrežiimi sisend", "settings.admin.interface.webSearchQueryGeneration.description": "Kirjuta kasutaja päringud ümber veebiotsingu päringuteks.", diff --git a/src/lib/i18n/locales/eu-ES/translation.json b/src/lib/i18n/locales/eu-ES/translation.json index 82fdbe1d8f..8688675111 100644 --- a/src/lib/i18n/locales/eu-ES/translation.json +++ b/src/lib/i18n/locales/eu-ES/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Baimendu erantzuna baloratzea", "Allow Regenerate Response": "Baimendu erantzuna berriro sortzea", "Allow replies": "Baimendu erantzunak", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Baimendu ezkutuko modeloak oinarrizko modelo gisa hautatzea.", "Allow Sharing With Groups": "Baimendu taldeekin partekatzea", "Allow Sharing With Users": "Baimendu erabiltzaileekin partekatzea", "Allow Speech to Text": "Baimendu hizketa testu bihurtzea", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Laburtu kontekstua: laburtu mezu zaharragoak txat honek jarraitu ahal izateko.", "Compacting context": "Kontekstua laburtzen", "Compacting context...": "Kontekstua laburtzen...", - "Compaction summary": "", + "Compaction summary": "Testuinguruaren laburpena", "Compare": "Alderatu", "Compare files": "Alderatu fitxategiak", "Compare revision": "Alderatu berrikuspena", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex Kolorea", "Hex Color - Leave empty for default color": "Hex Kolorea - Utzi hutsik kolore lehenetsia erabiltzeko", "Hidden": "Ezkutuan", - "Hidden Models": "", + "Hidden Models": "Ezkutuko modeloak", "Hide": "Ezkutatu", "Hide All": "Ezkutatu denak", "Hide conversation": "Ezkutatu elkarrizketa", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Berreskuratu zure autentifikatzailea", "Recovery code": "Berreskuratze-kodea", "Redirecting you to Open WebUI Community": "OpenWebUI Komunitatera berbideratzen", - "Redo": "", + "Redo": "Berregin", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Zentzugabekeriak sortzeko probabilitatea murrizten du. Balio handiago batek (adibidez, 100) erantzun anitzagoak emango ditu; balio txikiago batek (adibidez, 10), berriz, erantzun kontserbadoreagoak.", "Reference Chats": "Erreferentziazko txatak", "Refresh": "Freskatu", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Bezeroaren IDa", "settings.admin.authentication.clientSecret.description": "Hornitzailearen OAuth bezero-sekretua.", "settings.admin.authentication.clientSecret.label": "Bezeroaren sekretua", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Helbide elektronikoaren LDAP atributua hutsik dagoenean, username@domain erabiltzen du. Utzi hutsik desgaitzeko. Helbide elektroniko hori duen lehendik dagoen kontuan hasten du saioa; erabili zuk kontrolatzen duzun domeinu bat.", + "settings.admin.authentication.defaultEmailDomain.label": "Posta-domeinu lehenetsia", "settings.admin.authentication.defaultGroup.description": "Erabiltzaile berriei lehenespenez esleitzen zaien taldea.", "settings.admin.authentication.defaultGroup.label": "Talde lehenetsia", "settings.admin.authentication.defaultUserRole.description": "Erabiltzaile berriei kontua sortzean esleitzen zaien rola.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Geroratze-atalasea (karaktereak)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Laguntzaileak tresna- eta funtzio-deiei formatua nola ematen dien gidatzen du.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Tresnen funtzio-deietarako prompt-a", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Aukeratu erabiltzaileei zein kontrol erakusten zaizkien. Kontrol bat ezkutatzean, haren uneko ezarpena mantentzen da eta dagokion funtzionalitateak erabilgarri jarraitzen du. Administratzaileek beti ikusten dituzte erabilgarri dauden kontrolak.", + "settings.admin.interface.visibility.title": "Kontrol ikusgaiak", "settings.admin.interface.voiceModePrompt.description": "Aplikatu ahotserako argibide espezifikoak ahots-modua aktibo dagoen bitartean.", "settings.admin.interface.voiceModePrompt.label": "Ahots-moduko prompt-a", "settings.admin.interface.webSearchQueryGeneration.description": "Berridatzi erabiltzaileen eskaerak web-bilaketako kontsulta bihurtuz.", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 78fbf68fcf..e0f9679b61 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "مجاز کردن امتیازدهی به پاسخ", "Allow Regenerate Response": "مجاز کردن بازتولید پاسخ", "Allow replies": "اجازه پاسخ", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "اجازه دهید مدل‌های پنهان به عنوان مدل‌های پایه انتخاب شوند.", "Allow Sharing With Groups": "اجازه اشتراک\u200cگذاری با گروه\u200cها", "Allow Sharing With Users": "اجازه اشتراک\u200cگذاری با کاربران", "Allow Speech to Text": "اجازه تبدیل گفتار به متن", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "فشرده\u200cسازی: پیام\u200cهای قدیمی\u200cتر را کوتاه کنید تا این گفتگو بتواند ادامه یابد.", "Compacting context": "در حال فشرده\u200cسازی زمینه", "Compacting context...": "در حال فشرده\u200cسازی زمینه...", - "Compaction summary": "", + "Compaction summary": "خلاصه فشرده‌سازی", "Compare": "مقایسه", "Compare files": "مقایسه فایل\u200cها", "Compare revision": "مقایسه نسخه بازبینی شده", @@ -1411,7 +1411,7 @@ "Hex Color": "رنگ هگز", "Hex Color - Leave empty for default color": "رنگ هگز - برای رنگ پیش\u200cفرض خالی بگذارید", "Hidden": "پنهان", - "Hidden Models": "", + "Hidden Models": "مدل‌های پنهان", "Hide": "پنهان\u200cسازی", "Hide All": "پنهان کردن همه", "Hide conversation": "پنهان کردن مکالمه", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "بازیابی برنامه احراز هویت", "Recovery code": "کد بازیابی", "Redirecting you to Open WebUI Community": "در حال هدایت به Open WebUI Community", - "Redo": "", + "Redo": "ازنو", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "احتمال تولید محتوای بی\u200cمعنی را کاهش می\u200cدهد. مقدار بالاتر (مثلاً 100) پاسخ\u200cهای متنوع\u200cتری می\u200cدهد، در حالی که مقدار پایین\u200cتر (مثلاً 10) محافظه\u200cکارانه\u200cتر خواهد بود.", "Reference Chats": "چت\u200cهای مرجع", "Refresh": "تازه\u200cسازی", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "شناسه کلاینت", "settings.admin.authentication.clientSecret.description": "کلید مخفی کلاینت OAuth از ارائه\u200cدهنده.", "settings.admin.authentication.clientSecret.label": "کلید مخفی کلاینت", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "هنگامی که ویژگی ایمیل LDAP خالی است، از username@domain استفاده می‌کند. برای غیرفعال کردن، خالی بگذارید. کاربر را به حساب موجودی که همین ایمیل را دارد وارد می‌کند؛ از دامنه‌ای استفاده کنید که تحت کنترل شماست.", + "settings.admin.authentication.defaultEmailDomain.label": "دامنه پیش‌فرض ایمیل", "settings.admin.authentication.defaultGroup.description": "گروهی که به طور پیش\u200cفرض به کاربران جدید اختصاص داده می\u200cشود.", "settings.admin.authentication.defaultGroup.label": "گروه پیش\u200cفرض", "settings.admin.authentication.defaultUserRole.description": "نقشی که هنگام ایجاد حساب به کاربران جدید اختصاص داده می\u200cشود.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "آستانه تعویق (کاراکتر)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "نحوه قالب\u200cبندی فراخوانی\u200cهای ابزار و تابع توسط دستیار را هدایت می\u200cکند.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "پرامپت فراخوانی تابع ابزارها", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "انتخاب کنید کدام کنترل‌ها برای کاربران نمایش داده شوند. پنهان کردن یک کنترل تنظیم فعلی آن را حفظ می‌کند و ویژگی مربوط به آن همچنان در دسترس می‌ماند. مدیران همیشه کنترل‌های در دسترس را می‌بینند.", + "settings.admin.interface.visibility.title": "کنترل‌های قابل مشاهده", "settings.admin.interface.voiceModePrompt.description": "هنگامی که حالت صوتی فعال است، دستورالعمل\u200cهای مختص صوت را اعمال کنید.", "settings.admin.interface.voiceModePrompt.label": "پرامپت حالت صوتی", "settings.admin.interface.webSearchQueryGeneration.description": "درخواست\u200cهای کاربر را به پرس\u200cوجوهای جستجوی وب بازنویسی کنید.", diff --git a/src/lib/i18n/locales/fil-PH/translation.json b/src/lib/i18n/locales/fil-PH/translation.json index 9d223364d5..cc2adb040b 100644 --- a/src/lib/i18n/locales/fil-PH/translation.json +++ b/src/lib/i18n/locales/fil-PH/translation.json @@ -224,7 +224,7 @@ "Allow Rate Response": "Payagan ang Pag-rate ng Tugon", "Allow Regenerate Response": "Payagan ang Muling Pagbuo ng Tugon", "Allow replies": "Payagan ang mga sagot", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Payagan ang pagpili ng mga nakatagong modelo bilang mga batayang modelo.", "Allow Sharing With Groups": "Payagan ang Pagbabahagi sa mga Grupo", "Allow Sharing With Users": "Payagan ang Pagbabahagi sa mga Gumagamit", "Allow Speech to Text": "Payagan ang Speech-to-Text", @@ -556,7 +556,7 @@ "Compact: shorten older messages so this chat can keep going.": "I-compact: paikliin ang mga mas lumang mensahe para makapagpatuloy ang chat na ito.", "Compacting context": "Nagko-compact ng konteksto", "Compacting context...": "Nagko-compact ng konteksto...", - "Compaction summary": "", + "Compaction summary": "Buod ng pag-compact", "Compare": "Ihambing", "Compare files": "Ihambing ang mga file", "Compare revision": "Ihambing ang rebisyon", @@ -1412,7 +1412,7 @@ "Hex Color": "Hex na Kulay", "Hex Color - Leave empty for default color": "Hex na Kulay - Iwanang blangko para sa default na kulay", "Hidden": "Nakatago", - "Hidden Models": "", + "Hidden Models": "Mga Nakatagong Modelo", "Hide": "Itago", "Hide All": "Itago ang Lahat", "Hide conversation": "Itago ang usapan", @@ -2162,7 +2162,7 @@ "Recover your authenticator": "I-recover ang iyong authenticator app", "Recovery code": "Recovery code", "Redirecting you to Open WebUI Community": "Dinadala ka sa Open WebUI Community", - "Redo": "", + "Redo": "Gawin Muli", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Binabawasan ang posibilidad na makabuo ng walang saysay na nilalaman. Magbibigay ang mas mataas na halaga (hal. 100) ng mas magkakaibang sagot, habang mas konserbatibo ang mas mababang halaga (hal. 10).", "Reference Chats": "Gamitin Bilang Sanggunian ang mga Chat", "Refresh": "I-refresh", @@ -2530,8 +2530,8 @@ "settings.admin.authentication.clientId.label": "Client ID", "settings.admin.authentication.clientSecret.description": "OAuth client secret mula sa provider.", "settings.admin.authentication.clientSecret.label": "Client Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Ginagamit ang username@domain kapag blangko ang LDAP attribute para sa email. Iwanang blangko para i-disable. Nagsa-sign in sa isang umiiral na account na may email na iyon; gumamit ng domain na kontrolado mo.", + "settings.admin.authentication.defaultEmailDomain.label": "Default na Domain ng Email", "settings.admin.authentication.defaultGroup.description": "Grupong itinatalaga sa mga bagong gumagamit bilang default.", "settings.admin.authentication.defaultGroup.label": "Default na Grupo", "settings.admin.authentication.defaultUserRole.description": "Tungkuling itinatalaga sa mga bagong gumagamit kapag gumawa sila ng account.", @@ -3029,8 +3029,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Threshold ng Pagpapaliban (mga character)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Gumagabay sa paraan ng pag-format ng assistant ng mga tool call at function call.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt sa Function Calling ng mga Tool", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Piliin kung aling mga kontrol ang makikita ng mga gumagamit. Kapag itinago ang isang kontrol, mananatili ang kasalukuyan nitong setting at magagamit pa rin ang pinagbabatayang feature nito. Palaging nakikita ng mga administrator ang mga magagamit na kontrol.", + "settings.admin.interface.visibility.title": "Mga nakikitang kontrol", "settings.admin.interface.voiceModePrompt.description": "Ilapat ang mga tagubiling partikular sa boses habang aktibo ang voice mode.", "settings.admin.interface.voiceModePrompt.label": "Prompt ng Voice Mode", "settings.admin.interface.webSearchQueryGeneration.description": "Muling isulat ang mga request ng gumagamit bilang mga query sa paghahanap sa web.", diff --git a/src/lib/i18n/locales/fo-FO/translation.json b/src/lib/i18n/locales/fo-FO/translation.json index 8ebb3875e9..a36f4641f6 100644 --- a/src/lib/i18n/locales/fo-FO/translation.json +++ b/src/lib/i18n/locales/fo-FO/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Loyv meting av svari", "Allow Regenerate Response": "Loyv at gera svar av nýggjum", "Allow replies": "Loyv svarum", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Loyv at velja fjald modell sum grundmodell.", "Allow Sharing With Groups": "Loyv deiling við bólkum", "Allow Sharing With Users": "Loyv deiling við brúkarum", "Allow Speech to Text": "Loyv talu til tekst", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Stytt: stytt eldri boð, so hetta kjattið kann halda fram.", "Compacting context": "Styttir samanhang", "Compacting context...": "Styttir samanhang...", - "Compaction summary": "", + "Compaction summary": "Samandráttur frá stytting av samanhangi", "Compare": "Samanber", "Compare files": "Samanber fílur", "Compare revision": "Samanber endurskoðaða útgávu", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex-litur", "Hex Color - Leave empty for default color": "Hex-litur – lat standa tómt fyri standardlit", "Hidden": "Fjalt", - "Hidden Models": "", + "Hidden Models": "Fjald modell", "Hide": "Fjal", "Hide All": "Fjal alt", "Hide conversation": "Fjal samrøðu", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Endurreis váttanarappina hjá tær", "Recovery code": "Endurreisingarkoda", "Redirecting you to Open WebUI Community": "Tú verður send/ur víðari til Open WebUI Community", - "Redo": "", + "Redo": "Ger umaftur", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Minkar um sannlíkindini fyri at gera meiningsleyst innihald. Eitt hægri virði (t.d. 100) gevur meira fjølbroytt svar, meðan eitt lægri virði (t.d. 10) er varligari.", "Reference Chats": "Tilvísingarkjatt", "Refresh": "Endurnýggja", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Klienta-ID", "settings.admin.authentication.clientSecret.description": "OAuth-klientaloyndarmál frá veitaranum.", "settings.admin.authentication.clientSecret.label": "Klientaloyndarmál", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Nýtir username@domain, tá LDAP-eginleikin fyri teldupost er tómur. Lat standa tómt fyri at gera funktiónina óvirkna. Finst longu ein konta við teirri teldupostadressuni, verður ritað inn á hana; nýt eitt økisnavn, sum tú hevur ræði á.", + "settings.admin.authentication.defaultEmailDomain.label": "Standardøkisnavn fyri teldupost", "settings.admin.authentication.defaultGroup.description": "Bólkur, sum nýggir brúkarar fáa sum standard.", "settings.admin.authentication.defaultGroup.label": "Standardbólkur", "settings.admin.authentication.defaultUserRole.description": "Leiklutur, ið verður tillutaður nýggjum brúkarum, tá teir stovna eina konto.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Útsetingarmark (tekin)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Vegleiðir, hvussu hjálparin sniðgevur amboðs- og funktiónskall.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt til funktiónskall hjá amboðum", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Vel, hvørjar stýringar verða vístar brúkarum. Tá ein stýring verður fjald, verður núverandi stillingin varðveitt, og undirliggjandi funktiónin er framvegis tøk. Fyrisitarar síggja altíð tøkar stýringar.", + "settings.admin.interface.visibility.title": "Sjónligar stýringar", "settings.admin.interface.voiceModePrompt.description": "Brúka røddarserskildar vegleiðingar, meðan røddarhamur er virkin.", "settings.admin.interface.voiceModePrompt.label": "Prompt til røddarhátt", "settings.admin.interface.webSearchQueryGeneration.description": "Endurskriva brúkaraumbønir til vevleitingarsetningar.", diff --git a/src/lib/i18n/locales/gl-ES/translation.json b/src/lib/i18n/locales/gl-ES/translation.json index 49aa00eee9..1231cfc343 100644 --- a/src/lib/i18n/locales/gl-ES/translation.json +++ b/src/lib/i18n/locales/gl-ES/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Permitir valorar a resposta", "Allow Regenerate Response": "Permitir rexenerar a resposta", "Allow replies": "Permitir respostas", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Permite seleccionar modelos ocultos como modelos base.", "Allow Sharing With Groups": "Permitir compartir con grupos", "Allow Sharing With Users": "Permitir compartir con usuarios", "Allow Speech to Text": "Permitir voz a texto", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Compactar: acurtar as mensaxes máis antigas para que este chat poida continuar.", "Compacting context": "Compactando o contexto", "Compacting context...": "Compactando o contexto...", - "Compaction summary": "", + "Compaction summary": "Resumo da compactación", "Compare": "Comparar", "Compare files": "Comparar ficheiros", "Compare revision": "Comparar revisión", @@ -1411,7 +1411,7 @@ "Hex Color": "Cor Hex", "Hex Color - Leave empty for default color": "Cor Hex - deixa vacío para o color predeterminado", "Hidden": "Oculto", - "Hidden Models": "", + "Hidden Models": "Modelos ocultos", "Hide": "Esconder", "Hide All": "Ocultar todo", "Hide conversation": "Ocultar conversa", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Recuperar o seu autenticador", "Recovery code": "Código de recuperación", "Redirecting you to Open WebUI Community": "Redireccionándote a a comunidad OpenWebUI", - "Redo": "", + "Redo": "Refacer", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reduce a probabilidade de xerar texto sen sentido. Un valor máis alto (p. ex. 100) dará respostas máis variadas, mentres que un valor máis baixo (p. ex. 10) será máis conservador.", "Reference Chats": "Referenciar chats", "Refresh": "Recargar", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ID de cliente", "settings.admin.authentication.clientSecret.description": "Segredo de cliente OAuth do provedor.", "settings.admin.authentication.clientSecret.label": "Segredo de cliente", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Usa username@domain cando o atributo de correo electrónico de LDAP está baleiro. Deixe en branco para desactivar. Se xa existe unha conta con ese correo electrónico, iníciase sesión nela; use un dominio que controle.", + "settings.admin.authentication.defaultEmailDomain.label": "Dominio de correo electrónico predeterminado", "settings.admin.authentication.defaultGroup.description": "Grupo que se asigna de forma predeterminada aos novos usuarios.", "settings.admin.authentication.defaultGroup.label": "Grupo predeterminado", "settings.admin.authentication.defaultUserRole.description": "Rol que se asigna aos novos usuarios cando crean unha conta.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Limiar de aprazamento (caracteres)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Guía como dá formato o asistente ás chamadas de ferramentas e de funcións.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt de chamada de funcións de ferramentas", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Escolla que controis se mostran aos usuarios. Ao ocultar un control, consérvase a súa configuración actual e a funcionalidade subxacente segue dispoñible. Os administradores sempre ven os controis dispoñibles.", + "settings.admin.interface.visibility.title": "Controis visibles", "settings.admin.interface.voiceModePrompt.description": "Aplica instrucións específicas para a voz mentres o modo de voz está activo.", "settings.admin.interface.voiceModePrompt.label": "Prompt do modo de voz", "settings.admin.interface.webSearchQueryGeneration.description": "Reescribe as solicitudes dos usuarios como consultas de busca na web.", diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json index 80e3954274..559dcde652 100644 --- a/src/lib/i18n/locales/he-IL/translation.json +++ b/src/lib/i18n/locales/he-IL/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "אפשר דירוג תגובה", "Allow Regenerate Response": "אפשר הפקה מחדש של תגובה", "Allow replies": "מתן אפשרות להשיב", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "אפשר בחירה במודלים מוסתרים כמודלי בסיס.", "Allow Sharing With Groups": "אפשר שיתוף עם קבוצות", "Allow Sharing With Users": "אפשר שיתוף עם משתמשים", "Allow Speech to Text": "אפשר המרת דיבור לטקסט", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "דחיסה: קיצור הודעות ישנות כדי שאפשר יהיה להמשיך בצ'אט הזה.", "Compacting context": "דוחס את ההקשר", "Compacting context...": "דוחס את ההקשר...", - "Compaction summary": "", + "Compaction summary": "סיכום דחיסת ההקשר", "Compare": "השווה", "Compare files": "השוואת קבצים", "Compare revision": "השווה גרסה", @@ -1429,7 +1429,7 @@ "Hex Color": "צבע הקסדצימלי", "Hex Color - Leave empty for default color": "צבע הקסדצימלי - השאר ריק לצבע ברירת המחדל", "Hidden": "מוסתר", - "Hidden Models": "", + "Hidden Models": "מודלים מוסתרים", "Hide": "הסתר", "Hide All": "הסתר הכול", "Hide conversation": "הסתר שיחה", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "שחזר את אפליקציית האימות", "Recovery code": "קוד שחזור", "Redirecting you to Open WebUI Community": "מפנה אותך לקהילת OpenWebUI", - "Redo": "", + "Redo": "בצע שוב", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "מפחית את ההסתברות ליצירת שטויות. ערך גבוה יותר (למשל 100) ייתן תשובות מגוונות יותר, וערך נמוך יותר (למשל 10) יהיה שמרני יותר.", "Reference Chats": "צרף צ'אטים", "Refresh": "רענן", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "מזהה לקוח", "settings.admin.authentication.clientSecret.description": "סוד לקוח OAuth שהתקבל מהספק.", "settings.admin.authentication.clientSecret.label": "סוד לקוח", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "שימוש בכתובת username@domain כאשר מאפיין הדוא\"ל ב-LDAP ריק. השאר ריק כדי להשבית. ההתחברות מתבצעת לחשבון קיים עם כתובת הדוא\"ל הזו; השתמש בדומיין שבשליטתך.", + "settings.admin.authentication.defaultEmailDomain.label": "דומיין ברירת מחדל לדוא\"ל", "settings.admin.authentication.defaultGroup.description": "הקבוצה שמשויכת למשתמשים חדשים כברירת מחדל.", "settings.admin.authentication.defaultGroup.label": "קבוצת ברירת מחדל", "settings.admin.authentication.defaultUserRole.description": "התפקיד שמשויך למשתמשים חדשים בעת יצירת חשבון.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "סף לדחיית טעינה (תווים)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "מנחה את העוזר כיצד לעצב קריאות לכלים ולפונקציות.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "הנחיית קריאה לפונקציות של כלים", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "בחירת הפקדים שיוצגו למשתמשים. הסתרת פקד משמרת את ההגדרה הנוכחית שלו ואת זמינות התכונה שהוא שולט בה. מנהלי המערכת תמיד רואים את הפקדים הזמינים.", + "settings.admin.interface.visibility.title": "פקדים גלויים", "settings.admin.interface.voiceModePrompt.description": "החלת הוראות ייעודיות לקול כשהמצב הקולי פעיל.", "settings.admin.interface.voiceModePrompt.label": "הנחיית מצב קולי", "settings.admin.interface.webSearchQueryGeneration.description": "שכתוב בקשות משתמשים לשאילתות חיפוש באינטרנט.", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index e9c07e85f4..d93dc6c854 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "उत्तर को रेटिंग देने की अनुमति दें", "Allow Regenerate Response": "उत्तर फिर से बनाने की अनुमति दें", "Allow replies": "जवाब देने की अनुमति दें", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "छिपे हुए मॉडल को आधार मॉडल के रूप में चुनने की अनुमति दें.", "Allow Sharing With Groups": "समूहों के साथ साझा करने की अनुमति दें", "Allow Sharing With Users": "उपयोगकर्ताओं के साथ साझा करने की अनुमति दें", "Allow Speech to Text": "बोली से पाठ की अनुमति दें", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "संक्षिप्त करें: पुराने संदेश छोटे करें ताकि यह चैट जारी रह सके.", "Compacting context": "संदर्भ संक्षिप्त हो रहा है", "Compacting context...": "संदर्भ संक्षिप्त हो रहा है...", - "Compaction summary": "", + "Compaction summary": "संक्षेपण का सारांश", "Compare": "तुलना करें", "Compare files": "फ़ाइलों की तुलना करें", "Compare revision": "संशोधन की तुलना करें", @@ -1411,7 +1411,7 @@ "Hex Color": "हेक्स रंग", "Hex Color - Leave empty for default color": "हेक्स रंग - डिफ़ॉल्ट रंग के लिए खाली छोड़ें", "Hidden": "छिपा हुआ", - "Hidden Models": "", + "Hidden Models": "छिपे हुए मॉडल", "Hide": "छुपाएं", "Hide All": "सभी छिपाएँ", "Hide conversation": "बातचीत छिपाएँ", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "अपना ऑथेंटिकेटर पुनर्प्राप्त करें", "Recovery code": "रिकवरी कोड", "Redirecting you to Open WebUI Community": "आपको Open WebUI समुदाय पर पुनर्निर्देशित किया जा रहा है", - "Redo": "", + "Redo": "दोबारा करें", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "अर्थहीन पाठ बनाने की संभावना कम करता है. अधिक मान (जैसे 100) अधिक विविध उत्तर देगा, जबकि कम मान (जैसे 10) अधिक सीमित विकल्प चुनेगा.", "Reference Chats": "संदर्भ चैट", "Refresh": "रीफ़्रेश करें", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "क्लाइंट ID", "settings.admin.authentication.clientSecret.description": "प्रदाता से मिला OAuth क्लाइंट सीक्रेट.", "settings.admin.authentication.clientSecret.label": "क्लाइंट सीक्रेट", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ईमेल एट्रिब्यूट खाली होने पर username@domain का उपयोग करता है. अक्षम करने के लिए खाली छोड़ें. उस ईमेल वाले मौजूदा खाते में साइन इन करता है; ऐसे डोमेन का उपयोग करें जो आपके नियंत्रण में हो.", + "settings.admin.authentication.defaultEmailDomain.label": "डिफ़ॉल्ट ईमेल डोमेन", "settings.admin.authentication.defaultGroup.description": "नए उपयोगकर्ताओं को डिफ़ॉल्ट रूप से दिया जाने वाला समूह.", "settings.admin.authentication.defaultGroup.label": "डिफ़ॉल्ट समूह", "settings.admin.authentication.defaultUserRole.description": "खाता बनाते समय नए उपयोगकर्ताओं को दी जाने वाली भूमिका.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "स्थगन सीमा (अक्षर)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "सहायक के टूल और फ़ंक्शन कॉल फ़ॉर्मैट करने का मार्गदर्शन करता है.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "टूल फ़ंक्शन कॉलिंग प्रॉम्प्ट", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "चुनें कि उपयोगकर्ताओं को कौन से नियंत्रण दिखाई दें. किसी नियंत्रण को छिपाने पर उसकी वर्तमान सेटिंग बनी रहती है और उससे जुड़ी सुविधा उपलब्ध रहती है. व्यवस्थापकों को उपलब्ध नियंत्रण हमेशा दिखाई देते हैं.", + "settings.admin.interface.visibility.title": "दिखने वाले नियंत्रण", "settings.admin.interface.voiceModePrompt.description": "वॉइस मोड सक्रिय होने पर वॉइस-विशिष्ट निर्देश लागू करें.", "settings.admin.interface.voiceModePrompt.label": "वॉइस मोड प्रॉम्प्ट", "settings.admin.interface.webSearchQueryGeneration.description": "उपयोगकर्ता के अनुरोधों को वेब खोज क्वेरी के रूप में दोबारा लिखें.", diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json index bcf3f9fb64..2400dfb1df 100644 --- a/src/lib/i18n/locales/hr-HR/translation.json +++ b/src/lib/i18n/locales/hr-HR/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Dopusti ocjenjivanje odgovora", "Allow Regenerate Response": "Dopusti ponovno generiranje odgovora", "Allow replies": "Dopusti odgovore", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Dopustite odabir skrivenih modela kao osnovnih modela.", "Allow Sharing With Groups": "Dopusti dijeljenje s grupama", "Allow Sharing With Users": "Dopusti dijeljenje s korisnicima", "Allow Speech to Text": "Dopusti pretvaranje govora u tekst", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Sažmi kontekst: skrati starije poruke kako bi se ovaj razgovor mogao nastaviti.", "Compacting context": "Sažimanje konteksta", "Compacting context...": "Sažimanje konteksta...", - "Compaction summary": "", + "Compaction summary": "Sažetak konteksta", "Compare": "Usporedi", "Compare files": "Usporedi datoteke", "Compare revision": "Usporedi reviziju", @@ -1429,7 +1429,7 @@ "Hex Color": "Heksadecimalna boja", "Hex Color - Leave empty for default color": "Heksadecimalna boja – ostavite prazno za zadanu boju", "Hidden": "Skriveno", - "Hidden Models": "", + "Hidden Models": "Skriveni modeli", "Hide": "Sakrij", "Hide All": "Sakrij sve", "Hide conversation": "Sakrij razgovor", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Oporavite aplikaciju za autentifikaciju", "Recovery code": "Kod za oporavak", "Redirecting you to Open WebUI Community": "Preusmjeravanje na OpenWebUI zajednicu", - "Redo": "", + "Redo": "Ponovi", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Smanjuje vjerojatnoću generiranja besmislica. Veća vrijednost (npr. 100) daje raznovrsnije odgovore, dok manja vrijednost (npr. 10) daje suzdržanije odgovore.", "Reference Chats": "Koristi razgovore kao reference", "Refresh": "Osvježi", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "ID klijenta", "settings.admin.authentication.clientSecret.description": "Tajni ključ OAuth klijenta koji daje pružatelj usluge.", "settings.admin.authentication.clientSecret.label": "Tajna klijenta", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Koristi username@domain kada je LDAP atribut e-pošte prazan. Ostavite prazno za onemogućavanje. Prijavljuje korisnika u postojeći račun s tom adresom e-pošte; koristite domenu kojom upravljate.", + "settings.admin.authentication.defaultEmailDomain.label": "Zadana domena e-pošte", "settings.admin.authentication.defaultGroup.description": "Grupa koja se zadano dodjeljuje novim korisnicima.", "settings.admin.authentication.defaultGroup.label": "Zadana grupa", "settings.admin.authentication.defaultUserRole.description": "Uloga dodijeljena novim korisnicima pri stvaranju računa.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Prag odgađanja (broj znakova)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Usmjerava način na koji asistent formatira pozive alata i funkcija.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt za pozivanje funkcija alata", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Odaberite koje se kontrole prikazuju korisnicima. Skrivanjem kontrole zadržava se njezina trenutna postavka, a pripadajuća značajka ostaje dostupna. Administratori uvijek vide dostupne kontrole.", + "settings.admin.interface.visibility.title": "Vidljive kontrole", "settings.admin.interface.voiceModePrompt.description": "Primijenite upute za glasovne razgovore dok je glasovni način rada aktivan.", "settings.admin.interface.voiceModePrompt.label": "Prompt za glasovni način", "settings.admin.interface.webSearchQueryGeneration.description": "Preoblikuj korisničke zahtjeve u upite za pretraživanje interneta.", diff --git a/src/lib/i18n/locales/hu-HU/translation.json b/src/lib/i18n/locales/hu-HU/translation.json index 01d3eeee8a..fce3820ea5 100644 --- a/src/lib/i18n/locales/hu-HU/translation.json +++ b/src/lib/i18n/locales/hu-HU/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Válaszok értékelésének engedélyezése", "Allow Regenerate Response": "Válasz újragenerálásának engedélyezése", "Allow replies": "Válaszadás engedélyezése", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Rejtett modellek alapmodellként való kiválasztásának engedélyezése.", "Allow Sharing With Groups": "Csoportokkal való megosztás engedélyezése", "Allow Sharing With Users": "Felhasználókkal való megosztás engedélyezése", "Allow Speech to Text": "Beszédfelismerés engedélyezése", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Tömörítés: a régebbi üzenetek lerövidítése, hogy a beszélgetés folytatódhasson.", "Compacting context": "Kontextus tömörítése", "Compacting context...": "Kontextus tömörítése...", - "Compaction summary": "", + "Compaction summary": "Kontextustömörítési összefoglaló", "Compare": "Összehasonlítás", "Compare files": "Fájlok összehasonlítása", "Compare revision": "Változat összehasonlítása", @@ -1411,7 +1411,7 @@ "Hex Color": "Hexa szín", "Hex Color - Leave empty for default color": "Hexa szín - Hagyd üresen az alapértelmezett színhez", "Hidden": "Rejtett", - "Hidden Models": "", + "Hidden Models": "Rejtett modellek", "Hide": "Elrejtés", "Hide All": "Összes elrejtése", "Hide conversation": "Beszélgetés elrejtése", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Hitelesítő alkalmazás helyreállítása", "Recovery code": "Helyreállító kód", "Redirecting you to Open WebUI Community": "Átirányítás az Open WebUI közösségéhez", - "Redo": "", + "Redo": "Újra", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Csökkenti az értelmetlen szöveg generálásának valószínűségét. A magasabb érték (pl. 100) változatosabb válaszokat eredményez, míg az alacsonyabb érték (pl. 10) visszafogottabb kimenetet ad.", "Reference Chats": "Hivatkozott beszélgetések", "Refresh": "Frissítés", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Kliensazonosító", "settings.admin.authentication.clientSecret.description": "A szolgáltatótól származó OAuth-kliens titkos kulcsa.", "settings.admin.authentication.clientSecret.label": "Kliens titkos kulcsa", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Ha az LDAP e-mail-attribútuma üres, a username@domain formát használja. A letiltáshoz hagyd üresen. Ha már létezik fiók ezzel az e-mail-címmel, abba jelentkezik be; olyan domaint használj, amelyet te kezelsz.", + "settings.admin.authentication.defaultEmailDomain.label": "Alapértelmezett e-mail-domain", "settings.admin.authentication.defaultGroup.description": "Az új felhasználókhoz alapértelmezetten hozzárendelt csoport.", "settings.admin.authentication.defaultGroup.label": "Alapértelmezett csoport", "settings.admin.authentication.defaultUserRole.description": "Az új felhasználókhoz fióklétrehozáskor hozzárendelt szerepkör.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Halasztási küszöb (karakter)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Meghatározza, hogyan formázza az asszisztens az eszköz- és függvényhívásokat.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Eszközök függvényhívási promptja", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Válaszd ki, mely vezérlők jelenjenek meg a felhasználók számára. Egy vezérlő elrejtése megőrzi annak aktuális beállítását, és a hozzá tartozó funkció továbbra is elérhető marad. Az adminisztrátorok mindig látják az elérhető vezérlőket.", + "settings.admin.interface.visibility.title": "Látható vezérlők", "settings.admin.interface.voiceModePrompt.description": "Hangspecifikus utasítások alkalmazása, amíg a hangmód aktív.", "settings.admin.interface.voiceModePrompt.label": "Hangmód promptja", "settings.admin.interface.webSearchQueryGeneration.description": "A felhasználói kérések átírása webes keresési lekérdezésekké.", diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json index 509c0eea36..74dc24a686 100644 --- a/src/lib/i18n/locales/id-ID/translation.json +++ b/src/lib/i18n/locales/id-ID/translation.json @@ -220,7 +220,7 @@ "Allow Rate Response": "Izinkan Beri Nilai Respons", "Allow Regenerate Response": "Izinkan Buat Ulang Respons", "Allow replies": "Izinkan balasan", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Izinkan pemilihan model tersembunyi sebagai model dasar.", "Allow Sharing With Groups": "Izinkan Berbagi dengan Grup", "Allow Sharing With Users": "Izinkan Berbagi dengan Pengguna", "Allow Speech to Text": "Izinkan Ucapan ke Teks", @@ -552,7 +552,7 @@ "Compact: shorten older messages so this chat can keep going.": "Padatkan: persingkat pesan lama agar obrolan ini dapat terus berlanjut.", "Compacting context": "Memadatkan konteks", "Compacting context...": "Memadatkan konteks...", - "Compaction summary": "", + "Compaction summary": "Ringkasan pemadatan", "Compare": "Bandingkan", "Compare files": "Bandingkan berkas", "Compare revision": "Bandingkan revisi", @@ -1405,7 +1405,7 @@ "Hex Color": "Warna Hex", "Hex Color - Leave empty for default color": "Warna Hex - Biarkan kosong untuk warna bawaan", "Hidden": "Tersembunyi", - "Hidden Models": "", + "Hidden Models": "Model Tersembunyi", "Hide": "Sembunyikan", "Hide All": "Sembunyikan Semua", "Hide conversation": "Sembunyikan percakapan", @@ -2155,7 +2155,7 @@ "Recover your authenticator": "Pulihkan autentikator Anda", "Recovery code": "Kode pemulihan", "Redirecting you to Open WebUI Community": "Mengarahkan Anda ke Komunitas OpenWebUI", - "Redo": "", + "Redo": "Ulangi", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Mengurangi kemungkinan menghasilkan teks yang tidak masuk akal. Nilai yang lebih tinggi (misalnya 100) akan memberikan jawaban yang lebih beragam, sedangkan nilai yang lebih rendah (misalnya 10) akan lebih konservatif.", "Reference Chats": "Obrolan Referensi", "Refresh": "Segarkan", @@ -2522,8 +2522,8 @@ "settings.admin.authentication.clientId.label": "ID Klien", "settings.admin.authentication.clientSecret.description": "Rahasia klien OAuth dari penyedia.", "settings.admin.authentication.clientSecret.label": "Rahasia Klien", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Menggunakan username@domain saat atribut email LDAP kosong. Biarkan kosong untuk menonaktifkan. Pengguna akan masuk ke akun yang sudah ada dengan email tersebut; gunakan domain yang Anda kendalikan.", + "settings.admin.authentication.defaultEmailDomain.label": "Domain Email Default", "settings.admin.authentication.defaultGroup.description": "Grup yang ditetapkan untuk pengguna baru secara bawaan.", "settings.admin.authentication.defaultGroup.label": "Grup Bawaan", "settings.admin.authentication.defaultUserRole.description": "Peran yang ditetapkan untuk pengguna baru saat membuat akun.", @@ -3021,8 +3021,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Ambang Penundaan (karakter)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Memandu cara asisten memformat pemanggilan alat dan fungsi.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt Pemanggilan Fungsi Alat", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Pilih kontrol yang ditampilkan kepada pengguna. Menyembunyikan kontrol akan mempertahankan pengaturannya saat ini dan fitur yang mendasarinya tetap tersedia. Administrator selalu melihat kontrol yang tersedia.", + "settings.admin.interface.visibility.title": "Kontrol yang terlihat", "settings.admin.interface.voiceModePrompt.description": "Terapkan instruksi khusus suara saat mode suara aktif.", "settings.admin.interface.voiceModePrompt.label": "Prompt Mode Suara", "settings.admin.interface.webSearchQueryGeneration.description": "Tulis ulang permintaan pengguna menjadi kueri pencarian web.", diff --git a/src/lib/i18n/locales/ie-GA/translation.json b/src/lib/i18n/locales/ie-GA/translation.json index 2394002a4e..c7535d69a2 100644 --- a/src/lib/i18n/locales/ie-GA/translation.json +++ b/src/lib/i18n/locales/ie-GA/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Ceadaigh Freagairt Ráta", "Allow Regenerate Response": "Ceadaigh Freagra Athghiniúint", "Allow replies": "Ceadaigh freagraí", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Ceadaigh samhlacha folaithe a roghnú mar bhunsamhlacha.", "Allow Sharing With Groups": "Ceadaigh Comhroinnt le Grúpaí", "Allow Sharing With Users": "Ceadaigh Comhroinnt le hÚsáideoirí", "Allow Speech to Text": "Ceadaigh Óráid go Téacs", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Dlúthaigh: giorraigh teachtaireachtaí níos sine ionas gur féidir leis an gcomhrá seo leanúint ar aghaidh.", "Compacting context": "Comhthéacs á dhlúthú", "Compacting context...": "Ag dlúthú comhthéacs...", - "Compaction summary": "", + "Compaction summary": "Achoimre dhlúthaithe", "Compare": "Déan comparáid", "Compare files": "Déan comparáid idir comhaid", "Compare revision": "Déan comparáid leis an leagan leasaithe", @@ -1411,7 +1411,7 @@ "Hex Color": "Dath Heics", "Hex Color - Leave empty for default color": "Dath Heics - Fág folamh don dath réamhshocraithe", "Hidden": "I bhfolach", - "Hidden Models": "", + "Hidden Models": "Samhlacha Folaithe", "Hide": "Folaigh", "Hide All": "Folaigh Gach Rud", "Hide conversation": "Folaigh an comhrá", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Athshlánaigh d'fhíordheimhneoir", "Recovery code": "Cód athshlánaithe", "Redirecting you to Open WebUI Community": "Tú a atreorú chuig OpenWebUI Community", - "Redo": "", + "Redo": "Athdhéan an gníomh", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Laghdaíonn sé an dóchúlacht go giniúint nonsense. Tabharfaidh luach níos airde (m.sh. 100) freagraí níos éagsúla, agus beidh luach níos ísle (m.sh. 10) níos coimeádaí.", "Reference Chats": "Comhráite Tagartha", "Refresh": "Athnuachan", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Aitheantas Cliant", "settings.admin.authentication.clientSecret.description": "Rún cliant OAuth ón soláthraí.", "settings.admin.authentication.clientSecret.label": "Rún an Chliaint", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Úsáideann sé username@domain nuair atá tréith ríomhphoist LDAP folamh. Fág folamh chun é a dhíchumasú. Sínítear an t-úsáideoir isteach i gcuntas atá ann cheana leis an ríomhphost sin; úsáid fearann atá faoi do smacht.", + "settings.admin.authentication.defaultEmailDomain.label": "Fearann Ríomhphoist Réamhshocraithe", "settings.admin.authentication.defaultGroup.description": "Grúpa sannta d'úsáideoirí nua de réir réamhshocraithe.", "settings.admin.authentication.defaultGroup.label": "Grúpa Réamhshocraithe", "settings.admin.authentication.defaultUserRole.description": "Ról a shanntar d'úsáideoirí nua nuair a chruthaíonn siad cuntas.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Tairseach an Chur Siar (carachtair)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Treoraíonn sé seo conas a fhormáidíonn an cúntóir glaonna uirlisí agus feidhme.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Treoir Ghlao Feidhme Uirlisí", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Roghnaigh na rialuithe a thaispeántar d'úsáideoirí. Nuair a chuirtear rialú i bhfolach, coinnítear a shocrú reatha agus fanann an ghné a rialaíonn sé ar fáil. Feiceann riarthóirí i gcónaí na rialuithe atá ar fáil.", + "settings.admin.interface.visibility.title": "Rialuithe infheicthe", "settings.admin.interface.voiceModePrompt.description": "Cuir treoracha gutha-shonracha i bhfeidhm agus mód gutha gníomhach.", "settings.admin.interface.voiceModePrompt.label": "Treoir Mód Gutha", "settings.admin.interface.webSearchQueryGeneration.description": "Athscríobh iarratais úsáideoirí i gceisteanna cuardaigh gréasáin.", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index 767a3091a7..5bb51e332b 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -220,7 +220,7 @@ "Allow Rate Response": "応答の評価を許可", "Allow Regenerate Response": "再生成を許可", "Allow replies": "返信を許可", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "非表示のモデルをベースモデルとして選択することを許可します。", "Allow Sharing With Groups": "グループとの共有を許可", "Allow Sharing With Users": "ユーザーとの共有を許可", "Allow Speech to Text": "音声をテキストに変換を許可", @@ -552,7 +552,7 @@ "Compact: shorten older messages so this chat can keep going.": "会話履歴を要約: 過去のメッセージを短くまとめて、チャットを続けられるようにします。", "Compacting context": "会話履歴を要約中", "Compacting context...": "会話履歴を要約中...", - "Compaction summary": "", + "Compaction summary": "会話履歴の要約", "Compare": "比較", "Compare files": "ファイルを比較", "Compare revision": "修正案を比較", @@ -1405,7 +1405,7 @@ "Hex Color": "16進数の色", "Hex Color - Leave empty for default color": "16進数の色 - デフォルトの色を使用する場合は空白のままにします", "Hidden": "非表示", - "Hidden Models": "", + "Hidden Models": "非表示のモデル", "Hide": "非表示", "Hide All": "すべて非表示", "Hide conversation": "会話を非表示", @@ -2155,7 +2155,7 @@ "Recover your authenticator": "認証アプリのリカバリー", "Recovery code": "リカバリーコード", "Redirecting you to Open WebUI Community": "OpenWebUI コミュニティにリダイレクトしています", - "Redo": "", + "Redo": "やり直す", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "無意味な生成の確率を減少させます。高い値(例:100)はより多様な回答を提供し、低い値(例:10)ではより保守的になります。", "Reference Chats": "チャットを参照", "Refresh": "更新", @@ -2522,8 +2522,8 @@ "settings.admin.authentication.clientId.label": "クライアントID", "settings.admin.authentication.clientSecret.description": "プロバイダーから取得したOAuthクライアントシークレット。", "settings.admin.authentication.clientSecret.label": "クライアントシークレット", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAPのメール属性が空の場合、username@domainを使用します。無効にするには空欄にしてください。そのメールアドレスの既存アカウントがあればそのアカウントにサインインするので、管理しているドメインを使用してください。", + "settings.admin.authentication.defaultEmailDomain.label": "デフォルトのメールドメイン", "settings.admin.authentication.defaultGroup.description": "新規ユーザーにデフォルトで割り当てるグループ。", "settings.admin.authentication.defaultGroup.label": "デフォルトグループ", "settings.admin.authentication.defaultUserRole.description": "新規ユーザーがアカウントを作成したときに割り当てるロール。", @@ -3021,8 +3021,8 @@ "settings.admin.interface.toolSearchThreshold.label": "遅延読み込みのしきい値 (文字数)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "アシスタントのツール呼び出しと関数呼び出しの形式を指定します。", "settings.admin.interface.toolsFunctionCallingPrompt.label": "ツール関数呼び出しプロンプト", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "ユーザーに表示するコントロールを選択します。コントロールを非表示にしても、現在の設定は保持され、対応する機能は引き続き利用できます。管理者には利用可能なコントロールが常に表示されます。", + "settings.admin.interface.visibility.title": "表示するコントロール", "settings.admin.interface.voiceModePrompt.description": "音声モードが有効な間は、音声専用の指示を適用します。", "settings.admin.interface.voiceModePrompt.label": "音声モードのプロンプト", "settings.admin.interface.webSearchQueryGeneration.description": "ユーザーのリクエストをウェブ検索クエリに書き換えます。", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index 1d933bc22b..d77920a899 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "პასუხის შეფასების დაშვება", "Allow Regenerate Response": "პასუხის რეგენერაციის დაშვება", "Allow replies": "პასუხების დაშვება", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "დამალული მოდელების საბაზისო მოდელებად არჩევას უშვებს.", "Allow Sharing With Groups": "ჯგუფებთან გაზიარების დაშვება", "Allow Sharing With Users": "მომხმარებლებთან გაზიარების დაშვება", "Allow Speech to Text": "საუბრის ამოცნობის დაშვება", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "შეკუმშვა: ამოკლებს ძველ შეტყობინებებს, რომ ამ ჩატის გაგრძელება შესაძლებელი იყოს.", "Compacting context": "კონტექსტის შეკუმშვა", "Compacting context...": "კონტექსტის შეკუმშვა...", - "Compaction summary": "", + "Compaction summary": "შეკუმშვის შეჯამება", "Compare": "შედარება", "Compare files": "ფაილების შედარება", "Compare revision": "ჩასწორებული ვერსიის შედარება", @@ -1411,7 +1411,7 @@ "Hex Color": "თექვსმეტობითი ფერი", "Hex Color - Leave empty for default color": "თექვსმეტობითი ფერი — დატოვეთ ცარიელი ნაგულისხმევი ფერისთვის", "Hidden": "დამალული", - "Hidden Models": "", + "Hidden Models": "დამალული მოდელები", "Hide": "დამალვა", "Hide All": "ყველას დამალვა", "Hide conversation": "საუბრის დამალვა", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "თქვენი ავთენტიკატორის აღდგენა", "Recovery code": "აღდგენის კოდი", "Redirecting you to Open WebUI Community": "მიმდინარეობს გადამისამართება OpenWebUI-ის საზოგადოების საიტზე", - "Redo": "", + "Redo": "ქმედების გამეორება", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "ამცირებს უაზრობის გენერაციის ალბათობას. უფრო მაღალი მნიშვნელობა (მაგ: 100) უფრო მრავალფეროვან პასუხებს მოგვცემს, ხოლო უფრო დაბალი მნიშვნელობა (მაგ: 10) უფრო კონსერვატიული იქნება.", "Reference Chats": "ჩატების მითითება", "Refresh": "განახლება", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "კლიენტის ID", "settings.admin.authentication.clientSecret.description": "პროვაიდერისგან მიღებული OAuth კლიენტის საიდუმლო.", "settings.admin.authentication.clientSecret.label": "კლიენტის საიდუმლო", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "იყენებს username@domain-ს, როცა LDAP ელფოსტის ატრიბუტი ცარიელია. დატოვეთ ცარიელი გამოსართავად. მომხმარებელი შედის ამ ელფოსტის მქონე არსებულ ანგარიშში; გამოიყენეთ დომენი, რომელსაც თქვენ აკონტროლებთ.", + "settings.admin.authentication.defaultEmailDomain.label": "ელფოსტის ნაგულისხმევი დომენი", "settings.admin.authentication.defaultGroup.description": "ჯგუფი, რომელიც ახალ მომხმარებლებს ნაგულისხმევად ენიჭებათ.", "settings.admin.authentication.defaultGroup.label": "ნაგულისხმევი ჯგუფი", "settings.admin.authentication.defaultUserRole.description": "როლი, რომელიც ახალ მომხმარებლებს ანგარიშის შექმნისას ენიჭებათ.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "გადადების ზღვარი (სიმბოლოებში)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "წარმართავს, როგორ აფორმებს დამხმარე ხელსაწყოებისა და ფუნქციების გამოძახებებს.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "ხელსაწყოების ფუნქციის გამოძახების მოთხოვნა", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "აირჩიეთ, რომელი კონტროლის ელემენტები გამოჩნდება მომხმარებლებისთვის. კონტროლის ელემენტის დამალვისას მისი მიმდინარე პარამეტრი შენარჩუნდება და შესაბამისი შესაძლებლობა ხელმისაწვდომი დარჩება. ადმინისტრატორები ყოველთვის ხედავენ ხელმისაწვდომ კონტროლის ელემენტებს.", + "settings.admin.interface.visibility.title": "ხილული კონტროლის ელემენტები", "settings.admin.interface.voiceModePrompt.description": "ხმის რეჟიმის აქტიურობისას იყენებს ხმისთვის განკუთვნილ ინსტრუქციებს.", "settings.admin.interface.voiceModePrompt.label": "ხმის რეჟიმის მოთხოვნა", "settings.admin.interface.webSearchQueryGeneration.description": "გადაწერს მომხმარებლის მოთხოვნებს ვებში ძებნის მოთხოვნებად.", diff --git a/src/lib/i18n/locales/kab-DZ/translation.json b/src/lib/i18n/locales/kab-DZ/translation.json index 549f67197b..b3bbc2d818 100644 --- a/src/lib/i18n/locales/kab-DZ/translation.json +++ b/src/lib/i18n/locales/kab-DZ/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Sireg asezmel n tririt", "Allow Regenerate Response": "Sireg alus n usirew n tririt", "Allow replies": "Sireg tiririyin", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Sireg afran n tmudmiwin yettwaffren d timudmiwin tizadurin.", "Allow Sharing With Groups": "Sireg beṭṭu akked yigrawen", "Allow Sharing With Users": "Sireg beṭṭu akked yiseqdacen", "Allow Speech to Text": "Sireg aɛqal n taɣect", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Ssewzel: ssewzel iznan iqburen akken adiwenni-agi ad ikemmel.", "Compacting context": "Asewzel n usatal", "Compacting context...": "Asewzel n usatal…", - "Compaction summary": "", + "Compaction summary": "Agzul n usewzel", "Compare": "Serwes", "Compare files": "Serwes ifuyla", "Compare revision": "Serwes lqem", @@ -1411,7 +1411,7 @@ "Hex Color": "Ini Hex", "Hex Color - Leave empty for default color": "Ini Hex - Eǧǧ-it d ilem i yini amezwer", "Hidden": "Yettwaffer", - "Hidden Models": "", + "Hidden Models": "Timudmiwin yettwaffren", "Hide": "Seggelmes", "Hide All": "Ffer akk", "Hide conversation": "Ffer adiwenni", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Err-d asnas-ik·im n usesteb", "Recovery code": "Tangalt n usellek", "Redirecting you to Open WebUI Community": "Aseḍfeṛ ar Temɣiwant n Open WebUI", - "Redo": "", + "Redo": "Ales", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Yessenqas taseqqart n usirew n wayen ur nesɛi ara anamek. Azal afellay (amedya 100) ad d-yefk tiririyin yemgaraden ugar, ma d azal adday (amedya 10) ad yili d win iḥerzen ugar.", "Reference Chats": "Mselɣu idiwenniyen", "Refresh": "Smiren", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Asulay n umsaɣ", "settings.admin.authentication.clientSecret.description": "Tasarut tuffirt n umsaɣ OAuth sɣur usaǧǧaw.", "settings.admin.authentication.clientSecret.label": "Tasarut tuffirt n umsaɣ", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Yesseqdac username@domain ma yella imyerr LDAP n yimayl d ilem. Eǧǧ-it d ilem i usensi. Aseqdac ad yeqqen ɣer umiḍan i yellan s yimayl-nni; seqdec taɣult ideg tḥekkmeḍ.", + "settings.admin.authentication.defaultEmailDomain.label": "Taɣult tamezwart n yimayl", "settings.admin.authentication.defaultGroup.description": "Agraw yettwanefken i yiseqdacen imaynuten s wudem amezwer.", "settings.admin.authentication.defaultGroup.label": "Agraw amezwer", "settings.admin.authentication.defaultUserRole.description": "Tamlilt yettwanefken i yiseqdacen imaynuten mi ara d-snulfun amiḍan.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Amnar n uɛeṭṭel (isekkilen)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Yettwellih amek ara yemsel umallal isiwlen n yifecka d tesɣunin.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Aneftaɣ n usiwel n tesɣunin n yifecka", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Fren isenqaden ara d-yettbanen i yiseqdacen. Tuffra n usenqad ad teḥrez aɣewwar-is amiran, u tamahilt-is ad teqqim tella. Inedbalen ttwalin yal tikkelt isenqaden i yellan.", + "settings.admin.interface.visibility.title": "Isenqaden i d-yettbanen", "settings.admin.interface.voiceModePrompt.description": "Snes tinaḍin n taɣect mi ara yili uskar n taɣect d urmid.", "settings.admin.interface.voiceModePrompt.label": "Aneftaɣ n uskar n taɣect", "settings.admin.interface.webSearchQueryGeneration.description": "Ales tira n yisuturen n useqdac am tuttriwin n unadi deg Web.", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index 4fa44f06c6..989db2e95a 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -212,7 +212,7 @@ "Allow Rate Response": "응답 평가 허용", "Allow Regenerate Response": "응답 재생성 허용", "Allow replies": "답장 허용", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "숨겨진 모델을 베이스 모델로 선택할 수 있도록 허용합니다.", "Allow Sharing With Groups": "그룹과 공유 허용", "Allow Sharing With Users": "사용자와 공유 허용", "Allow Speech to Text": "음성 텍스트 변환 허용", @@ -544,7 +544,7 @@ "Compact: shorten older messages so this chat can keep going.": "압축: 이전 메시지를 줄여 이 채팅을 계속 이어갈 수 있게 합니다.", "Compacting context": "컨텍스트 압축 중", "Compacting context...": "컨텍스트 압축 중...", - "Compaction summary": "", + "Compaction summary": "컨텍스트 압축 요약", "Compare": "비교", "Compare files": "파일 비교", "Compare revision": "수정안 비교", @@ -1394,7 +1394,7 @@ "Hex Color": "Hex 색상", "Hex Color - Leave empty for default color": "Hex 색상 - 기본 색상의 경우 빈 상태로 유지", "Hidden": "숨겨짐", - "Hidden Models": "", + "Hidden Models": "숨겨진 모델", "Hide": "숨기기", "Hide All": "모두 숨기기", "Hide conversation": "대화 숨기기", @@ -2143,7 +2143,7 @@ "Recover your authenticator": "인증 앱 복구", "Recovery code": "복구 코드", "Redirecting you to Open WebUI Community": "OpenWebUI 커뮤니티로 리디렉션 중", - "Redo": "", + "Redo": "다시 실행", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "넌센스를 생성할 확률을 줄입니다. 값이 높을수록(예: 100) 더 다양한 답변을 제공하는 반면, 값이 낮을수록(예: 10) 더 보수적입니다.", "Reference Chats": "채팅 참조", "Refresh": "새로 고침", @@ -2508,8 +2508,8 @@ "settings.admin.authentication.clientId.label": "클라이언트 ID", "settings.admin.authentication.clientSecret.description": "OAuth 제공자의 클라이언트 시크릿입니다.", "settings.admin.authentication.clientSecret.label": "클라이언트 시크릿", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP 이메일 속성이 비어 있으면 username@domain을 사용합니다. 비활성화하려면 비워 두세요. 해당 이메일을 사용하는 기존 계정으로 로그인하므로 직접 관리하는 도메인을 사용하세요.", + "settings.admin.authentication.defaultEmailDomain.label": "기본 이메일 도메인", "settings.admin.authentication.defaultGroup.description": "새 사용자에게 기본으로 할당되는 그룹입니다.", "settings.admin.authentication.defaultGroup.label": "기본 그룹", "settings.admin.authentication.defaultUserRole.description": "새 사용자가 계정을 만들 때 부여되는 역할입니다.", @@ -3007,8 +3007,8 @@ "settings.admin.interface.toolSearchThreshold.label": "지연 로드 임계값(문자 수)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "어시스턴트가 도구 및 함수 호출 형식을 구성하는 방식을 안내합니다.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "도구 함수 호출 프롬프트", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "사용자에게 표시할 제어 항목을 선택합니다. 제어 항목을 숨겨도 현재 설정은 유지되며 해당 기능을 계속 사용할 수 있습니다. 관리자에게는 사용 가능한 제어 항목이 항상 표시됩니다.", + "settings.admin.interface.visibility.title": "표시할 제어 항목", "settings.admin.interface.voiceModePrompt.description": "음성 모드가 활성화된 동안 음성 전용 지침을 적용합니다.", "settings.admin.interface.voiceModePrompt.label": "음성 모드 프롬프트", "settings.admin.interface.webSearchQueryGeneration.description": "사용자 요청을 웹 검색 쿼리로 다시 작성합니다.", diff --git a/src/lib/i18n/locales/lt-LT/translation.json b/src/lib/i18n/locales/lt-LT/translation.json index 8fa5efa094..4dd3ea5667 100644 --- a/src/lib/i18n/locales/lt-LT/translation.json +++ b/src/lib/i18n/locales/lt-LT/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Leisti vertinti atsakymus", "Allow Regenerate Response": "Leisti generuoti atsakymą iš naujo", "Allow replies": "Leisti atsakyti", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Leidžia pasirinkti paslėptus modelius kaip bazinius modelius.", "Allow Sharing With Groups": "Leisti bendrinti su grupėmis", "Allow Sharing With Users": "Leisti bendrinti su naudotojais", "Allow Speech to Text": "Leisti balso atpažinimą", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Suglaudinti: sutrumpinti senesnes žinutes, kad šį pokalbį būtų galima tęsti.", "Compacting context": "Glaudinamas kontekstas", "Compacting context...": "Glaudinamas kontekstas...", - "Compaction summary": "", + "Compaction summary": "Konteksto glaudinimo santrauka", "Compare": "Palyginti", "Compare files": "Palyginti failus", "Compare revision": "Palyginti redakciją", @@ -1447,7 +1447,7 @@ "Hex Color": "Šešioliktainė spalva", "Hex Color - Leave empty for default color": "Šešioliktainė spalva: palikite tuščią, kad būtų naudojama numatytoji spalva", "Hidden": "Paslėpta", - "Hidden Models": "", + "Hidden Models": "Paslėpti modeliai", "Hide": "Paslėpti", "Hide All": "Paslėpti viską", "Hide conversation": "Paslėpti pokalbį", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Atkurkite kelių veiksnių autentifikavimą", "Recovery code": "Atkūrimo kodas", "Redirecting you to Open WebUI Community": "Perkeliam Jus į OpenWebUI bendruomenę", - "Redo": "", + "Redo": "Perdaryti", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Sumažina nesąmonių generavimo tikimybę. Didesnė reikšmė (pvz., 100) duos įvairesnių atsakymų, o mažesnė reikšmė (pvz., 10) bus konservatyvesnė.", "Reference Chats": "Remtis pokalbiais", "Refresh": "Atnaujinti", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "Kliento ID", "settings.admin.authentication.clientSecret.description": "Teikėjo suteiktas OAuth kliento slaptasis raktas.", "settings.admin.authentication.clientSecret.label": "Kliento slaptasis raktas", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Naudoja username@domain, kai LDAP el. pašto atributas tuščias. Palikite tuščią, kad išjungtumėte. Prisijungia prie esamos paskyros su tuo el. pašto adresu; naudokite domeną, kurį valdote.", + "settings.admin.authentication.defaultEmailDomain.label": "Numatytasis el. pašto domenas", "settings.admin.authentication.defaultGroup.description": "Grupė, pagal numatytuosius nustatymus priskiriama naujiems naudotojams.", "settings.admin.authentication.defaultGroup.label": "Numatytoji grupė", "settings.admin.authentication.defaultUserRole.description": "Rolė, priskiriama naujiems naudotojams, kai jie sukuria paskyrą.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Atidėjimo riba (simboliai)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Nurodo, kaip asistentas formatuoja įrankių ir funkcijų iškvietimus.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Įrankių funkcijų iškvietimo raginimas", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Pasirinkite, kurie valdikliai rodomi naudotojams. Paslėpus valdiklį, jo dabartinis nustatymas išlieka, o susijusi galimybė lieka prieinama. Administratoriai visada mato prieinamus valdiklius.", + "settings.admin.interface.visibility.title": "Matomi valdikliai", "settings.admin.interface.voiceModePrompt.description": "Taiko balsui skirtus nurodymus, kol veikia balso režimas.", "settings.admin.interface.voiceModePrompt.label": "Balso režimo raginimas", "settings.admin.interface.webSearchQueryGeneration.description": "Perrašo naudotojų užklausas į interneto paieškos užklausas.", diff --git a/src/lib/i18n/locales/lv-LV/translation.json b/src/lib/i18n/locales/lv-LV/translation.json index b9ff116dc1..765473b38c 100644 --- a/src/lib/i18n/locales/lv-LV/translation.json +++ b/src/lib/i18n/locales/lv-LV/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Atļaut vērtēt atbildi", "Allow Regenerate Response": "Atļaut atkārtoti ģenerēt atbildi", "Allow replies": "Atļaut atbildēt", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Atļaut izvēlēties slēptos modeļus kā bāzes modeļus.", "Allow Sharing With Groups": "Atļaut kopīgošanu ar grupām", "Allow Sharing With Users": "Atļaut kopīgošanu ar lietotājiem", "Allow Speech to Text": "Atļaut runu uz tekstu", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Saīsināt: saīsināt vecākos ziņojumus, lai šo tērzēšanu varētu turpināt.", "Compacting context": "Saīsina kontekstu", "Compacting context...": "Saīsina kontekstu...", - "Compaction summary": "", + "Compaction summary": "Saīsināšanas kopsavilkums", "Compare": "Salīdzināt", "Compare files": "Salīdzināt failus", "Compare revision": "Salīdzināt redakciju", @@ -1429,7 +1429,7 @@ "Hex Color": "Hex krāsa", "Hex Color - Leave empty for default color": "Hex krāsa - Atstājiet tukšu noklusējuma krāsai", "Hidden": "Slēpts", - "Hidden Models": "", + "Hidden Models": "Slēptie modeļi", "Hide": "Slēpt", "Hide All": "Slēpt visu", "Hide conversation": "Slēpt sarunu", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Atkopt autentifikatoru", "Recovery code": "Atkopšanas kods", "Redirecting you to Open WebUI Community": "Novirza jūs uz Open WebUI kopienu", - "Redo": "", + "Redo": "Atatsaukt", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Samazina bezjēdzīga teksta ģenerēšanas varbūtību. Augstāka vērtība (piem., 100) sniegs daudzveidīgākas atbildes, bet zemāka vērtība (piem., 10) būs konservatīvāka.", "Reference Chats": "Atsauces tērzēšanas", "Refresh": "Atsvaidzināt", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "Klienta ID", "settings.admin.authentication.clientSecret.description": "OAuth klienta noslēpums no pakalpojumu sniedzēja.", "settings.admin.authentication.clientSecret.label": "Klienta noslēpums", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Izmanto username@domain, ja LDAP e-pasta atribūts ir tukšs. Atstājiet tukšu, lai atspējotu. Piesakās esošā kontā ar šo e-pasta adresi; izmantojiet domēnu, kuru kontrolējat.", + "settings.admin.authentication.defaultEmailDomain.label": "Noklusējuma e-pasta domēns", "settings.admin.authentication.defaultGroup.description": "Grupa, kas pēc noklusējuma tiek piešķirta jauniem lietotājiem.", "settings.admin.authentication.defaultGroup.label": "Noklusējuma grupa", "settings.admin.authentication.defaultUserRole.description": "Loma, kas tiek piešķirta jauniem lietotājiem, kad viņi izveido kontu.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Atlikšanas slieksnis (rakstzīmes)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Vada, kā asistents formatē rīku un funkciju izsaukumus.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Rīku funkciju izsaukšanas uzvedne", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Izvēlieties, kuras vadīklas rādīt lietotājiem. Paslēpjot vadīklu, tās pašreizējais iestatījums saglabājas un attiecīgā funkcija paliek pieejama. Administratori vienmēr redz pieejamās vadīklas.", + "settings.admin.interface.visibility.title": "Redzamās vadīklas", "settings.admin.interface.voiceModePrompt.description": "Lietot balsij specifiskus norādījumus, kamēr ir aktīvs balss režīms.", "settings.admin.interface.voiceModePrompt.label": "Balss režīma uzvedne", "settings.admin.interface.webSearchQueryGeneration.description": "Pārrakstīt lietotāju pieprasījumus tīmekļa meklēšanas vaicājumos.", diff --git a/src/lib/i18n/locales/ms-MY/translation.json b/src/lib/i18n/locales/ms-MY/translation.json index 981cecd45b..93ac79516f 100644 --- a/src/lib/i18n/locales/ms-MY/translation.json +++ b/src/lib/i18n/locales/ms-MY/translation.json @@ -220,7 +220,7 @@ "Allow Rate Response": "Benarkan Penilaian Respons", "Allow Regenerate Response": "Benarkan Jana Semula Respons", "Allow replies": "Benarkan balasan", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Benarkan pemilihan model tersembunyi sebagai model asas.", "Allow Sharing With Groups": "Benarkan Perkongsian Dengan Kumpulan", "Allow Sharing With Users": "Benarkan Perkongsian dengan Pengguna", "Allow Speech to Text": "Benarkan Pertuturan ke Teks", @@ -552,7 +552,7 @@ "Compact: shorten older messages so this chat can keep going.": "Padatkan: pendekkan mesej lama supaya chat ini boleh diteruskan.", "Compacting context": "Memadatkan konteks", "Compacting context...": "Sedang memadatkan konteks...", - "Compaction summary": "", + "Compaction summary": "Ringkasan pemadatan", "Compare": "Bandingkan", "Compare files": "Bandingkan fail", "Compare revision": "Bandingkan versi", @@ -1405,7 +1405,7 @@ "Hex Color": "Warna Heks", "Hex Color - Leave empty for default color": "Warna Heks - Biarkan kosong untuk warna lalai", "Hidden": "Tersembunyi", - "Hidden Models": "", + "Hidden Models": "Model Tersembunyi", "Hide": "Sembunyi", "Hide All": "Sembunyikan Semua", "Hide conversation": "Sembunyikan perbualan", @@ -2155,7 +2155,7 @@ "Recover your authenticator": "Pulihkan aplikasi pengesah anda", "Recovery code": "Kod pemulihan", "Redirecting you to Open WebUI Community": "Mengubah hala anda ke Komuniti Open WebUI", - "Redo": "", + "Redo": "Buat semula", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Mengurangkan kebarangkalian menjana jawapan tanpa makna. Nilai yang lebih tinggi (cth. 100) akan memberikan jawapan yang lebih pelbagai, manakala nilai yang lebih rendah (cth. 10) akan lebih konservatif.", "Reference Chats": "Chat Rujukan", "Refresh": "Segarkan", @@ -2522,8 +2522,8 @@ "settings.admin.authentication.clientId.label": "ID Klien", "settings.admin.authentication.clientSecret.description": "Rahsia klien OAuth daripada penyedia.", "settings.admin.authentication.clientSecret.label": "Rahsia Klien", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Menggunakan username@domain apabila atribut email LDAP kosong. Biarkan kosong untuk menyahaktifkan. Pengguna akan login ke akaun sedia ada yang menggunakan email tersebut; gunakan domain yang anda kawal.", + "settings.admin.authentication.defaultEmailDomain.label": "Domain Email Lalai", "settings.admin.authentication.defaultGroup.description": "Kumpulan diberikan kepada pengguna baharu secara lalai.", "settings.admin.authentication.defaultGroup.label": "Kumpulan Lalai", "settings.admin.authentication.defaultUserRole.description": "Peranan diberikan kepada pengguna baharu apabila mereka membuat akaun.", @@ -3021,8 +3021,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Ambang Penangguhan (aksara)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Membimbing cara pembantu memformat panggilan alat dan fungsi.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Gesaan Pemanggilan Fungsi Alat", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Pilih kawalan yang dipaparkan kepada pengguna. Menyembunyikan kawalan akan mengekalkan tetapan semasanya, dan ciri di sebaliknya kekal tersedia. Pentadbir sentiasa melihat kawalan yang tersedia.", + "settings.admin.interface.visibility.title": "Kawalan yang kelihatan", "settings.admin.interface.voiceModePrompt.description": "Gunakan arahan khusus suara semasa mod suara aktif.", "settings.admin.interface.voiceModePrompt.label": "Gesaan Mod Suara", "settings.admin.interface.webSearchQueryGeneration.description": "Tulis semula permintaan pengguna ke dalam pertanyaan carian web.", diff --git a/src/lib/i18n/locales/nb-NO/translation.json b/src/lib/i18n/locales/nb-NO/translation.json index 8547bb2a0a..2a0e95afdb 100644 --- a/src/lib/i18n/locales/nb-NO/translation.json +++ b/src/lib/i18n/locales/nb-NO/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Tillat vurdering av svar", "Allow Regenerate Response": "Tillat generering av svar på nytt", "Allow replies": "Tillat svar", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Tillat å velge skjulte modeller som grunnmodeller.", "Allow Sharing With Groups": "Tillat deling med grupper", "Allow Sharing With Users": "Tillat deling med brukere", "Allow Speech to Text": "Tillat tale-til-tekst", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Komprimer: forkort eldre meldinger slik at chatten kan fortsette.", "Compacting context": "Komprimerer kontekst", "Compacting context...": "Komprimerer kontekst ...", - "Compaction summary": "", + "Compaction summary": "Sammendrag ved komprimering av kontekst", "Compare": "Sammenlign", "Compare files": "Sammenlign filer", "Compare revision": "Sammenlign revisjon", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex-farge", "Hex Color - Leave empty for default color": "Hex-farge – la stå tom for standard farge", "Hidden": "Skjult", - "Hidden Models": "", + "Hidden Models": "Skjulte modeller", "Hide": "Skjul", "Hide All": "Skjul alle", "Hide conversation": "Skjul samtale", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Gjenopprett autentiseringsappen", "Recovery code": "Gjenopprettingskode", "Redirecting you to Open WebUI Community": "Omdirigerer deg til OpenWebUI-fellesskapet", - "Redo": "", + "Redo": "Gjør om", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reduserer sannsynligheten for å generere meningsløst innhold. En høyere verdi (f.eks. 100) gir mer varierte svar, mens en lavere verdi (f.eks. 10) er mer konservativ.", "Reference Chats": "Referer til chatter", "Refresh": "Oppdater", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Klient-ID", "settings.admin.authentication.clientSecret.description": "OAuth-klienthemmelighet fra leverandøren.", "settings.admin.authentication.clientSecret.label": "Klienthemmelighet", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Bruker username@domain når LDAP-attributtet for e-post er tomt. La stå tomt for å deaktivere. Logger på en eksisterende konto med denne e-postadressen; bruk et domene du kontrollerer.", + "settings.admin.authentication.defaultEmailDomain.label": "Standarddomene for e-post", "settings.admin.authentication.defaultGroup.description": "Gruppe som nye brukere tildeles som standard.", "settings.admin.authentication.defaultGroup.label": "Standardgruppe", "settings.admin.authentication.defaultUserRole.description": "Rolle som tildeles nye brukere når de oppretter en konto.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Terskel for utsettelse (tegn)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Styrer hvordan assistenten formaterer verktøy- og funksjonskall.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Ledetekst for kalling av verktøyfunksjonen", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Velg hvilke kontroller som vises for brukere. Når en kontroll skjules, beholdes den nåværende innstillingen, og den underliggende funksjonen er fortsatt tilgjengelig. Administratorer ser alltid tilgjengelige kontroller.", + "settings.admin.interface.visibility.title": "Synlige kontroller", "settings.admin.interface.voiceModePrompt.description": "Bruk talespesifikke instruksjoner mens talemodus er aktiv.", "settings.admin.interface.voiceModePrompt.label": "Ledetekst for talemodus", "settings.admin.interface.webSearchQueryGeneration.description": "Skriv om brukerforespørsler til spørringer for nettsøk.", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index 5bd7f23d8f..509b4d13ac 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Reactiebeoordeling toestaan", "Allow Regenerate Response": "Antwoord opnieuw genereren toestaan", "Allow replies": "Reageren toestaan", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Sta toe dat verborgen modellen als basismodellen worden geselecteerd.", "Allow Sharing With Groups": "Delen met groepen toestaan", "Allow Sharing With Users": "Delen met gebruikers toestaan", "Allow Speech to Text": "Spraak-naar-tekst toestaan", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Context comprimeren: kort oudere berichten in zodat deze chat verder kan gaan.", "Compacting context": "Context comprimeren", "Compacting context...": "Context comprimeren...", - "Compaction summary": "", + "Compaction summary": "Samenvatting van contextcompressie", "Compare": "Vergelijken", "Compare files": "Bestanden vergelijken", "Compare revision": "Revisie vergelijken", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex-kleur", "Hex Color - Leave empty for default color": "Hex-kleur - laat leeg voor standaardkleur", "Hidden": "Verborgen", - "Hidden Models": "", + "Hidden Models": "Verborgen modellen", "Hide": "Verberg", "Hide All": "Verberg alles", "Hide conversation": "Gesprek verbergen", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Herstel je authenticator", "Recovery code": "Herstelcode", "Redirecting you to Open WebUI Community": "Je wordt doorgestuurd naar OpenWebUI Community", - "Redo": "", + "Redo": "Opnieuw uitvoeren", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Vermindert de kans op het genereren van onzin. Een hogere waarde (bijv. 100) zal meer diverse antwoorden geven, terwijl een lagere waarde (bijv. 10) conservatiever zal zijn.", "Reference Chats": "Referentiechats", "Refresh": "Verversen", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Client-ID", "settings.admin.authentication.clientSecret.description": "OAuth-clientgeheim van de aanbieder.", "settings.admin.authentication.clientSecret.label": "Clientgeheim", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Gebruikt username@domain wanneer het LDAP-e-mailattribuut leeg is. Laat leeg om uit te schakelen. Logt in op een bestaand account met dat e-mailadres; gebruik een domein dat je beheert.", + "settings.admin.authentication.defaultEmailDomain.label": "Standaard e-maildomein", "settings.admin.authentication.defaultGroup.description": "Groep waaraan nieuwe gebruikers standaard worden toegewezen.", "settings.admin.authentication.defaultGroup.label": "Standaardgroep", "settings.admin.authentication.defaultUserRole.description": "Rol die nieuwe gebruikers krijgen wanneer ze een account aanmaken.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Drempel voor uitstellen (tekens)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Bepaalt hoe de assistent gereedschaps- en functieaanroepen opmaakt.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Gereedschapsfunctie aanroepprompt", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Kies welke bedieningselementen gebruikers zien. Als je een bedieningselement verbergt, blijven de huidige instelling en de onderliggende functie beschikbaar. Beheerders zien altijd de beschikbare bedieningselementen.", + "settings.admin.interface.visibility.title": "Zichtbare bedieningselementen", "settings.admin.interface.voiceModePrompt.description": "Pas spraakspecifieke instructies toe terwijl de spraakmodus actief is.", "settings.admin.interface.voiceModePrompt.label": "Prompt voor spraakmodus", "settings.admin.interface.webSearchQueryGeneration.description": "Herschrijf gebruikersverzoeken tot zoekopdrachten voor het web.", diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json index 87b47b5379..21cc9b7051 100644 --- a/src/lib/i18n/locales/pa-IN/translation.json +++ b/src/lib/i18n/locales/pa-IN/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "ਜਵਾਬ ਨੂੰ ਰੇਟਿੰਗ ਦੇਣ ਦੀ ਆਗਿਆ ਦਿਓ", "Allow Regenerate Response": "ਜਵਾਬ ਮੁੜ ਬਣਾਉਣ ਦੀ ਆਗਿਆ ਦਿਓ", "Allow replies": "ਜਵਾਬਾਂ ਦੀ ਆਗਿਆ", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "ਲੁਕੇ ਹੋਏ ਮਾਡਲਾਂ ਨੂੰ ਬੇਸ ਮਾਡਲਾਂ ਵਜੋਂ ਚੁਣਨ ਦੀ ਆਗਿਆ ਦਿਓ।", "Allow Sharing With Groups": "ਗਰੁੱਪਾਂ ਨਾਲ ਸਾਂਝਾ ਕਰਨ ਦੀ ਆਗਿਆ ਦਿਓ", "Allow Sharing With Users": "ਉਪਭੋਗਤਾਵਾਂ ਨਾਲ ਸਾਂਝਾ ਕਰਨ ਦੀ ਆਗਿਆ ਦਿਓ", "Allow Speech to Text": "ਬੋਲ-ਤੋਂ-ਪਾਠ ਦੀ ਆਗਿਆ ਦਿਓ", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "ਛੋਟਾ ਕਰੋ: ਪੁਰਾਣੇ ਸੁਨੇਹਿਆਂ ਨੂੰ ਛੋਟਾ ਕਰੋ ਤਾਂ ਜੋ ਇਹ ਗੱਲਬਾਤ ਜਾਰੀ ਰਹਿ ਸਕੇ।", "Compacting context": "ਸੰਦਰਭ ਛੋਟਾ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ", "Compacting context...": "ਸੰਦਰਭ ਛੋਟਾ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ...", - "Compaction summary": "", + "Compaction summary": "ਸੰਦਰਭ ਛੋਟਾ ਕਰਨ ਦਾ ਸੰਖੇਪ", "Compare": "ਤੁਲਨਾ ਕਰੋ", "Compare files": "ਫਾਈਲਾਂ ਦੀ ਤੁਲਨਾ ਕਰੋ", "Compare revision": "ਸੋਧ ਦੀ ਤੁਲਨਾ ਕਰੋ", @@ -1411,7 +1411,7 @@ "Hex Color": "ਹੈਕਸ ਰੰਗ", "Hex Color - Leave empty for default color": "ਹੈਕਸ ਰੰਗ - ਮੂਲ ਰੰਗ ਲਈ ਖਾਲੀ ਛੱਡੋ", "Hidden": "ਲੁਕਿਆ ਹੋਇਆ", - "Hidden Models": "", + "Hidden Models": "ਲੁਕੇ ਹੋਏ ਮਾਡਲ", "Hide": "ਲੁਕਾਓ", "Hide All": "ਸਾਰੇ ਲੁਕਾਓ", "Hide conversation": "ਗੱਲਬਾਤ ਲੁਕਾਓ", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "ਆਪਣੀ ਪ੍ਰਮਾਣਕ ਐਪ ਮੁੜ ਬਹਾਲ ਕਰੋ", "Recovery code": "ਰਿਕਵਰੀ ਕੋਡ", "Redirecting you to Open WebUI Community": "ਤੁਹਾਨੂੰ ਓਪਨਵੈਬਯੂਆਈ ਕਮਿਊਨਿਟੀ ਵੱਲ ਰੀਡਾਇਰੈਕਟ ਕੀਤਾ ਜਾ ਰਿਹਾ ਹੈ", - "Redo": "", + "Redo": "ਮੁੜ ਕਰੋ", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "ਬੇਤੁਕਾ ਟੈਕਸਟ ਤਿਆਰ ਹੋਣ ਦੀ ਸੰਭਾਵਨਾ ਘਟਾਉਂਦਾ ਹੈ। ਵੱਧ ਮੁੱਲ (ਉਦਾਹਰਣ ਲਈ 100) ਵਧੇਰੇ ਵੰਨ-ਸੁਵੰਨੇ ਜਵਾਬ ਦੇਵੇਗਾ, ਜਦਕਿ ਘੱਟ ਮੁੱਲ (ਉਦਾਹਰਣ ਲਈ 10) ਵਧੇਰੇ ਸੰਜਮ ਵਾਲੇ ਜਵਾਬ ਦੇਵੇਗਾ।", "Reference Chats": "ਗੱਲਾਂ ਦਾ ਹਵਾਲਾ ਦਿਓ", "Refresh": "ਤਾਜ਼ਾ ਕਰੋ", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "ਕਲਾਇੰਟ ID", "settings.admin.authentication.clientSecret.description": "ਪ੍ਰਦਾਤਾ ਤੋਂ ਮਿਲਿਆ OAuth ਕਲਾਇੰਟ ਸੀਕ੍ਰੇਟ।", "settings.admin.authentication.clientSecret.label": "ਕਲਾਇੰਟ ਸੀਕ੍ਰੇਟ", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ਈਮੇਲ ਐਟ੍ਰਿਬਿਊਟ ਖਾਲੀ ਹੋਣ 'ਤੇ, username@domain ਵਰਤਦਾ ਹੈ। ਇਸ ਵਿਸ਼ੇਸ਼ਤਾ ਨੂੰ ਬੰਦ ਕਰਨ ਲਈ ਖਾਲੀ ਛੱਡੋ। ਉਸ ਈਮੇਲ ਵਾਲੇ ਮੌਜੂਦਾ ਖਾਤੇ ਵਿੱਚ ਸਾਈਨ ਇਨ ਕਰਦਾ ਹੈ; ਆਪਣੇ ਨਿਯੰਤਰਣ ਵਾਲਾ ਡੋਮੇਨ ਵਰਤੋ।", + "settings.admin.authentication.defaultEmailDomain.label": "ਮੂਲ ਈਮੇਲ ਡੋਮੇਨ", "settings.admin.authentication.defaultGroup.description": "ਨਵੇਂ ਉਪਭੋਗਤਾਵਾਂ ਨੂੰ ਮੂਲ ਵਜੋਂ ਦਿੱਤਾ ਜਾਣ ਵਾਲਾ ਗਰੁੱਪ।", "settings.admin.authentication.defaultGroup.label": "ਮੂਲ ਗਰੁੱਪ", "settings.admin.authentication.defaultUserRole.description": "ਨਵੇਂ ਉਪਭੋਗਤਾਵਾਂ ਨੂੰ ਖਾਤਾ ਬਣਾਉਣ ਵੇਲੇ ਦਿੱਤੀ ਜਾਣ ਵਾਲੀ ਭੂਮਿਕਾ।", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "ਮੁਲਤਵੀ ਕਰਨ ਦੀ ਹੱਦ (ਅੱਖਰ)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "ਸੇਧ ਦਿੰਦਾ ਹੈ ਕਿ ਸਹਾਇਕ ਟੂਲ ਅਤੇ ਫੰਕਸ਼ਨ ਕਾਲਾਂ ਨੂੰ ਕਿਵੇਂ ਫਾਰਮੈਟ ਕਰੇ।", "settings.admin.interface.toolsFunctionCallingPrompt.label": "ਟੂਲ ਫੰਕਸ਼ਨ ਕਾਲਿੰਗ ਪ੍ਰੰਪਟ", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "ਚੁਣੋ ਕਿ ਉਪਭੋਗਤਾਵਾਂ ਨੂੰ ਕਿਹੜੇ ਕੰਟਰੋਲ ਦਿਖਾਈ ਦੇਣ। ਕਿਸੇ ਕੰਟਰੋਲ ਨੂੰ ਲੁਕਾਉਣ ਨਾਲ ਉਸ ਦੀ ਮੌਜੂਦਾ ਸੈਟਿੰਗ ਬਰਕਰਾਰ ਰਹਿੰਦੀ ਹੈ ਅਤੇ ਉਸ ਨਾਲ ਸੰਬੰਧਿਤ ਵਿਸ਼ੇਸ਼ਤਾ ਉਪਲਬਧ ਰਹਿੰਦੀ ਹੈ। ਪ੍ਰਬੰਧਕਾਂ ਨੂੰ ਉਪਲਬਧ ਕੰਟਰੋਲ ਹਮੇਸ਼ਾ ਦਿਖਾਈ ਦਿੰਦੇ ਹਨ।", + "settings.admin.interface.visibility.title": "ਦਿਖਣਯੋਗ ਕੰਟਰੋਲ", "settings.admin.interface.voiceModePrompt.description": "ਆਵਾਜ਼ ਮੋਡ ਸਰਗਰਮ ਹੋਣ ਦੌਰਾਨ ਆਵਾਜ਼ ਲਈ ਖਾਸ ਹਦਾਇਤਾਂ ਲਾਗੂ ਕਰੋ।", "settings.admin.interface.voiceModePrompt.label": "ਆਵਾਜ਼ ਮੋਡ ਪ੍ਰੰਪਟ", "settings.admin.interface.webSearchQueryGeneration.description": "ਉਪਭੋਗਤਾ ਦੀਆਂ ਬੇਨਤੀਆਂ ਨੂੰ ਵੈੱਬ ਖੋਜ ਪੁੱਛਗਿੱਛਾਂ ਵਜੋਂ ਮੁੜ ਲਿਖੋ।", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index 8e8b3ab2c6..01991b2523 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Zezwól na ocenianie odpowiedzi", "Allow Regenerate Response": "Zezwól na regenerację odpowiedzi", "Allow replies": "Zezwól na odpowiedzi", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Zezwól na wybieranie ukrytych modeli jako modeli bazowych.", "Allow Sharing With Groups": "Zezwól na udostępnianie grupom", "Allow Sharing With Users": "Zezwalaj na udostępnianie użytkownikom", "Allow Speech to Text": "Zezwól na zamianę mowy na tekst (STT)", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Kompaktuj: skróć starsze wiadomości, aby można było kontynuować ten czat.", "Compacting context": "Kompaktowanie kontekstu", "Compacting context...": "Kompaktowanie kontekstu...", - "Compaction summary": "", + "Compaction summary": "Streszczenie po kompaktowaniu", "Compare": "Porównaj", "Compare files": "Porównaj pliki", "Compare revision": "Porównaj wersję", @@ -1447,7 +1447,7 @@ "Hex Color": "Kolor Hex", "Hex Color - Leave empty for default color": "Kolor Hex - zostaw puste dla domyślnego", "Hidden": "Ukryty", - "Hidden Models": "", + "Hidden Models": "Ukryte modele", "Hide": "Ukryj", "Hide All": "Ukryj wszystkie", "Hide conversation": "Ukryj rozmowę", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Odzyskaj aplikację uwierzytelniającą", "Recovery code": "Kod odzyskiwania", "Redirecting you to Open WebUI Community": "Przekierowanie do społeczności Open WebUI", - "Redo": "", + "Redo": "Ponów", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Redukuje prawdopodobieństwo generowania nonsensu. Wyższa wartość (np. 100) = większa różnorodność, niższa (np. 10) = bardziej zachowawczo.", "Reference Chats": "Czaty referencyjne", "Refresh": "Odśwież", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "ID klienta", "settings.admin.authentication.clientSecret.description": "Sekret klienta OAuth od dostawcy.", "settings.admin.authentication.clientSecret.label": "Klucz klienta", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Używa adresu username@domain, gdy atrybut e-mail LDAP jest pusty. Pozostaw puste, aby wyłączyć. Loguje użytkownika do istniejącego konta o tym adresie e-mail; używaj domeny, którą kontrolujesz.", + "settings.admin.authentication.defaultEmailDomain.label": "Domyślna domena e-mail", "settings.admin.authentication.defaultGroup.description": "Grupa domyślnie przypisywana nowym użytkownikom.", "settings.admin.authentication.defaultGroup.label": "Domyślna grupa", "settings.admin.authentication.defaultUserRole.description": "Rola przypisywana nowym użytkownikom przy tworzeniu konta.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Próg odroczenia (znaki)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Określa, jak asystent formatuje wywołania narzędzi i funkcji.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt wywoływania funkcji (Tools)", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Wybierz, które kontrolki są widoczne dla użytkowników. Ukrycie kontrolki zachowuje jej bieżące ustawienie i dostępność powiązanej funkcji. Administratorzy zawsze widzą dostępne kontrolki.", + "settings.admin.interface.visibility.title": "Widoczne kontrolki", "settings.admin.interface.voiceModePrompt.description": "Stosuj instrukcje właściwe dla danego głosu, gdy tryb głosowy jest aktywny.", "settings.admin.interface.voiceModePrompt.label": "Prompt trybu głosowego", "settings.admin.interface.webSearchQueryGeneration.description": "Przekształcaj żądania użytkownika na zapytania wyszukiwania w internecie.", diff --git a/src/lib/i18n/locales/ro-RO/translation.json b/src/lib/i18n/locales/ro-RO/translation.json index 5318bdbfdb..f08367ab6f 100644 --- a/src/lib/i18n/locales/ro-RO/translation.json +++ b/src/lib/i18n/locales/ro-RO/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Permite evaluarea răspunsului", "Allow Regenerate Response": "Permite regenerarea răspunsului", "Allow replies": "Permite răspunsuri", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Permite selectarea modelelor ascunse ca modele de bază.", "Allow Sharing With Groups": "Permite partajarea cu grupuri", "Allow Sharing With Users": "Permite partajarea cu utilizatori", "Allow Speech to Text": "Permite conversia vocală în text", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Compactează: scurtează mesajele mai vechi pentru ca această conversație să poată continua.", "Compacting context": "Se compactează contextul", "Compacting context...": "Se compactează contextul...", - "Compaction summary": "", + "Compaction summary": "Rezumat de compactare", "Compare": "Compară", "Compare files": "Compară fișiere", "Compare revision": "Compară revizia", @@ -1429,7 +1429,7 @@ "Hex Color": "Culoare hex", "Hex Color - Leave empty for default color": "Culoare hex - lăsați gol pentru culoarea implicită", "Hidden": "Ascuns", - "Hidden Models": "", + "Hidden Models": "Modele ascunse", "Hide": "Ascunde", "Hide All": "Ascunde toate", "Hide conversation": "Ascunde conversația", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Recuperați aplicația de autentificare", "Recovery code": "Cod de recuperare", "Redirecting you to Open WebUI Community": "Vă redirecționăm către Comunitatea OpenWebUI", - "Redo": "", + "Redo": "Refă ultima modificare", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reduce probabilitatea de a genera conținut fără sens. O valoare mai mare (de ex. 100) va oferi răspunsuri mai diverse, în timp ce o valoare mai mică (de ex. 10) va fi mai conservatoare.", "Reference Chats": "Adaugă conversații ca referință", "Refresh": "Reîmprospătează", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "ID client", "settings.admin.authentication.clientSecret.description": "Secretul clientului OAuth de la furnizor.", "settings.admin.authentication.clientSecret.label": "Secret client", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Folosește username@domain când atributul LDAP pentru email este gol. Lăsați gol pentru dezactivare. Autentifică utilizatorul într-un cont existent cu acea adresă de email; folosiți un domeniu pe care îl controlați.", + "settings.admin.authentication.defaultEmailDomain.label": "Domeniu de email implicit", "settings.admin.authentication.defaultGroup.description": "Grupul atribuit implicit utilizatorilor noi.", "settings.admin.authentication.defaultGroup.label": "Grup implicit", "settings.admin.authentication.defaultUserRole.description": "Rolul atribuit utilizatorilor noi când își creează un cont.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Prag de amânare (caractere)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Ghidează modul în care asistentul formatează apelurile de instrumente și funcții.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt pentru apelarea instrumentelor și funcțiilor", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Alegeți ce controale sunt afișate utilizatorilor. Ascunderea unui control păstrează setarea sa curentă și funcționalitatea asociată disponibilă. Administratorii văd întotdeauna controalele disponibile.", + "settings.admin.interface.visibility.title": "Controale vizibile", "settings.admin.interface.voiceModePrompt.description": "Aplică instrucțiuni specifice modului vocal cât timp acesta este activ.", "settings.admin.interface.voiceModePrompt.label": "Prompt pentru modul vocal", "settings.admin.interface.webSearchQueryGeneration.description": "Reformulează cererile utilizatorilor în interogări de căutare web.", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 5fbcc4bbc8..bcb8974c6e 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Разрешить оценку ответа", "Allow Regenerate Response": "Разрешить повторную генерацию ответа", "Allow replies": "Разрешить ответы", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Разрешить выбирать скрытые модели в качестве базовых моделей.", "Allow Sharing With Groups": "Разрешить предоставление доступа группам", "Allow Sharing With Users": "Разрешить делиться с пользователями", "Allow Speech to Text": "Разрешить преобразование речи в текст", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Сжать контекст: сократить старые сообщения, чтобы можно было продолжить этот чат.", "Compacting context": "Сжатие контекста", "Compacting context...": "Сжатие контекста...", - "Compaction summary": "", + "Compaction summary": "Сводка сжатого контекста", "Compare": "Сравнить", "Compare files": "Сравнить файлы", "Compare revision": "Сравнить изменённый текст", @@ -1447,7 +1447,7 @@ "Hex Color": "Цвет Hex", "Hex Color - Leave empty for default color": "Цвет Hex - оставьте пустым значение цвета по умолчанию", "Hidden": "Скрыто", - "Hidden Models": "", + "Hidden Models": "Скрытые модели", "Hide": "Скрыть", "Hide All": "Скрыть Все", "Hide conversation": "Скрыть беседу", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Восстановление аутентификатора", "Recovery code": "Код восстановления", "Redirecting you to Open WebUI Community": "Перенаправляем вас в сообщество OpenWebUI", - "Redo": "", + "Redo": "Повторить действие", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Снижает вероятность появления бессмыслицы. Большее значение (например, 100) даст более разнообразные ответы, в то время как меньшее значение (например, 10) будет более консервативным.", "Reference Chats": "Чаты для контекста", "Refresh": "Обновить", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "Client ID", "settings.admin.authentication.clientSecret.description": "Секрет клиента OAuth от провайдера.", "settings.admin.authentication.clientSecret.label": "Client Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Использует username@domain, если атрибут электронной почты LDAP пуст. Оставьте поле пустым, чтобы отключить. Выполняет вход в существующую учётную запись с этим адресом электронной почты; используйте домен, который вы контролируете.", + "settings.admin.authentication.defaultEmailDomain.label": "Домен электронной почты по умолчанию", "settings.admin.authentication.defaultGroup.description": "Группа, назначаемая новым пользователям по умолчанию.", "settings.admin.authentication.defaultGroup.label": "Дефолтная группа", "settings.admin.authentication.defaultUserRole.description": "Роль, назначаемая новым пользователям при создании учётной записи.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Порог откладывания (в символах)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Определяет, как ассистент форматирует вызовы инструментов и функций.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Промпт на вызов функции Инструменты", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Выберите, какие элементы управления отображаются для пользователей. При скрытии элемента управления его текущая настройка сохраняется, а соответствующая функция остаётся доступной. Администраторы всегда видят доступные элементы управления.", + "settings.admin.interface.visibility.title": "Видимые элементы управления", "settings.admin.interface.voiceModePrompt.description": "Применять инструкции для голоса, пока активен голосовой режим.", "settings.admin.interface.voiceModePrompt.label": "Промпт голосового режима", "settings.admin.interface.webSearchQueryGeneration.description": "Переписывать запросы пользователей в запросы к поисковой системе.", diff --git a/src/lib/i18n/locales/sk-SK/translation.json b/src/lib/i18n/locales/sk-SK/translation.json index 6545baad9f..f92f7a2f78 100644 --- a/src/lib/i18n/locales/sk-SK/translation.json +++ b/src/lib/i18n/locales/sk-SK/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Povoliť hodnotenie odpovede", "Allow Regenerate Response": "Povoliť regenerovanie odpovede", "Allow replies": "Povoliť odpovedanie", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Povoliť výber skrytých modelov ako základných modelov.", "Allow Sharing With Groups": "Povoliť zdieľanie so skupinami", "Allow Sharing With Users": "Povoliť zdieľanie s používateľmi", "Allow Speech to Text": "Povoliť prevod reči na text", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Zhutniť: skrátiť staršie správy, aby tento chat mohol pokračovať.", "Compacting context": "Zhutňovanie kontextu", "Compacting context...": "Zhutňovanie kontextu...", - "Compaction summary": "", + "Compaction summary": "Zhrnutie zhutneného kontextu", "Compare": "Porovnať", "Compare files": "Porovnať súbory", "Compare revision": "Porovnať úpravu", @@ -1447,7 +1447,7 @@ "Hex Color": "Farba (hex)", "Hex Color - Leave empty for default color": "Farba (hex) - nechajte prázdne pre predvolenú farbu", "Hidden": "Skryté", - "Hidden Models": "", + "Hidden Models": "Skryté modely", "Hide": "Skryť", "Hide All": "Skryť všetko", "Hide conversation": "Skryť konverzáciu", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Obnovte svoj autentifikátor", "Recovery code": "Obnovovací kód", "Redirecting you to Open WebUI Community": "Presmerovanie na komunitu OpenWebUI", - "Redo": "", + "Redo": "Znova vykonať", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Znižuje pravdepodobnosť generovania nezmyslov. Vyššia hodnota (napr. 100) poskytne rozmanitejšie odpovede, zatiaľ čo nižšia hodnota (napr. 10) bude konzervatívnejšia.", "Reference Chats": "Odkázať na chaty", "Refresh": "Obnoviť", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "ID klienta", "settings.admin.authentication.clientSecret.description": "Tajný kľúč klienta OAuth od poskytovateľa.", "settings.admin.authentication.clientSecret.label": "Tajný kľúč klienta", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Použiť username@domain, keď je atribút e-mailu v LDAP prázdny. Ak chcete túto možnosť zakázať, nechajte pole prázdne. Používateľ sa prihlási do existujúceho účtu s týmto e-mailom; použite doménu, ktorú máte pod kontrolou.", + "settings.admin.authentication.defaultEmailDomain.label": "Predvolená e-mailová doména", "settings.admin.authentication.defaultGroup.description": "Skupina, do ktorej sú noví používatelia predvolene priradení.", "settings.admin.authentication.defaultGroup.label": "Predvolená skupina", "settings.admin.authentication.defaultUserRole.description": "Rola priradená novým užívateľom pri vytvorení účtu.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Prahová hodnota odloženia (počet znakov)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Usmerňuje, ako asistent formátuje volania nástrojov a funkcií.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt na volanie funkcií nástrojov", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Vyberte, ktoré ovládacie prvky sa zobrazia používateľom. Skrytím ovládacieho prvku sa zachová jeho aktuálne nastavenie a príslušná funkcia zostane dostupná. Administrátori vždy vidia dostupné ovládacie prvky.", + "settings.admin.interface.visibility.title": "Viditeľné ovládacie prvky", "settings.admin.interface.voiceModePrompt.description": "Použiť pokyny špecifické pre hlas, keď je aktívny hlasový režim.", "settings.admin.interface.voiceModePrompt.label": "Prompt pre hlasový režim", "settings.admin.interface.webSearchQueryGeneration.description": "Prepisovať požiadavky používateľa na dopyty pre vyhľadávanie na webe.", diff --git a/src/lib/i18n/locales/sl-SI/translation.json b/src/lib/i18n/locales/sl-SI/translation.json index 65e7c690f8..977155ff05 100644 --- a/src/lib/i18n/locales/sl-SI/translation.json +++ b/src/lib/i18n/locales/sl-SI/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Dovoli ocenjevanje odgovora", "Allow Regenerate Response": "Dovoli ponovno ustvarjanje odgovora", "Allow replies": "Dovoli odgovarjanje", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Dovoli izbiro skritih modelov kot osnovnih modelov.", "Allow Sharing With Groups": "Dovoli deljenje s skupinami", "Allow Sharing With Users": "Dovoli deljenje z uporabniki", "Allow Speech to Text": "Dovoli pretvorbo govora v besedilo", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Strni: skrajšaj starejša sporočila, da se lahko ta pogovor nadaljuje.", "Compacting context": "Compacting context", "Compacting context...": "Strnjevanje konteksta ...", - "Compaction summary": "", + "Compaction summary": "Povzetek strnjevanja", "Compare": "Primerjaj", "Compare files": "Primerjaj datoteke", "Compare revision": "Primerjaj različico", @@ -1447,7 +1447,7 @@ "Hex Color": "Šestnajstiška barva", "Hex Color - Leave empty for default color": "Hex Color - Leave empty for default color", "Hidden": "Skrito", - "Hidden Models": "", + "Hidden Models": "Skriti modeli", "Hide": "Skrij", "Hide All": "Skrij vse", "Hide conversation": "Skrij pogovor", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Obnovite aplikacijo za avtentikacijo", "Recovery code": "Obnovitvena koda", "Redirecting you to Open WebUI Community": "Redirecting you to Open WebUI Community", - "Redo": "", + "Redo": "Uveljavi", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.", "Reference Chats": "Reference Chats", "Refresh": "Osveži", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "ID odjemalca", "settings.admin.authentication.clientSecret.description": "Skrivnost odjemalca OAuth od ponudnika.", "settings.admin.authentication.clientSecret.label": "Skrivnost odjemalca", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Uporabi username@domain, ko je atribut LDAP za e-pošto prazen. Za onemogočanje pustite prazno. Uporabnik bo prijavljen v obstoječi račun s tem e-poštnim naslovom, zato uporabite domeno, ki jo nadzorujete.", + "settings.admin.authentication.defaultEmailDomain.label": "Privzeta e-poštna domena", "settings.admin.authentication.defaultGroup.description": "Skupina, privzeto dodeljena novim uporabnikom.", "settings.admin.authentication.defaultGroup.label": "Privzeta skupina", "settings.admin.authentication.defaultUserRole.description": "Vloga, dodeljena novim uporabnikom, ko ustvarijo račun.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Prag odlaganja (znaki)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Usmerja, kako asistent oblikuje klice orodij in funkcij.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Tools Function Calling Prompt", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Izberite, katere kontrole so prikazane uporabnikom. Ko kontrolo skrijete, njena trenutna nastavitev ostane nespremenjena, povezana funkcija pa ostane na voljo. Skrbniki vedno vidijo razpoložljive kontrole.", + "settings.admin.interface.visibility.title": "Vidne kontrole", "settings.admin.interface.voiceModePrompt.description": "Uporabi navodila, specifična za glas, medtem ko je glasovni način aktiven.", "settings.admin.interface.voiceModePrompt.label": "Voice Mode Prompt", "settings.admin.interface.webSearchQueryGeneration.description": "Prepiši uporabniške zahteve v poizvedbe spletnega iskanja.", diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json index 17bc1339d3..8507c161b6 100644 --- a/src/lib/i18n/locales/sr-RS/translation.json +++ b/src/lib/i18n/locales/sr-RS/translation.json @@ -235,7 +235,7 @@ "Allow Rate Response": "Дозволи оцењивање одговора", "Allow Regenerate Response": "Дозволи поновно генерисање одговора", "Allow replies": "Дозвољени одговори", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Дозвољава избор скривених модела као основних модела.", "Allow Sharing With Groups": "Дозволи дељење са групама", "Allow Sharing With Users": "Дозволи дељење са корисницима", "Allow Speech to Text": "Дозволи претварање говора у текст", @@ -567,7 +567,7 @@ "Compact: shorten older messages so this chat can keep going.": "Сажми: скратите старије поруке како би се ово ћаскање могло наставити.", "Compacting context": "Сажимање контекста", "Compacting context...": "Сажимање контекста...", - "Compaction summary": "", + "Compaction summary": "Сажетак контекста", "Compare": "Упореди", "Compare files": "Упореди датотеке", "Compare revision": "Упореди верзију", @@ -1429,7 +1429,7 @@ "Hex Color": "Хекс боја", "Hex Color - Leave empty for default color": "Хекс боја (празно за подразумевано)", "Hidden": "Скривено", - "Hidden Models": "", + "Hidden Models": "Скривени модели", "Hide": "Сакриј", "Hide All": "Сакриј све", "Hide conversation": "Сакриј разговор", @@ -2180,7 +2180,7 @@ "Recover your authenticator": "Опоравите свој аутентификатор", "Recovery code": "Код за опоравак", "Redirecting you to Open WebUI Community": "Преусмеравање на OpenWebUI заједницу", - "Redo": "", + "Redo": "Понови", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Смањује вероватноћу генерисања бесмислица. Већа вредност (нпр. 100) даће разноврсније одговоре, док ће мања вредност (нпр. 10) бити опрезнија.", "Reference Chats": "Користи ћаскања као референцу", "Refresh": "Освежи", @@ -2550,8 +2550,8 @@ "settings.admin.authentication.clientId.label": "ИД клијента", "settings.admin.authentication.clientSecret.description": "Тајна OAuth клијента коју издаје добављач.", "settings.admin.authentication.clientSecret.label": "Тајна клијента", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Користи адресу username@domain када је LDAP атрибут е-поште празан. Оставите празно да бисте ово онемогућили. Пријављује корисника на постојећи налог са том адресом е-поште; користите домен који контролишете.", + "settings.admin.authentication.defaultEmailDomain.label": "Подразумевани домен е-поште", "settings.admin.authentication.defaultGroup.description": "Група која се подразумевано додељује новим корисницима.", "settings.admin.authentication.defaultGroup.label": "Подразумевана група", "settings.admin.authentication.defaultUserRole.description": "Улога која се додељује новим корисницима када направе налог.", @@ -3049,8 +3049,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Праг одлагања (знакова)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Усмерава како помоћник форматира позиве алата и функција.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Упит за позивање функција алата", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Изаберите које контроле се приказују корисницима. Сакривање контроле задржава њено тренутно подешавање, а повезана функција остаје доступна. Администратори увек виде доступне контроле.", + "settings.admin.interface.visibility.title": "Видљиве контроле", "settings.admin.interface.voiceModePrompt.description": "Примењује упутства специфична за глас док је гласовни режим активан.", "settings.admin.interface.voiceModePrompt.label": "Упит гласовног режима", "settings.admin.interface.webSearchQueryGeneration.description": "Преобликује захтеве корисника у упите за веб претрагу.", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index a8cb0c2964..f7d98f4c38 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Tillåt betygsättning av svar", "Allow Regenerate Response": "Tillåt återgenerering av svar", "Allow replies": "Tillåt svar", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Tillåt att dolda modeller väljs som basmodeller.", "Allow Sharing With Groups": "Tillåt delning med grupper", "Allow Sharing With Users": "Tillåt delning med användare", "Allow Speech to Text": "Tillåt tal till text", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Komprimera: korta äldre meddelanden så att chatten kan fortsätta.", "Compacting context": "Komprimerar kontext", "Compacting context...": "Komprimerar kontext...", - "Compaction summary": "", + "Compaction summary": "Sammanfattning vid kontextkomprimering", "Compare": "Jämför", "Compare files": "Jämför filer", "Compare revision": "Jämför revidering", @@ -1411,7 +1411,7 @@ "Hex Color": "Hexfärg", "Hex Color - Leave empty for default color": "Hexfärg - Lämna tomt för standardfärg", "Hidden": "Dolda", - "Hidden Models": "", + "Hidden Models": "Dolda modeller", "Hide": "Dölj", "Hide All": "Dölj alla", "Hide conversation": "Dölj konversation", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Återställ din autentiseringsapp", "Recovery code": "Återställningskod", "Redirecting you to Open WebUI Community": "Omdirigerar dig till OpenWebUI Community", - "Redo": "", + "Redo": "Gör om", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Minskar sannolikheten för att generera nonsens. Ett högre värde (t.ex. 100) ger mer varierande svar, medan ett lägre värde (t.ex. 10) är mer konservativt.", "Reference Chats": "Bifoga annan chatt", "Refresh": "Uppdatera", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Klient-ID", "settings.admin.authentication.clientSecret.description": "OAuth-klienthemlighet från leverantören.", "settings.admin.authentication.clientSecret.label": "Klienthemlighet", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Använder username@domain när LDAP-attributet för e-post är tomt. Lämna tomt för att inaktivera. Loggar in på ett befintligt konto med den e-postadressen; använd en domän som du kontrollerar.", + "settings.admin.authentication.defaultEmailDomain.label": "Standarddomän för e-post", "settings.admin.authentication.defaultGroup.description": "Grupp som tilldelas nya användare som standard.", "settings.admin.authentication.defaultGroup.label": "Standardgrupp", "settings.admin.authentication.defaultUserRole.description": "Roll som tilldelas nya användare när de skapar ett konto.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Tröskel för uppskjutning (tecken)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Styr hur assistenten formaterar verktygs- och funktionsanrop.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt för anrop av verktygsfunktion:", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Välj vilka kontroller som visas för användare. Om du döljer en kontroll behålls dess aktuella inställning och den underliggande funktionen förblir tillgänglig. Administratörer ser alltid tillgängliga kontroller.", + "settings.admin.interface.visibility.title": "Synliga kontroller", "settings.admin.interface.voiceModePrompt.description": "Använd röstspecifika instruktioner medan röstläget är aktivt.", "settings.admin.interface.voiceModePrompt.label": "Prompt för röstläge", "settings.admin.interface.webSearchQueryGeneration.description": "Skriv om användarens förfrågningar till webbsökningsfrågor.", diff --git a/src/lib/i18n/locales/ta-IN/translation.json b/src/lib/i18n/locales/ta-IN/translation.json index 6675c823ec..c6ea3c1564 100644 --- a/src/lib/i18n/locales/ta-IN/translation.json +++ b/src/lib/i18n/locales/ta-IN/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "பதிலை விகிதத்தை அனுமதிக்கவும்", "Allow Regenerate Response": "பதிலை மீண்டும் உருவாக்க அனுமதிக்கவும்", "Allow replies": "பதில்களை அனுமதிப்பது", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "மறைக்கப்பட்ட மாதிரிகளை அடிப்படை மாதிரிகளாகத் தேர்ந்தெடுக்க அனுமதிக்கவும்.", "Allow Sharing With Groups": "குழுக்களுடன் பகிர்வதை அனுமதிக்கவும்", "Allow Sharing With Users": "பயனர்களுடன் பகிர்வதை அனுமதிக்கவும்", "Allow Speech to Text": "உரையிலிருந்து உரையை அனுமதிக்கவும்", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "சுருக்கு: இந்த அரட்டை தொடர பழைய செய்திகளைச் சுருக்கவும்.", "Compacting context": "சூழலைச் சுருக்குகிறது", "Compacting context...": "சூழலைச் சுருக்குகிறது...", - "Compaction summary": "", + "Compaction summary": "சுருக்கப்பட்ட சூழலின் சுருக்கவுரை", "Compare": "ஒப்பிடு", "Compare files": "கோப்புகளை ஒப்பிடவும்", "Compare revision": "திருத்தத்தை ஒப்பிடவும்", @@ -1411,7 +1411,7 @@ "Hex Color": "ஹெக்ஸ் கலர்", "Hex Color - Leave empty for default color": "ஹெக்ஸ் கலர் - இயல்புநிலை நிறத்திற்கு காலியாக விடவும்", "Hidden": "மறைக்கப்பட்டது", - "Hidden Models": "", + "Hidden Models": "மறைக்கப்பட்ட மாதிரிகள்", "Hide": "மறை", "Hide All": "அனைத்தையும் மறை", "Hide conversation": "உரையாடலை மறைக்கவும்", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "உங்கள் அங்கீகரிப்புச் செயலியை மீட்டெடுக்கவும்", "Recovery code": "மீட்புக் குறியீடு", "Redirecting you to Open WebUI Community": "உங்களை Open WebUI சமூகத்திற்கு திருப்பி விடுகிறோம்", - "Redo": "", + "Redo": "மீண்டும் செய்", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "முட்டாள்தனத்தை உருவாக்கும் நிகழ்தகவை குறைக்கிறது. அதிக மதிப்பு (எ.கா. 100) மிகவும் மாறுபட்ட பதில்களைக் கொடுக்கும், அதே சமயம் குறைந்த மதிப்பு (எ.கா. 10) மிகவும் பழமைவாதமாக இருக்கும்.", "Reference Chats": "குறிப்பு அரட்டைகள்", "Refresh": "புதுப்பி", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "கிளையண்ட் ID", "settings.admin.authentication.clientSecret.description": "வழங்குநரிடமிருந்து பெறப்பட்ட OAuth கிளையண்ட் ரகசியம்.", "settings.admin.authentication.clientSecret.label": "வாடிக்கையாளர் ரகசியம்", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP மின்னஞ்சல் பண்புக்கூறு காலியாக இருக்கும்போது username@domain ஐப் பயன்படுத்துகிறது. முடக்குவதற்குக் காலியாக விடவும். அந்த மின்னஞ்சல் கொண்ட ஏற்கனவே உள்ள கணக்கில் உள்நுழைகிறது; நீங்கள் கட்டுப்படுத்தும் டொமைனைப் பயன்படுத்தவும்.", + "settings.admin.authentication.defaultEmailDomain.label": "இயல்புநிலை மின்னஞ்சல் டொமைன்", "settings.admin.authentication.defaultGroup.description": "புதிய பயனர்களுக்கு இயல்பாக ஒதுக்கப்படும் குழு.", "settings.admin.authentication.defaultGroup.label": "இயல்புநிலை குழு", "settings.admin.authentication.defaultUserRole.description": "புதிய பயனர்கள் கணக்கை உருவாக்கும்போது அவர்களுக்கு ஒதுக்கப்படும் பங்கு.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "ஒத்திவைப்பு வரம்பு மதிப்பு (எழுத்துகள்)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "உதவியாளர் கருவி மற்றும் செயல்பாட்டு அழைப்புகளை எவ்வாறு வடிவமைக்கிறது என்பதை வழிநடத்துகிறது.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "கருவிகள் செயல்பாடு அழைப்பு வரியில்", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "பயனர்களுக்கு எந்தக் கட்டுப்பாடுகள் தெரிய வேண்டும் என்பதைத் தேர்ந்தெடுக்கவும். ஒரு கட்டுப்பாட்டை மறைத்தாலும் அதன் தற்போதைய அமைப்பும் அதற்குரிய அம்சமும் தொடர்ந்து கிடைக்கும். நிர்வாகிகளுக்குக் கிடைக்கும் கட்டுப்பாடுகள் எப்போதும் தெரியும்.", + "settings.admin.interface.visibility.title": "தெரியும் கட்டுப்பாடுகள்", "settings.admin.interface.voiceModePrompt.description": "குரல் பயன்முறை செயலில் இருக்கும்போது குரலுக்கான குறிப்பிட்ட வழிமுறைகளைப் பயன்படுத்தவும்.", "settings.admin.interface.voiceModePrompt.label": "குரல் பயன்முறை ப்ராம்ட்", "settings.admin.interface.webSearchQueryGeneration.description": "பயனர் கோரிக்கைகளை இணைய தேடல் வினவல்களாக மாற்றி எழுதவும்.", diff --git a/src/lib/i18n/locales/th-TH/translation.json b/src/lib/i18n/locales/th-TH/translation.json index 3bf968001a..32fe2a3ba2 100644 --- a/src/lib/i18n/locales/th-TH/translation.json +++ b/src/lib/i18n/locales/th-TH/translation.json @@ -211,7 +211,7 @@ "Allow Rate Response": "อนุญาตให้ให้คะแนนคำตอบ", "Allow Regenerate Response": "อนุญาตให้สร้างคำตอบใหม่", "Allow replies": "อนุญาตให้ตอบกลับ", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "อนุญาตให้เลือกโมเดลที่ซ่อนอยู่เป็นโมเดลพื้นฐาน", "Allow Sharing With Groups": "อนุญาตให้แชร์กับกลุ่ม", "Allow Sharing With Users": "อนุญาตให้แชร์กับผู้ใช้", "Allow Speech to Text": "อนุญาตให้แปลงเสียงเป็นข้อความ", @@ -543,7 +543,7 @@ "Compact: shorten older messages so this chat can keep going.": "ย่อบริบท: ย่อข้อความเก่าให้สั้นลงเพื่อให้แชทนี้ดำเนินต่อไปได้", "Compacting context": "กำลังย่อบริบท", "Compacting context...": "กำลังย่อบริบท...", - "Compaction summary": "", + "Compaction summary": "บทสรุปจากการย่อบริบท", "Compare": "เปรียบเทียบ", "Compare files": "เปรียบเทียบไฟล์", "Compare revision": "เปรียบเทียบฉบับแก้ไข", @@ -1393,7 +1393,7 @@ "Hex Color": "ค่าสี Hex", "Hex Color - Leave empty for default color": "สี Hex - เว้นว่างไว้เพื่อใช้ค่าสีเริ่มต้น", "Hidden": "ซ่อนอยู่", - "Hidden Models": "", + "Hidden Models": "โมเดลที่ซ่อนอยู่", "Hide": "ซ่อน", "Hide All": "ซ่อนทั้งหมด", "Hide conversation": "ซ่อนการสนทนา", @@ -2142,7 +2142,7 @@ "Recover your authenticator": "กู้คืนแอปยืนยันตัวตนของคุณ", "Recovery code": "รหัสกู้คืน", "Redirecting you to Open WebUI Community": "กำลังเปลี่ยนเส้นทางคุณไปยังชุมชน Open WebUI", - "Redo": "", + "Redo": "ทำซ้ำ", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "ลดโอกาสในการสร้างข้อความที่ไม่มีความหมาย ค่าให้สูงขึ้น (เช่น 100) จะทำให้ได้คำตอบที่หลากหลายมากขึ้น ในขณะที่ค่าให้ต่ำลง (เช่น 10) จะทำให้คำตอบระมัดระวังมากขึ้น", "Reference Chats": "การแชทอ้างอิง", "Refresh": "รีเฟรช", @@ -2506,8 +2506,8 @@ "settings.admin.authentication.clientId.label": "Client ID", "settings.admin.authentication.clientSecret.description": "Client Secret ของ OAuth จากผู้ให้บริการ", "settings.admin.authentication.clientSecret.label": "Client Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "ใช้ username@domain เมื่อแอตทริบิวต์อีเมลของ LDAP ว่างอยู่ เว้นว่างไว้เพื่อปิดใช้งาน หากมีบัญชีที่ใช้อีเมลนั้นอยู่แล้ว ระบบจะลงชื่อเข้าใช้บัญชีนั้น ดังนั้นให้ใช้โดเมนที่คุณควบคุม", + "settings.admin.authentication.defaultEmailDomain.label": "โดเมนอีเมลเริ่มต้น", "settings.admin.authentication.defaultGroup.description": "กลุ่มที่กำหนดให้ผู้ใช้ใหม่โดยค่าเริ่มต้น", "settings.admin.authentication.defaultGroup.label": "กลุ่มเริ่มต้น", "settings.admin.authentication.defaultUserRole.description": "บทบาทที่กำหนดให้ผู้ใช้ใหม่เมื่อสร้างบัญชี", @@ -3005,8 +3005,8 @@ "settings.admin.interface.toolSearchThreshold.label": "เกณฑ์การเลื่อนการโหลด (อักขระ)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "กำหนดแนวทางวิธีที่ผู้ช่วยจัดรูปแบบการเรียกใช้เครื่องมือและฟังก์ชัน", "settings.admin.interface.toolsFunctionCallingPrompt.label": "พรอมต์การเรียกใช้ฟังก์ชันของเครื่องมือ", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "เลือกตัวควบคุมที่จะแสดงให้ผู้ใช้เห็น การซ่อนตัวควบคุมจะคงการตั้งค่าปัจจุบันไว้ และฟีเจอร์ที่อยู่เบื้องหลังจะยังคงพร้อมใช้งาน ผู้ดูแลระบบจะเห็นตัวควบคุมที่พร้อมใช้งานเสมอ", + "settings.admin.interface.visibility.title": "ตัวควบคุมที่มองเห็นได้", "settings.admin.interface.voiceModePrompt.description": "ใช้คำสั่งเฉพาะสำหรับเสียงขณะที่โหมดเสียงทำงานอยู่", "settings.admin.interface.voiceModePrompt.label": "พรอมต์โหมดเสียง", "settings.admin.interface.webSearchQueryGeneration.description": "เขียนคำขอของผู้ใช้ขึ้นใหม่เป็นคำค้นหาเว็บ", diff --git a/src/lib/i18n/locales/tk-TM/translation.json b/src/lib/i18n/locales/tk-TM/translation.json index ba40293fbb..613731ca22 100644 --- a/src/lib/i18n/locales/tk-TM/translation.json +++ b/src/lib/i18n/locales/tk-TM/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Jogaba Baha Bermäge Rugsat ber", "Allow Regenerate Response": "Jogaby Täzeden Döretmäge Rugsat ber", "Allow replies": "Jogap bermäge rugsat", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Gizlenen modelleri esasy modeller hökmünde saýlamaga rugsat beriň.", "Allow Sharing With Groups": "Toparlar bilen Paýlaşmaga Rugsat ber", "Allow Sharing With Users": "Ulanyjylar bilen Paýlaşmaga Rugsat ber", "Allow Speech to Text": "Sesden Tekste Geçirmäge Rugsat ber", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Gys: bu çaty dowam etdirmek üçin öňki habarlary gysgalt.", "Compacting context": "Kontekst gysylýar", "Compacting context...": "Kontekst gysylýar...", - "Compaction summary": "", + "Compaction summary": "Gysmagyň gysgaça mazmuny", "Compare": "Deňeşdir", "Compare files": "Faýllary deňeşdir", "Compare revision": "Redaksiýany deňeşdir", @@ -1411,7 +1411,7 @@ "Hex Color": "Onaltylyk Reňk", "Hex Color - Leave empty for default color": "Onaltylyk Reňk - Nokatlaýyn reňk üçin boş goýuň", "Hidden": "Gizlenen", - "Hidden Models": "", + "Hidden Models": "Gizlenen Modeller", "Hide": "Gizle", "Hide All": "Ählisini Gizle", "Hide conversation": "Söhbeti gizle", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Autentifikatoryňyzy dikeldiň", "Recovery code": "Dikeldiş kody", "Redirecting you to Open WebUI Community": "Open WebUI Community sahypasyna geçirilýärsiňiz", - "Redo": "", + "Redo": "Täzeden ýerine ýetir", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Manysyz tekstiň döredilmek ähtimallygyny peseldýär. Ýokary baha (mysal üçin: 100) has dürli jogaplar berer, pes baha (mysal üçin: 10) bolsa has seresaply bolar.", "Reference Chats": "Çatlara Salgylan", "Refresh": "Täzele", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "Client ID", "settings.admin.authentication.clientSecret.description": "Üpjün edijiden alnan OAuth client gizlin açary.", "settings.admin.authentication.clientSecret.label": "Client Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP e-poçta atributy boş bolsa, username@domain ulanýar. Işjeňsizleşdirmek üçin boş goýuň. Şol e-poçta salgysy bilen bar bolan hasaba girýär; özüňiziň dolandyrýan domeniňizi ulanyň.", + "settings.admin.authentication.defaultEmailDomain.label": "Nokatlaýyn E-poçta Domeni", "settings.admin.authentication.defaultGroup.description": "Täze ulanyjylara nokatlaýyn bellenýän topar.", "settings.admin.authentication.defaultGroup.label": "Nokatlaýyn Topar", "settings.admin.authentication.defaultUserRole.description": "Täze ulanyjylar hasap döredenlerinde olara bellenýän rol.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Yza Süýşürmegiň Çäk Bahasy (nyşan)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Kömekçiniň gural we funksiýa çagyryşlaryny nähili formatlaýandygyny ugrukdyrýar.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Gurallaryň Funksiýa Çagyryşynyň Prompty", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Ulanyjylara haýsy dolandyryş elementleriniň görkeziljekdigini saýlaň. Dolandyryş elementini gizlemek onuň häzirki sazlamasyny saklaýar we degişli mümkinçilik elýeterli bolup galýar. Administratorlar elýeterli dolandyryş elementlerini hemişe görýärler.", + "settings.admin.interface.visibility.title": "Görünýän dolandyryş elementleri", "settings.admin.interface.voiceModePrompt.description": "Ses tertibi işjeň wagty sese mahsus görkezmeleri ulanyň.", "settings.admin.interface.voiceModePrompt.label": "Ses Tertibiniň Prompty", "settings.admin.interface.webSearchQueryGeneration.description": "Ulanyjynyň haýyşlaryny internetde gözleg soraglaryna öwürip gaýtadan ýazyň.", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index e61affa737..3bc8aabc81 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "Yanıtı Değerlendirmeye İzin Ver", "Allow Regenerate Response": "Yanıtı Yeniden Oluşturmaya İzin Ver", "Allow replies": "Yanıtlara izin ver", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Gizli modellerin temel model olarak seçilmesine izin ver.", "Allow Sharing With Groups": "Gruplarla Paylaşmaya İzin Ver", "Allow Sharing With Users": "Kullanıcılarla Paylaşmaya İzin Ver", "Allow Speech to Text": "Sesten Metne İzin Ver", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "Sıkıştır: Bu sohbetin devam edebilmesi için eski mesajları kısaltın.", "Compacting context": "Bağlam sıkıştırılıyor", "Compacting context...": "Bağlam sıkıştırılıyor...", - "Compaction summary": "", + "Compaction summary": "Sıkıştırma özeti", "Compare": "Karşılaştır", "Compare files": "Dosyaları karşılaştır", "Compare revision": "Revizyonu karşılaştır", @@ -1411,7 +1411,7 @@ "Hex Color": "Onaltılık Renk", "Hex Color - Leave empty for default color": "Onaltılık Renk - Varsayılan renk için boş bırakın", "Hidden": "Gizli", - "Hidden Models": "", + "Hidden Models": "Gizli Modeller", "Hide": "Gizle", "Hide All": "Tümünü Gizle", "Hide conversation": "Konuşmayı gizle", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "Kimlik doğrulayıcınızı kurtarın", "Recovery code": "Kurtarma kodu", "Redirecting you to Open WebUI Community": "OpenWebUI Topluluğuna yönlendiriliyorsunuz", - "Redo": "", + "Redo": "Yinele", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Anlamsız çıktı üretme olasılığını azaltır. Daha yüksek bir değer (örneğin 100) daha çeşitli yanıtlar verirken, daha düşük bir değer (örneğin 10) daha tutucu olur.", "Reference Chats": "Referans Sohbetler", "Refresh": "Yenile", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "İstemci Kimliği", "settings.admin.authentication.clientSecret.description": "Sağlayıcıdan alınan OAuth istemci gizli anahtarı.", "settings.admin.authentication.clientSecret.label": "İstemci Gizli Anahtarı", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP e-posta özniteliği boş olduğunda username@domain kullanır. Devre dışı bırakmak için boş bırakın. Bu e-posta adresine sahip mevcut bir hesapta oturum açar; kontrolünüzde olan bir alan adı kullanın.", + "settings.admin.authentication.defaultEmailDomain.label": "Varsayılan E-posta Alan Adı", "settings.admin.authentication.defaultGroup.description": "Yeni kullanıcılara varsayılan olarak atanan grup.", "settings.admin.authentication.defaultGroup.label": "Varsayılan Grup", "settings.admin.authentication.defaultUserRole.description": "Yeni kullanıcılar hesap oluşturduğunda atanan rol.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Erteleme Eşiği (karakter)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Asistanın araç ve fonksiyon çağrılarını nasıl biçimlendireceğine rehberlik eder.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Araçlar İşlev Çağırma İstemi", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Kullanıcılara hangi kontrollerin gösterileceğini seçin. Bir kontrolü gizlemek, mevcut ayarını korur ve ilgili özelliği kullanılabilir durumda tutar. Yöneticiler kullanılabilir kontrolleri her zaman görür.", + "settings.admin.interface.visibility.title": "Görünür kontroller", "settings.admin.interface.voiceModePrompt.description": "Ses modu etkinken ses odaklı talimatlar uygulayın.", "settings.admin.interface.voiceModePrompt.label": "Sesli Mod İstemi", "settings.admin.interface.webSearchQueryGeneration.description": "Kullanıcı isteklerini web arama sorgularına dönüştür.", diff --git a/src/lib/i18n/locales/ug-CN/translation.json b/src/lib/i18n/locales/ug-CN/translation.json index bba1509042..c410b41795 100644 --- a/src/lib/i18n/locales/ug-CN/translation.json +++ b/src/lib/i18n/locales/ug-CN/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "ئىنكاسقا باھا بېرىشكە ئىجازەت", "Allow Regenerate Response": "ئىنكاسنى قايتا ھاسىل قىلىشقا ئىجازەت", "Allow replies": "ئىنكاس قايتۇرۇشقا ئىجازەت", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "يوشۇرۇن مودېللارنى ئاساسىي مودېل قىلىپ تاللاشقا ئىجازەت بېرىڭ.", "Allow Sharing With Groups": "گۇرۇپپىلار بىلەن ھەمبەھىرلەشكە ئىجازەت", "Allow Sharing With Users": "ئىشلەتكۈچىلەر بىلەن ھەمبەھىرلەشكە ئىجازەت", "Allow Speech to Text": "ئاۋازنى تېكستكە ئايلاندۇرۇشقا ئىجازەت", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "ئىخچاملاش: بۇ سۆھبەتنى داۋاملاشتۇرۇش ئۈچۈن كونا ئۇچۇرلارنى قىسقارتىڭ.", "Compacting context": "مۇھىت ئىخچاملىنىۋاتىدۇ", "Compacting context...": "مۇھىت ئىخچاملىنىۋاتىدۇ...", - "Compaction summary": "", + "Compaction summary": "ئىخچاملاش خۇلاسىسى", "Compare": "سېلىشتۇرۇش", "Compare files": "ھۆججەتلەرنى سېلىشتۇرۇش", "Compare revision": "تۈزىتىلگەن نۇسخىنى سېلىشتۇرۇش", @@ -1411,7 +1411,7 @@ "Hex Color": "Hex رەڭ", "Hex Color - Leave empty for default color": "Hex رەڭ - كۆڭۈلدىكى رەڭ ئۈچۈن بوش قالدۇرۇڭ", "Hidden": "يوشۇرۇن", - "Hidden Models": "", + "Hidden Models": "يوشۇرۇن مودېللار", "Hide": "يوشۇرۇش", "Hide All": "ھەممىنى يوشۇرۇش", "Hide conversation": "سۆھبەتنى يوشۇرۇش", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "دەلىللىگۈچىڭىزنى قايتۇرۇۋېلىش", "Recovery code": "قايتۇرۇۋېلىش كودى", "Redirecting you to Open WebUI Community": "Open WebUI جەمئىيىتىگە يوللاندى", - "Redo": "", + "Redo": "قايتا قىلىش", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "ئاساسسىز ئىنكاس چىقىرىشىنىڭ ئېھتىماللىقىنى ئازايتىدۇ. چوڭ قىممەت (مەسىلەن: 100) كۆپ خىل ئىنكاس، كىچىك قىممەت (مەسىلەن: 10) تېخىمۇ مۇقىم ئىنكاس بېرىدۇ.", "Reference Chats": "سۆھبەتلەردىن پايدىلىنىش", "Refresh": "يېڭىلاش", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "خېرىدار ID", "settings.admin.authentication.clientSecret.description": "تەمىنلىگۈچى بەرگەن OAuth خېرىدار مەخپىي ئاچقۇچى.", "settings.admin.authentication.clientSecret.label": "خېرىدار مەخپىي ئاچقۇچى", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ئېلخەت خاسلىقى بوش بولسا، username@domain نى ئىشلىتىدۇ. چەكلەش ئۈچۈن بوش قالدۇرۇڭ. شۇ ئېلخەتلىك مەۋجۇت ھېساباتقا كىرىدۇ؛ ئۆزىڭىز باشقۇرىدىغان دائىرە نامىنى ئىشلىتىڭ.", + "settings.admin.authentication.defaultEmailDomain.label": "كۆڭۈلدىكى ئېلخەت دائىرە نامى", "settings.admin.authentication.defaultGroup.description": "يېڭى ئىشلەتكۈچىلەرگە كۆڭۈلدىكى ھالەتتە تەقسىم قىلىنىدىغان گۇرۇپپا.", "settings.admin.authentication.defaultGroup.label": "كۆڭۈلدىكى گۇرۇپپا", "settings.admin.authentication.defaultUserRole.description": "يېڭى ئىشلەتكۈچىلەر ھېسابات قۇرغاندا تەقسىم قىلىنىدىغان رول.", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "كېچىكتۈرۈش چەك قىممىتى (ھەرپ)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "ياردەمچىنىڭ قورال ۋە فۇنكسىيە چاقىرىشلىرىنى قانداق فورماتلايدىغانلىقىغا يېتەكچىلىك قىلىدۇ.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "قورال فۇنكسىيەسىنى چاقىرىش تۈرتكەسى", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "ئىشلەتكۈچىلەرگە قايسى باشقۇرۇش ئېلېمېنتلىرىنىڭ كۆرۈنىدىغانلىقىنى تاللاڭ. باشقۇرۇش ئېلېمېنتىنى يوشۇرۇش ئۇنىڭ نۆۋەتتىكى تەڭشىكىنى ساقلايدۇ ۋە مۇناسىۋەتلىك ئىقتىدارىنى داۋاملىق ئىشلىتىشكە بولىدۇ. باشقۇرغۇچىلار ئىشلىتىشكە بولىدىغان باشقۇرۇش ئېلېمېنتلىرىنى ھەمىشە كۆرەلەيدۇ.", + "settings.admin.interface.visibility.title": "كۆرۈنىدىغان باشقۇرۇش ئېلېمېنتلىرى", "settings.admin.interface.voiceModePrompt.description": "ئاۋاز ھالىتى ئاكتىپ بولغاندا ئاۋازغا خاس كۆرسەتمىلەرنى قوللىنىڭ.", "settings.admin.interface.voiceModePrompt.label": "ئاۋاز ھالىتى تۈرتكەسى", "settings.admin.interface.webSearchQueryGeneration.description": "ئىشلەتكۈچى تەلەپلىرىنى تور ئىزدەش سۇئاللىرىغا قايتا يېزىڭ.", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index c685581568..71db796ad1 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -247,7 +247,7 @@ "Allow Rate Response": "Дозволити оцінювання відповіді", "Allow Regenerate Response": "Дозволити регенерацію відповіді", "Allow replies": "Дозволити відповіді", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Дозволити вибирати приховані моделі як базові моделі.", "Allow Sharing With Groups": "Дозволити ділитися з групами", "Allow Sharing With Users": "Дозволити ділитися з користувачами", "Allow Speech to Text": "Дозволити розпізнавання мови", @@ -579,7 +579,7 @@ "Compact: shorten older messages so this chat can keep going.": "Ущільнити контекст: скоротити старі повідомлення, щоб можна було продовжити цей чат.", "Compacting context": "Ущільнення контексту", "Compacting context...": "Ущільнення контексту...", - "Compaction summary": "", + "Compaction summary": "Підсумок ущільнення контексту", "Compare": "Порівняти", "Compare files": "Порівняти файли", "Compare revision": "Порівняти редакцію", @@ -1447,7 +1447,7 @@ "Hex Color": "Шістнадцятковий колір", "Hex Color - Leave empty for default color": "Шістнадцятковий колір — залиште порожнім для кольору за замовчуванням", "Hidden": "Приховано", - "Hidden Models": "", + "Hidden Models": "Приховані моделі", "Hide": "Приховати", "Hide All": "Приховати все", "Hide conversation": "Приховати розмову", @@ -2199,7 +2199,7 @@ "Recover your authenticator": "Відновіть аутентифікатор", "Recovery code": "Код відновлення", "Redirecting you to Open WebUI Community": "Перенаправляємо вас до спільноти OpenWebUI", - "Redo": "", + "Redo": "Повторити зміну", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Зменшує ймовірність генерування нісенітниць. Вищий показник (напр., 100) забезпечить більше різноманітних відповідей, тоді як нижчий показник (напр., 10) буде більш обережним.", "Reference Chats": "Довідкові чати", "Refresh": "Оновити", @@ -2572,8 +2572,8 @@ "settings.admin.authentication.clientId.label": "ID клієнта", "settings.admin.authentication.clientSecret.description": "Секрет клієнта OAuth, отриманий від постачальника.", "settings.admin.authentication.clientSecret.label": "Секрет клієнта", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Використовує username@domain, коли атрибут ел. пошти LDAP порожній. Залиште порожнім, щоб вимкнути. Виконує вхід до наявного облікового запису з цією адресою ел. пошти; використовуйте домен, який ви контролюєте.", + "settings.admin.authentication.defaultEmailDomain.label": "Домен ел. пошти за замовчуванням", "settings.admin.authentication.defaultGroup.description": "Група, яка призначається новим користувачам за замовчуванням.", "settings.admin.authentication.defaultGroup.label": "Група за замовчуванням", "settings.admin.authentication.defaultUserRole.description": "Роль, що призначається новим користувачам під час створення облікового запису.", @@ -3071,8 +3071,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Поріг відкладання (символів)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Визначає, як асистент форматує виклики інструментів і функцій.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Підказка для виклику функцій інструментів", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Виберіть, які елементи керування показувати користувачам. Приховування елемента керування зберігає його поточне налаштування та доступність відповідної функції. Адміністратори завжди бачать доступні елементи керування.", + "settings.admin.interface.visibility.title": "Видимі елементи керування", "settings.admin.interface.voiceModePrompt.description": "Застосовувати спеціальні голосові інструкції, коли активний голосовий режим.", "settings.admin.interface.voiceModePrompt.label": "Підказка для голосового режиму", "settings.admin.interface.webSearchQueryGeneration.description": "Переписувати запити користувача на запити пошуку в інтернеті.", diff --git a/src/lib/i18n/locales/ur-PK/translation.json b/src/lib/i18n/locales/ur-PK/translation.json index ba21f1daa9..62a3f929e4 100644 --- a/src/lib/i18n/locales/ur-PK/translation.json +++ b/src/lib/i18n/locales/ur-PK/translation.json @@ -223,7 +223,7 @@ "Allow Rate Response": "جواب کی درجہ بندی کرنے کی اجازت دیں", "Allow Regenerate Response": "جواب دوبارہ تخلیق کرنے کی اجازت دیں", "Allow replies": "جوابات کی اجازت دیں", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "پوشیدہ ماڈلز کو بیس ماڈلز کے طور پر منتخب کرنے کی اجازت دیں۔", "Allow Sharing With Groups": "گروپس کے ساتھ شیئر کرنے کی اجازت دیں", "Allow Sharing With Users": "صارفین کے ساتھ شیئر کرنے کی اجازت دیں", "Allow Speech to Text": "تقریر-سے-متن کی اجازت دیں", @@ -555,7 +555,7 @@ "Compact: shorten older messages so this chat can keep going.": "مختصر کریں: پرانے پیغامات مختصر کریں تاکہ یہ چیٹ جاری رہ سکے۔", "Compacting context": "کانٹیکسٹ مختصر ہو رہا ہے", "Compacting context...": "کانٹیکسٹ مختصر ہو رہا ہے...", - "Compaction summary": "", + "Compaction summary": "کانٹیکسٹ کو مختصر کرنے کا خلاصہ", "Compare": "موازنہ کریں", "Compare files": "فائلوں کا موازنہ کریں", "Compare revision": "ترمیم کا موازنہ کریں", @@ -1411,7 +1411,7 @@ "Hex Color": "ہیکس رنگ", "Hex Color - Leave empty for default color": "ہیکس رنگ، ڈیفالٹ رنگ کے لیے خالی چھوڑیں", "Hidden": "پوشیدہ", - "Hidden Models": "", + "Hidden Models": "پوشیدہ ماڈلز", "Hide": "چھپائیں", "Hide All": "سب چھپائیں", "Hide conversation": "گفتگو چھپائیں", @@ -2161,7 +2161,7 @@ "Recover your authenticator": "اپنی آتھنٹیکیٹر ایپ بحال کریں", "Recovery code": "ریکوری کوڈ", "Redirecting you to Open WebUI Community": "آپ کو اوپن ویب یو آئی کمیونٹی کی طرف ری ڈائریکٹ کیا جا رہا ہے", - "Redo": "", + "Redo": "دوبارہ کریں", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "بے معنی متن تخلیق ہونے کا امکان کم کرتا ہے۔ زیادہ قدر (مثلاً 100) زیادہ متنوع جوابات دے گی، جبکہ کم قدر (مثلاً 10) زیادہ محتاط ہو گی۔", "Reference Chats": "چیٹس کا حوالہ دیں", "Refresh": "ریفریش کریں", @@ -2528,8 +2528,8 @@ "settings.admin.authentication.clientId.label": "کلائنٹ ID", "settings.admin.authentication.clientSecret.description": "فراہم کنندہ کی جانب سے OAuth کلائنٹ سیکرٹ۔", "settings.admin.authentication.clientSecret.label": "کلائنٹ سیکرٹ", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "LDAP ای میل ایٹریبیوٹ خالی ہونے پر username@domain استعمال کرتا ہے۔ غیر فعال کرنے کے لیے خالی چھوڑیں۔ اس ای میل والے موجودہ اکاؤنٹ میں سائن ان کرتا ہے؛ ایسا ڈومین استعمال کریں جو آپ کے کنٹرول میں ہو۔", + "settings.admin.authentication.defaultEmailDomain.label": "ڈیفالٹ ای میل ڈومین", "settings.admin.authentication.defaultGroup.description": "نئے صارفین کو ڈیفالٹ طور پر تفویض کیا جانے والا گروپ۔", "settings.admin.authentication.defaultGroup.label": "ڈیفالٹ گروپ", "settings.admin.authentication.defaultUserRole.description": "نئے صارفین کو اکاؤنٹ بناتے وقت تفویض کیا جانے والا کردار۔", @@ -3027,8 +3027,8 @@ "settings.admin.interface.toolSearchThreshold.label": "مؤخر کرنے کا تھریشولڈ (حروف)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "اسسٹنٹ کو ٹول اور فنکشن کالز کا فارمیٹ بنانے میں رہنمائی فراہم کرتا ہے۔", "settings.admin.interface.toolsFunctionCallingPrompt.label": "ٹولز کی فنکشن کالنگ کا پرامپٹ", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "منتخب کریں کہ صارفین کو کون سے کنٹرولز نظر آئیں۔ کسی کنٹرول کو چھپانے سے اس کی موجودہ ترتیب برقرار رہتی ہے اور اس سے متعلق خصوصیت دستیاب رہتی ہے۔ ایڈمنز کو دستیاب کنٹرولز ہمیشہ نظر آتے ہیں۔", + "settings.admin.interface.visibility.title": "نظر آنے والے کنٹرولز", "settings.admin.interface.voiceModePrompt.description": "وائس موڈ فعال ہونے کے دوران آواز کے لیے مخصوص ہدایات لاگو کریں۔", "settings.admin.interface.voiceModePrompt.label": "وائس موڈ کا پرامپٹ", "settings.admin.interface.webSearchQueryGeneration.description": "صارف کی درخواستوں کو ویب تلاش کے استفسارات میں دوبارہ لکھیں۔", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index ef6e3c2fb4..c414cb83ce 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -211,7 +211,7 @@ "Allow Rate Response": "Cho phép đánh giá phản hồi", "Allow Regenerate Response": "Cho phép tạo lại phản hồi", "Allow replies": "Cho phép trả lời", - "Allow selecting hidden models as base models.": "", + "Allow selecting hidden models as base models.": "Cho phép chọn các mô hình ẩn làm mô hình cơ sở.", "Allow Sharing With Groups": "Cho phép chia sẻ với nhóm", "Allow Sharing With Users": "Cho phép chia sẻ với người dùng", "Allow Speech to Text": "Cho phép nhận dạng giọng nói", @@ -543,7 +543,7 @@ "Compact: shorten older messages so this chat can keep going.": "Thu gọn: rút ngắn các tin nhắn cũ để chat này có thể tiếp tục.", "Compacting context": "Đang thu gọn ngữ cảnh", "Compacting context...": "Đang thu gọn ngữ cảnh...", - "Compaction summary": "", + "Compaction summary": "Bản tóm tắt thu gọn ngữ cảnh", "Compare": "So sánh", "Compare files": "So sánh tệp", "Compare revision": "So sánh bản sửa đổi", @@ -1393,7 +1393,7 @@ "Hex Color": "Màu Hex", "Hex Color - Leave empty for default color": "Màu Hex - Để trống để dùng màu mặc định", "Hidden": "Đã ẩn", - "Hidden Models": "", + "Hidden Models": "Mô hình ẩn", "Hide": "Ẩn", "Hide All": "Ẩn tất cả", "Hide conversation": "Ẩn cuộc trò chuyện", @@ -2142,7 +2142,7 @@ "Recover your authenticator": "Khôi phục ứng dụng xác thực của bạn", "Recovery code": "Mã khôi phục", "Redirecting you to Open WebUI Community": "Đang chuyển hướng bạn đến Cộng đồng OpenWebUI", - "Redo": "", + "Redo": "Làm lại", "Reduces the probability of generating nonsense. A higher value (e.g. 100) will give more diverse answers, while a lower value (e.g. 10) will be more conservative.": "Giảm xác suất tạo ra nội dung vô nghĩa. Giá trị cao hơn (ví dụ: 100) sẽ cho câu trả lời đa dạng hơn, trong khi giá trị thấp hơn (ví dụ: 10) sẽ thận trọng hơn.", "Reference Chats": "Tham chiếu chat", "Refresh": "Làm mới", @@ -2506,8 +2506,8 @@ "settings.admin.authentication.clientId.label": "Client ID", "settings.admin.authentication.clientSecret.description": "Client secret OAuth từ nhà cung cấp.", "settings.admin.authentication.clientSecret.label": "Client Secret", - "settings.admin.authentication.defaultEmailDomain.description": "", - "settings.admin.authentication.defaultEmailDomain.label": "", + "settings.admin.authentication.defaultEmailDomain.description": "Sử dụng username@domain khi thuộc tính email LDAP trống. Để trống để tắt. Người dùng sẽ được đăng nhập vào tài khoản hiện có mang email đó; nên sử dụng tên miền do bạn kiểm soát.", + "settings.admin.authentication.defaultEmailDomain.label": "Tên miền email mặc định", "settings.admin.authentication.defaultGroup.description": "Nhóm được gán mặc định cho người dùng mới.", "settings.admin.authentication.defaultGroup.label": "Nhóm mặc định", "settings.admin.authentication.defaultUserRole.description": "Vai trò được gán cho người dùng mới khi họ tạo tài khoản.", @@ -3005,8 +3005,8 @@ "settings.admin.interface.toolSearchThreshold.label": "Ngưỡng hoãn tải (ký tự)", "settings.admin.interface.toolsFunctionCallingPrompt.description": "Hướng dẫn cách trợ lý định dạng các lệnh gọi tool và function.", "settings.admin.interface.toolsFunctionCallingPrompt.label": "Prompt Gọi Function của Tools", - "settings.admin.interface.visibility.description": "", - "settings.admin.interface.visibility.title": "", + "settings.admin.interface.visibility.description": "Chọn các điều khiển hiển thị cho người dùng. Việc ẩn một điều khiển giữ nguyên cài đặt hiện tại của điều khiển đó và vẫn cho phép sử dụng tính năng tương ứng. Quản trị viên luôn thấy các điều khiển khả dụng.", + "settings.admin.interface.visibility.title": "Các điều khiển được hiển thị", "settings.admin.interface.voiceModePrompt.description": "Áp dụng hướng dẫn dành riêng cho giọng nói khi chế độ giọng nói đang bật.", "settings.admin.interface.voiceModePrompt.label": "Prompt chế độ giọng nói", "settings.admin.interface.webSearchQueryGeneration.description": "Viết lại yêu cầu của người dùng thành truy vấn tìm kiếm web.", From 1ae310b622765e2eaec1bad77f0fecaf5f7ba0d7 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:20:35 -0400 Subject: [PATCH 30/98] fix(a11y): name the action column in the users and feedback tables (#33257) --- src/lib/components/admin/Evaluations/Feedbacks.svelte | 1 + src/lib/components/admin/Users/UserList.svelte | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/admin/Evaluations/Feedbacks.svelte b/src/lib/components/admin/Evaluations/Feedbacks.svelte index 7a4a91ba1c..bf999eb00a 100644 --- a/src/lib/components/admin/Evaluations/Feedbacks.svelte +++ b/src/lib/components/admin/Evaluations/Feedbacks.svelte @@ -446,6 +446,7 @@ scope="col" class="px-2.5 py-2 font-normal text-right cursor-pointer select-none w-0" > + {$i18n.t('Actions')} diff --git a/src/lib/components/admin/Users/UserList.svelte b/src/lib/components/admin/Users/UserList.svelte index dfef093dc3..3f43f62c70 100644 --- a/src/lib/components/admin/Users/UserList.svelte +++ b/src/lib/components/admin/Users/UserList.svelte @@ -362,7 +362,9 @@ - + {$i18n.t('Actions')} From d1ae9e75e00ab4401454a76c8e782dca193ff3e2 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:21:01 -0400 Subject: [PATCH 31/98] fix: a failed ComfyUI run is reported as a successful image generation with no images (#33237) --- backend/open_webui/utils/images/comfyui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/open_webui/utils/images/comfyui.py b/backend/open_webui/utils/images/comfyui.py index 6447a69f88..d8b07926b3 100644 --- a/backend/open_webui/utils/images/comfyui.py +++ b/backend/open_webui/utils/images/comfyui.py @@ -87,6 +87,13 @@ async def _ws_get_images(ws, workflow, client_id, base_url, api_key): # binary messages (previews) are silently skipped history = (await get_history(prompt_id, base_url, api_key))[prompt_id] + status = history.get('status', {}) + if status.get('status_str') == 'error': + error = next((data for kind, data in status.get('messages', []) if kind == 'execution_error'), {}) + raise Exception( + f'ComfyUI {error.get("node_type", "workflow")} failed: {error.get("exception_message", "").strip()}' + ) + for node_id in history['outputs']: node_output = history['outputs'][node_id] if node_id in workflow and workflow[node_id].get('class_type') in [ From 7a76e9fed6710faf2fd9c2162fce96bade6a8bee Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:21:27 +0100 Subject: [PATCH 32/98] fix: sub-agents cannot be given a photo attached in the chat (#33244) When the model handed a photo from the chat to a sub-agent, the call failed with "file_ids not attached or unavailable" and no sub-agent started. Text files and documents worked, only photos were refused. Photos attached in the chat are now accepted and reach the sub-agent as an image, the same way they reach the model in a normal chat. Files that were never attached to the chat are still refused. Fixes #33241 --- backend/open_webui/utils/subagents.py | 46 +++++++++++++++------------ 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/backend/open_webui/utils/subagents.py b/backend/open_webui/utils/subagents.py index 75dc16decd..b63755a89f 100644 --- a/backend/open_webui/utils/subagents.py +++ b/backend/open_webui/utils/subagents.py @@ -17,7 +17,7 @@ from open_webui.models.users import UserModel, Users from open_webui.tasks import create_task, has_active_tasks from open_webui.utils.auth import VERIFIED_USER_ROLES, create_token from open_webui.utils.json_codec import JSONCodec -from open_webui.utils.misc import add_or_update_system_message, get_message_list +from open_webui.utils.misc import add_or_update_system_message, get_message_list, is_raster_image_content_type from open_webui.utils.tool_search import strip_deferred_tools_manifest from starlette.datastructures import Headers @@ -343,30 +343,36 @@ async def delegate( return 'Error: model context is required.' if run.get('direct'): return 'Error: sub-agents are unavailable for direct connections.' + delegated_files = [] if file_ids: requested_file_ids = {str(file_id) for file_id in file_ids if file_id} - run['files'] = [ - copy.deepcopy(file) - for file in metadata.get('files') or [] - if str(file.get('id') or '') in requested_file_ids - or str(file.get('url') or '') in requested_file_ids - or (isinstance(file.get('file'), dict) and str(file.get('file', {}).get('id') or '') in requested_file_ids) + chat_messages = await Chats.get_messages_map_by_chat_id(parent_chat_id) or {} + # Photos are left out of the request's files, so also look on the chat's messages. + attached_files = [ + *(metadata.get('files') or []), + *( + file + for message in chat_messages.values() + if message.get('role') == 'user' + for file in message.get('files') or [] + if file.get('type') == 'image' or is_raster_image_content_type(file.get('content_type')) + ), ] - found_file_ids = { - str(value) - for file in run['files'] - for value in ( - file.get('id'), - file.get('url'), - file.get('file', {}).get('id') if isinstance(file.get('file'), dict) else None, - ) - if value - } + found_file_ids = set() + for file in attached_files: + nested_file = file.get('file') if isinstance(file.get('file'), dict) else {} + keys = {str(value) for value in (file.get('id'), file.get('url'), nested_file.get('id')) if value} + if keys & requested_file_ids and not keys & found_file_ids: + delegated_files.append(copy.deepcopy(file)) + found_file_ids |= keys missing_file_ids = sorted(requested_file_ids - found_file_ids) if missing_file_ids: return f'Error: file_ids not attached or unavailable: {", ".join(missing_file_ids)}' - else: - run['files'] = [] + run['files'] = [ + file + for file in delegated_files + if file.get('type') != 'image' and not is_raster_image_content_type(file.get('content_type')) + ] delegation_id = f'deleg_{uuid4().hex[:8]}' foreground_semaphore = None @@ -391,7 +397,7 @@ async def delegate( user_message_id = str(uuid4()) assistant_message_id = str(uuid4()) prompt = f'{task}\n\n## Context\n{context}' if context else task - prompt_files = copy.deepcopy(run.get('files') or []) + prompt_files = delegated_files user_message = { 'id': user_message_id, 'parentId': None, From bafe181330dc8cb3c54afd78cc3e2901a448ea3f Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:21:48 -0400 Subject: [PATCH 33/98] fix: Kokoro.js falls back to WASM when the browser has WebGPU but no GPU adapter (#33233) --- src/lib/components/chat/Settings/Audio.svelte | 3 ++- src/lib/workers/kokoro.worker.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/Audio.svelte b/src/lib/components/chat/Settings/Audio.svelte index f68637ae97..d15132cac9 100644 --- a/src/lib/components/chat/Settings/Audio.svelte +++ b/src/lib/components/chat/Settings/Audio.svelte @@ -133,9 +133,10 @@ const model_id = 'onnx-community/Kokoro-82M-v1.0-ONNX'; const { KokoroTTS } = await import('kokoro-js'); + const adapter = await navigator?.gpu?.requestAdapter().catch(() => null); TTSModel = await KokoroTTS.from_pretrained(model_id, { dtype: TTSEngineConfig.dtype, // Options: "fp32", "fp16", "q8", "q4", "q4f16" - device: !!navigator?.gpu ? 'webgpu' : 'wasm', // Detect WebGPU + device: adapter ? 'webgpu' : 'wasm', // Detect WebGPU progress_callback: (e) => { TTSModelProgress = e; console.log(e); diff --git a/src/lib/workers/kokoro.worker.ts b/src/lib/workers/kokoro.worker.ts index ce047a6557..e91f55b335 100644 --- a/src/lib/workers/kokoro.worker.ts +++ b/src/lib/workers/kokoro.worker.ts @@ -18,9 +18,10 @@ self.onmessage = async (event) => { self.postMessage({ status: 'init:start' }); try { + const adapter = await navigator?.gpu?.requestAdapter().catch(() => null); tts = await KokoroTTS.from_pretrained(model_id, { dtype, - device: !!navigator?.gpu ? 'webgpu' : 'wasm' // Detect WebGPU + device: adapter ? 'webgpu' : 'wasm' // Detect WebGPU }); isInitialized = true; // Mark as initialized after successful loading self.postMessage({ status: 'init:complete' }); From cac14f985556f574f855beb00f1950f1a4324715 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 13:22:00 -0400 Subject: [PATCH 34/98] fix(a11y): name the usage heatmap cells for screen readers (#33255) --- src/lib/components/chat/Settings/Usage.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/chat/Settings/Usage.svelte b/src/lib/components/chat/Settings/Usage.svelte index 2c24287faf..727dfb23b7 100644 --- a/src/lib/components/chat/Settings/Usage.svelte +++ b/src/lib/components/chat/Settings/Usage.svelte @@ -374,6 +374,7 @@ class="h-full w-full rounded-[0.125rem] {modelPalette(topItem(entry))[ intensity(entry) ]}" + role="img" aria-label={tooltipFor(entry)} >
From 3aaecdd0e99f6407187732f2fb117841ce2cc013 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 03:00:15 +0900 Subject: [PATCH 35/98] refac --- src/lib/components/chat/Chat.svelte | 52 +++++++++------------ src/lib/components/chat/MessageInput.svelte | 12 +++++ 2 files changed, 35 insertions(+), 29 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 894f531a32..08c1f0257c 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -820,16 +820,6 @@ } }; - let oldSelectedModelIds = ['']; - $: if (!equal(selectedModelIds, oldSelectedModelIds)) { - onSelectedModelIdsChange(); - } - - const onSelectedModelIdsChange = () => { - resetInput(); - oldSelectedModelIds = structuredClone(selectedModelIds); - }; - const mergeFiles = (current, incoming) => { const seen = new Set(); return [...(incoming ?? []), ...(current ?? [])].filter((file) => { @@ -893,7 +883,7 @@ } let saveControlsTimer; - $: if (!loading && !$temporaryChatEnabled && $chatId && chatFiles) { + $: if (!loading && !$temporaryChatEnabled && $chatId && chatFiles && selectedModels) { clearTimeout(saveControlsTimer); saveControlsTimer = setTimeout(saveControls, 400); } @@ -2629,6 +2619,8 @@ }; const initNewChat = async () => { + clearTimeout(saveControlsTimer); + await saveControls(); if ($chatId) terminalContext = null; cancelBrowserInteractions(); bridge?.end(); @@ -2958,8 +2950,6 @@ noteChatDebug('normalized empty selected models after load', { selectedModels }); } - oldSelectedModelIds = structuredClone(selectedModels); - chatContent.history ??= convertMessagesToHistory(chatContent.messages); // Keep live updates received while the chat and tags were loading. for (const [id, message] of Object.entries(history.messages)) { @@ -4051,12 +4041,11 @@ _history = structuredClone(_history); const responseMessageIds: Record = {}; - // If modelId is provided, use it, else use selected model - let selectedModelIds = modelId - ? [modelId] - : atSelectedModel !== undefined - ? [atSelectedModel.id] - : selectedModels; + if (!modelId && atSelectedModel) { + selectedModels = [atSelectedModel.id]; + atSelectedModel = undefined; + } + const selectedModelIds = modelId ? [modelId] : selectedModels; if (!modelId && history.messages[parentId]) { history.messages[parentId].models = [...selectedModelIds]; } @@ -4687,7 +4676,8 @@ scrollToBottom(); } - await sendMessage(history, userMessage.id, { + const currentModels = atSelectedModel ? [atSelectedModel.id] : selectedModels; + const options = { ...(suggestionPrompt ? { messages: createMessagesList(history, message.id), @@ -4695,14 +4685,16 @@ regenerationMessageId: message.id } : {}), - ...((userMessage?.models ?? [...selectedModels]).length > 1 + ...((userMessage.models ?? currentModels).length > 1 && currentModels.length > 1 ? { - // If multiple models are selected, use the model from the message - modelId: message.model, + // Regenerate the selected column with its current model. + modelId: currentModels[message.modelIdx ?? 0] ?? message.model, modelIdx: message.modelIdx } : {}) - }); + }; + userMessage.models = [...currentModels]; + await sendMessage(history, userMessage.id, options); } }; @@ -4860,18 +4852,20 @@ const saveControls = async () => { if (isShared) return; - if (!$chatId || $temporaryChatEnabled) return; + if (!$chatId || $temporaryChatEnabled || chat?.id !== $chatId) return; const loaded = chat?.chat ?? {}; - if (equal(chatFiles, loaded.files ?? [])) return; + if (equal(chatFiles, loaded.files ?? []) && equal(selectedModels, loaded.models ?? [])) return; + const id = $chatId; - const res = await updateChatById(localStorage.token, $chatId, { - files: chatFiles + const res = await updateChatById(localStorage.token, id, { + files: chatFiles, + ...(selectedModels.length && selectedModels.every(Boolean) ? { models: selectedModels } : {}) }).catch((err) => { console.error('[controls autosave]', err); return null; }); // Refresh the dedupe baseline so a later revert still saves. - if (res) chat = res; + if (res && $chatId === id) chat = res; }; const MAX_DRAFT_LENGTH = 5000; diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 1dce908a0e..4bd940c1ce 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -927,6 +927,18 @@ ($config?.audio?.stt?.engine !== 'web' && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.stt ?? true)))); + $: if (webSearchCapableModels.length < selectedModelIds.length) webSearchEnabled = false; + $: if (imageGenerationCapableModels.length < selectedModelIds.length) + imageGenerationEnabled = false; + $: if (codeInterpreterCapableModels.length < selectedModelIds.length) + codeInterpreterEnabled = false; + $: { + const filterIds = selectedFilterIds.filter((id) => + toggleFilters.some((filter: { id: string }) => filter.id === id) + ); + if (filterIds.length !== selectedFilterIds.length) selectedFilterIds = filterIds; + } + // Disable code interpreter when terminal is active (mutually exclusive) $: if ($selectedTerminalId && codeInterpreterEnabled) { codeInterpreterEnabled = false; From 34d3601343bcff393c7574b43436951c5bbe2c17 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 27 Oct 2026 14:56:40 -0400 Subject: [PATCH 36/98] fix(a11y): keep chat messages in a list and make each message's name a heading (#33261) Co-authored-by: ThreadWeaver --- src/lib/components/chat/Messages.svelte | 76 ++++++++++---------- src/lib/components/chat/Messages/Name.svelte | 4 +- 2 files changed, 41 insertions(+), 39 deletions(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 7de10fae2c..6fdb3401a2 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -516,43 +516,45 @@ {/if} -
    - {#each messages as message, messageIdx (message.id)} - - {/each} -
+
+
    + {#each messages as message, messageIdx (message.id)} + + {/each} +
+
{#if bottomPadding} diff --git a/src/lib/components/chat/Messages/Name.svelte b/src/lib/components/chat/Messages/Name.svelte index e7005701c4..2b693cf1b9 100644 --- a/src/lib/components/chat/Messages/Name.svelte +++ b/src/lib/components/chat/Messages/Name.svelte @@ -1,3 +1,3 @@ -
+

-

+ From 1c572c49bc5103b78c812e069872015d7fcb7391 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 05:40:58 +0900 Subject: [PATCH 37/98] refac --- src/lib/components/chat/Chat.svelte | 285 ++++++++++++++-------------- 1 file changed, 143 insertions(+), 142 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 08c1f0257c..a6c460d289 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -257,6 +257,7 @@ const fallbackModels = normalizeSelectedModels(selectedModels); if (!equal(fallbackModels, selectedModels)) { selectedModels = fallbackModels; + if (!loading && !modelDefaults) setDefaults(); } } } @@ -353,7 +354,8 @@ let selectedToolIds: string[] = []; let selectedSkillIds: string[] = []; let selectedFilterIds: string[] = []; - let pendingOAuthTools = []; + let pendingOAuthTools: { id: string; name: string; serverId: string; authType: string | null }[] = + []; let imageGenerationEnabled = false; let webSearchEnabled = false; @@ -889,6 +891,7 @@ } const navigateHandler = async () => { + modelDefaults = null; cancelBrowserInteractions(); bridge?.end(); noteChatDebug('navigateHandler start'); @@ -940,9 +943,7 @@ await processNextInQueue(chatIdProp); } - if (!(await restoreChatInput(storageChatInput))) { - await setDefaults(); - } + await setDefaults(await restoreChatInput(storageChatInput)); messageInput?.focus({ preventScroll: true }); } else if (!embedded) { @@ -957,6 +958,7 @@ }; const initEmbeddedDraft = async () => { + modelDefaults = null; terminalContext = null; clearTimeout(saveControlsTimer); await saveControls(); @@ -1088,153 +1090,151 @@ lastTerminalSkillSelector = $selectedTerminalId; } + let defaultsModelIds: string[] = []; + let modelDefaults: Record | null = null; let settingDefaults: Promise | null = null; - const setDefaults = async () => { - // Concurrent callers must wait, or the earlier run overwrites what they write afterwards - if (settingDefaults) return settingDefaults; + + $: if (!loading && modelDefaults && !equal(selectedModelIds, defaultsModelIds)) { + setDefaults(true); + } + + const setDefaults = async (preserveSelections = false) => { + const modelIds = atSelectedModel ? [atSelectedModel.id] : [...selectedModels]; + const id = $chatId; + while (settingDefaults) await settingDefaults; let resolveDefaults = () => {}; settingDefaults = new Promise((resolve) => (resolveDefaults = resolve)); try { - if (!$tools) { - tools.set(await getTools(localStorage.token)); - } - if (!$functions) { - functions.set(await getFunctions(localStorage.token)); - } - if (!$skills) { - skills.set(await getSkills(localStorage.token)); - } - if (selectedModels.length !== 1 && !atSelectedModel) { - const comparedModels = selectedModels - .filter((id) => id) - .map((id) => $models.find((m) => m.id === id)); - const isSharedDefaultFeature = (feature) => - comparedModels.length > 0 && - comparedModels.every( - (model) => - model?.info?.meta?.capabilities?.[feature] && - model?.info?.meta?.defaultFeatureIds?.includes(feature) - ); - - if ( - isSharedDefaultFeature('image_generation') && - $config?.features?.enable_image_generation && - ($user?.role === 'admin' || $user?.permissions?.features?.image_generation) - ) { - imageGenerationEnabled = true; - } - - if ( - isSharedDefaultFeature('web_search') && - $config?.features?.enable_web_search && - ($user?.role === 'admin' || $user?.permissions?.features?.web_search) - ) { - webSearchEnabled = true; - } - - if ( - isSharedDefaultFeature('code_interpreter') && - $config?.features?.enable_code_interpreter && - ($user?.role === 'admin' || $user?.permissions?.features?.code_interpreter) - ) { - codeInterpreterEnabled = true; - } - + if (!$tools) tools.set(await getTools(localStorage.token)); + if (!$functions) functions.set(await getFunctions(localStorage.token)); + if (!$skills) skills.set(await getSkills(localStorage.token)); + if ($tools === null || $functions === null || $skills === null) return; + if ( + id !== $chatId || + !equal(modelIds, atSelectedModel ? [atSelectedModel.id] : selectedModels) + ) return; + + const currentModels: any[] = modelIds.map((id) => $models.find((model) => model.id === id)); + if (!currentModels.length || currentModels.some((model) => !model)) return; + const supports = (feature: string) => + currentModels.every((model) => model.info?.meta?.capabilities?.[feature] ?? true); + const featureAvailable = (feature: 'web_search' | 'image_generation' | 'code_interpreter') => + supports(feature) && + $config?.features?.[`enable_${feature}`] && + ($user?.role === 'admin' || $user?.permissions?.features?.[feature]); + const defaultFeature = (feature: 'web_search' | 'image_generation' | 'code_interpreter') => + featureAvailable(feature) && + currentModels.every((model) => model.info?.meta?.defaultFeatureIds?.includes(feature)); + const terminalId = currentModels[0]?.info?.meta?.terminalId; + const defaults: Record = { + selectedToolIds: [ + ...new Set( + currentModels.flatMap( + (model) => + model.info?.meta?.toolIds?.filter( + (id: string) => + selectedToolIds.includes(id) || ($tools as any[]).some((tool) => tool.id === id) + ) ?? + ($settings as any)?.tools ?? + [] + ) + ) + ], + selectedSkillIds: [ + ...new Set(currentModels.flatMap((model) => model.info?.meta?.skillIds ?? [])) + ].filter( + (id) => + selectedSkillIds.includes(id) || + $skills.some((skill) => skill.id === id && skill.is_active) + ), + selectedFilterIds: [ + ...new Set(currentModels.flatMap((model) => model.info?.meta?.defaultFilterIds ?? [])) + ], + webSearchEnabled: !!defaultFeature('web_search'), + imageGenerationEnabled: !!defaultFeature('image_generation'), + codeInterpreterEnabled: !!defaultFeature('code_interpreter'), + terminalId: + terminalId && + isTerminalAvailable(terminalId) && + currentModels.every((model) => model.info?.meta?.terminalId === terminalId) + ? terminalId + : preserveSelections + ? null + : $selectedTerminalId + }; + + if (preserveSelections) { + const current: Record = { + selectedToolIds: [...selectedToolIds, ...pendingOAuthTools.map((tool) => tool.id)], + selectedSkillIds, + selectedFilterIds, + webSearchEnabled, + imageGenerationEnabled, + codeInterpreterEnabled, + terminalId: $selectedTerminalId + }; + modelDefaults ??= structuredClone(defaults); + for (const key of Object.keys(defaults)) { + const previous = modelDefaults[key]; + if (Array.isArray(previous)) { + const added = current[key].filter((id: string) => !previous.includes(id)); + const removed = previous.filter((id: string) => !current[key].includes(id)); + // Keep deselected defaults in the baseline so later presets cannot re-enable them. + modelDefaults[key] = [ + ...new Set([...removed, ...defaults[key].filter((id: string) => !added.includes(id))]) + ]; + defaults[key] = [ + ...new Set([...defaults[key].filter((id: string) => !removed.includes(id)), ...added]) + ]; + } else if (current[key] !== previous) { + defaults[key] = current[key]; + } else { + modelDefaults[key] = defaults[key]; + } + } + } else { + modelDefaults = structuredClone(defaults); } - const model = atSelectedModel ?? $models.find((m) => m.id === selectedModels[0]); - if (model) { - // Set Default Tools - if (model?.info?.meta?.toolIds) { - const defaultIds = [ - ...new Set( - [...(model?.info?.meta?.toolIds ?? [])].filter((id) => - $tools.find((t) => t.id === id) - ) - ) - ]; - - // Separate unauthenticated OAuth tools - const unauthed = []; - const authed = []; - for (const id of defaultIds) { - const tool = $tools.find((t) => t.id === id); - if (tool && tool.authenticated === false) { - const parts = id.split(':'); - const serverId = parts.at(-1) ?? id; - const authType = - parts.length > 1 ? (parts[0] === 'server' ? parts[1] : parts[0]) : null; - unauthed.push({ id, name: tool.name ?? id, serverId, authType }); - } else { - authed.push(id); - } - } - selectedToolIds = authed; - pendingOAuthTools = unauthed; - await continueOAuthRedirect(); - } else if ($settings?.tools) { - selectedToolIds = $settings.tools; - } else { - selectedToolIds = selectedToolIds.filter((id) => !id.startsWith('direct_server:')); - } - - // Set Default Skills - if (model?.info?.meta?.skillIds) { - selectedSkillIds = [ - ...new Set( - [...(model?.info?.meta?.skillIds ?? [])].filter((id) => - ($skills ?? []).find((s) => s.id === id && s.is_active) - ) - ) - ]; - } else { - selectedSkillIds = []; - } - - // Set Default Filters (Toggleable only) - if (model?.info?.meta?.defaultFilterIds) { - selectedFilterIds = model.info.meta.defaultFilterIds.filter((id) => - model?.filters?.find((f) => f.id === id) - ); - } - - // Set Default Features - if (model?.info?.meta?.defaultFeatureIds) { - if ( - model.info?.meta?.capabilities?.['image_generation'] && - $config?.features?.enable_image_generation && - ($user?.role === 'admin' || $user?.permissions?.features?.image_generation) - ) { - imageGenerationEnabled = model.info.meta.defaultFeatureIds.includes('image_generation'); - } - - if ( - model.info?.meta?.capabilities?.['web_search'] && - $config?.features?.enable_web_search && - ($user?.role === 'admin' || $user?.permissions?.features?.web_search) - ) { - webSearchEnabled = model.info.meta.defaultFeatureIds.includes('web_search'); - } - - if ( - model.info?.meta?.capabilities?.['code_interpreter'] && - $config?.features?.enable_code_interpreter && - ($user?.role === 'admin' || $user?.permissions?.features?.code_interpreter) - ) { - codeInterpreterEnabled = model.info.meta.defaultFeatureIds.includes('code_interpreter'); - } - } - - // Set Default Terminal — only if the referenced terminal actually exists - if (model?.info?.meta?.terminalId) { - const tid = model.info.meta.terminalId; - if (isTerminalAvailable(tid)) { - selectedTerminalId.set(tid); - } - } + defaults.selectedFilterIds = defaults.selectedFilterIds.filter((id: string) => + currentModels.every((model) => + model.filters?.some((filter: { id: string }) => filter.id === id) + ) + ); + defaults.webSearchEnabled &&= !!featureAvailable('web_search'); + defaults.imageGenerationEnabled &&= !!featureAvailable('image_generation'); + defaults.codeInterpreterEnabled &&= !!featureAvailable('code_interpreter'); + if (!currentModels.some((model) => model.info?.meta?.capabilities?.terminal ?? true)) { + defaults.terminalId = null; } + if (defaults.terminalId) defaults.codeInterpreterEnabled = false; + defaultsModelIds = modelIds; + ({ + selectedToolIds, + selectedSkillIds, + selectedFilterIds, + webSearchEnabled, + imageGenerationEnabled, + codeInterpreterEnabled + } = defaults); + selectedTerminalId.set(defaults.terminalId); + + pendingOAuthTools = []; + selectedToolIds = selectedToolIds.filter((id) => { + const tool = ($tools as any[]).find((tool) => tool.id === id); + if (tool?.authenticated !== false) return true; + const parts = id.split(':'); + pendingOAuthTools.push({ + id, + name: tool.name ?? id, + serverId: parts.at(-1) ?? id, + authType: parts.length > 1 ? (parts[0] === 'server' ? parts[1] : parts[0]) : null + }); + return false; + }); + await continueOAuthRedirect(); } finally { settingDefaults = null; resolveDefaults(); @@ -2619,6 +2619,7 @@ }; const initNewChat = async () => { + modelDefaults = null; clearTimeout(saveControlsTimer); await saveControls(); if ($chatId) terminalContext = null; From e77204559bd92b43b7320ab128aac768e9be23db Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 27 Oct 2026 22:26:35 +0100 Subject: [PATCH 38/98] fix: foreground sub-agent loses its partial output at the tool-call limit (#33269) When a foreground sub-agent stopped at the tool-call limit, the parent model got only the error, so everything the sub-agent had written before the limit was lost, while a background sub-agent in the same state reported it as partial output. A foreground sub-agent now returns the error followed by its partial output, the same way the background report does. The error in both modes is now the plain message, such as "Tool-call limit reached (30 iterations).", instead of raw internal data around it. Fixes #33267 --- backend/open_webui/utils/subagents.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/utils/subagents.py b/backend/open_webui/utils/subagents.py index b63755a89f..3389f4729a 100644 --- a/backend/open_webui/utils/subagents.py +++ b/backend/open_webui/utils/subagents.py @@ -526,6 +526,8 @@ async def delegate( if len(summary) > max_output: summary = f'{summary[:max_output]}\n\n[output truncated]' error = message.get('error') + if isinstance(error, dict): + error = error.get('content') or 'Sub-agent failed.' return { 'status': 'error' if error else 'completed', 'summary': summary or ('Sub-agent produced no output.' if not error else ''), @@ -713,5 +715,8 @@ async def delegate( return f'Error: {exc}' if result.get('status') != 'completed': - return f'Error: {result.get("error") or "sub-agent failed."}' + error_text = f'Error: {result.get("error") or "sub-agent failed."}' + if result.get('summary'): + return f'{error_text}\nPartial output:\n{result["summary"]}' + return error_text return result.get('summary') or 'Sub-agent produced no output.' From a4247cfde982da3ab5fd911780c1d7636d571307 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 27 Oct 2026 22:27:00 +0100 Subject: [PATCH 39/98] refac: refuse a compressed body when fetching a remote URL (#33271) Remote fetches now ask for an uncompressed response: web pages, documents, remote images, profile pictures from a login provider and webhook deliveries. A response that comes back compressed anyway is refused, except for a webhook reply, which is only logged and is left unread instead. A page or file whose host echoes a stored `Content-Encoding` regardless of what the client asks for (an S3 or MinIO object uploaded with that metadata) is no longer read, and a profile picture that arrives that way falls back to the default avatar. --- backend/open_webui/constants.py | 2 ++ backend/open_webui/retrieval/web/utils.py | 22 ++++++++++++++++++++-- backend/open_webui/routers/images.py | 8 ++++++-- backend/open_webui/routers/retrieval.py | 5 +++-- backend/open_webui/utils/oauth.py | 11 +++++------ backend/open_webui/utils/webhook.py | 6 ++++-- 6 files changed, 40 insertions(+), 14 deletions(-) diff --git a/backend/open_webui/constants.py b/backend/open_webui/constants.py index 2e5b0ff60c..57aec99159 100644 --- a/backend/open_webui/constants.py +++ b/backend/open_webui/constants.py @@ -99,6 +99,8 @@ class ERROR_MESSAGES(str, Enum): INVALID_URL = 'The URL you provided is invalid. Please double-check and try again.' + COMPRESSED_RESPONSE = 'The server answered with a compressed response, which is not accepted.' + WEB_SEARCH_ERROR = 'Something went wrong while searching the web.' OLLAMA_API_DISABLED = 'The Ollama API is disabled. Please enable it to use this feature.' diff --git a/backend/open_webui/retrieval/web/utils.py b/backend/open_webui/retrieval/web/utils.py index 814bf0d886..0bacfe9371 100644 --- a/backend/open_webui/retrieval/web/utils.py +++ b/backend/open_webui/retrieval/web/utils.py @@ -117,6 +117,18 @@ def _assert_addresses_allowed(addresses: Sequence[str]) -> None: raise ValueError(ERROR_MESSAGES.INVALID_URL) +def is_identity_encoding(content_encodings: Sequence[str]) -> bool: + """True when no content coding was applied, so the body costs what the sender transmitted.""" + return all(content_encoding.lower() in ('', 'identity') for content_encoding in content_encodings) + + +def assert_identity_encoding(content_encodings: Sequence[str]) -> None: + """Reject a compressed body, whose decoded size the sender would choose for us.""" + if not is_identity_encoding(content_encodings): + log.warning('Blocked compressed response body: %s', ', '.join(content_encodings)) + raise ValueError(ERROR_MESSAGES.COMPRESSED_RESPONSE) + + def validate_url(url: Union[str, Sequence[str]]): if isinstance(url, str): if isinstance(validators.url(url, simple_host=ENABLE_LOCAL_WEB_FETCH), validators.ValidationError): @@ -239,7 +251,9 @@ class _SSRFSafeAdapter(HTTPAdapter): def send(self, request, *args, **kwargs): # Per request, not per connection: the connection layer sees the proxy. _assert_host_allowed(urllib.parse.urlparse(request.url).hostname) - return super().send(request, *args, **kwargs) + response = super().send(request, *args, **kwargs) + assert_identity_encoding(response.raw.headers.getlist('Content-Encoding')) + return response class _SSRFSafeConnector(aiohttp.TCPConnector): @@ -304,7 +318,8 @@ _UNWRAP_EXTRA_MAINS = ( def _forwardable_request_headers(headers: Dict[str, str]) -> Dict[str, str]: - return {name: value for name, value in headers.items() if name.lower() not in _DROPPED_REQUEST_HEADERS} + forwardable = {name: value for name, value in headers.items() if name.lower() not in _DROPPED_REQUEST_HEADERS} + return forwardable | {'Accept-Encoding': 'identity'} def _fulfillable_response_headers(header_pairs: Iterable[Tuple[str, str]]) -> Dict[str, str]: @@ -913,6 +928,7 @@ class SafePlaywrightURLLoader(BaseLoader, RateLimitMixin, URLProcessingMixin): ssl=AIOHTTP_CLIENT_SESSION_SSL if self.verify_ssl else False, timeout=aiohttp.ClientTimeout(total=self._request_timeout()), ) + assert_identity_encoding(response.headers.getall('Content-Encoding', ())) # aiohttp only returns the connection to the pool once the body is buffered return response, await response.read() @@ -1034,6 +1050,7 @@ class SafePlaywrightURLLoader(BaseLoader, RateLimitMixin, URLProcessingMixin): WEB_LOADER_HEADERS = { 'User-Agent': USER_AGENT or 'DefaultLangchainUserAgent', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', + 'Accept-Encoding': 'identity', 'Accept-Language': 'en-US,en;q=0.5', 'Referer': 'https://www.google.com/', 'DNT': '1', @@ -1107,6 +1124,7 @@ class SafeWebBaseLoader(BaseLoader): async with session.get(url, **options) as response: if self.raise_for_status: response.raise_for_status() + assert_identity_encoding(response.headers.getall('Content-Encoding', ())) return await response.text() except aiohttp.ClientConnectionError as e: if i == retries - 1: diff --git a/backend/open_webui/routers/images.py b/backend/open_webui/routers/images.py index 28a037a993..fae2410649 100644 --- a/backend/open_webui/routers/images.py +++ b/backend/open_webui/routers/images.py @@ -29,7 +29,7 @@ from open_webui.events import EVENTS, publish_event from open_webui.internal.db import get_async_session from open_webui.models.chats import Chats from open_webui.models.config import Config -from open_webui.retrieval.web.utils import get_ssrf_safe_session, validate_url +from open_webui.retrieval.web.utils import assert_identity_encoding, get_ssrf_safe_session, validate_url from open_webui.routers.files import get_file_content_by_id, upload_file_handler from open_webui.utils.access_control import has_permission from open_webui.utils.auth import get_admin_user, get_verified_user @@ -940,9 +940,13 @@ async def image_edits( # that passed validate_url cannot reach an internal address. async with get_ssrf_safe_session() as session: async with session.get( - data, ssl=AIOHTTP_CLIENT_SESSION_SSL, allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTS + data, + ssl=AIOHTTP_CLIENT_SESSION_SSL, + allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTS, + headers={'Accept-Encoding': 'identity'}, ) as r: r.raise_for_status() + assert_identity_encoding(r.headers.getall('Content-Encoding', ())) image_data = base64.b64encode(await r.read()).decode('utf-8') return f'data:{r.headers["content-type"]};base64,{image_data}' diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index a7e3e586eb..5a4250f800 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -93,7 +93,7 @@ from open_webui.retrieval.web.firecrawl import search_firecrawl from open_webui.retrieval.web.google_pse import search_google_pse from open_webui.retrieval.web.jina_search import search_jina from open_webui.retrieval.web.kagi import search_kagi -from open_webui.retrieval.web.utils import get_ssrf_safe_session, validate_url +from open_webui.retrieval.web.utils import assert_identity_encoding, get_ssrf_safe_session, validate_url # Web search engines from open_webui.retrieval.web.main import SearchResult @@ -1917,13 +1917,14 @@ async def _fetch_url(url: str, max_size_mb: int | str | None) -> dict: except (TypeError, ValueError): max_bytes = None - headers = {'User-Agent': USER_AGENT} if USER_AGENT else None + headers = {'Accept-Encoding': 'identity'} | ({'User-Agent': USER_AGENT} if USER_AGENT else {}) async with get_ssrf_safe_session() as session: async with session.get( url, headers=headers, ssl=AIOHTTP_CLIENT_SESSION_SSL, allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTS ) as response: response.raise_for_status() + assert_identity_encoding(response.headers.getall('Content-Encoding', ())) content_type = response.headers.get('Content-Type', '') content_disposition = response.headers.get('Content-Disposition', '') diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index 7ab365828e..ca43d43da9 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -83,7 +83,7 @@ from open_webui.models.config import Config from open_webui.models.groups import GroupForm, GroupModel, Groups, GroupUpdateForm from open_webui.models.oauth_sessions import OAuthSessions from open_webui.models.users import Users -from open_webui.retrieval.web.utils import get_ssrf_safe_session, validate_url +from open_webui.retrieval.web.utils import assert_identity_encoding, get_ssrf_safe_session, validate_url from open_webui.utils.auth import ( get_optional_verified_user_from_request, get_password_hash, @@ -1878,20 +1878,19 @@ class OAuthManager: try: await asyncio.to_thread(validate_url, picture_url) - get_kwargs = {} + headers = {'Accept-Encoding': 'identity'} if access_token: - get_kwargs['headers'] = { - 'Authorization': f'Bearer {access_token}', - } + headers['Authorization'] = f'Bearer {access_token}' # get_ssrf_safe_session pins the connect-time IP (defeats DNS rebinding); allow_redirects=False keeps validate_url's vet authoritative. async with get_ssrf_safe_session() as session: async with session.get( picture_url, - **get_kwargs, + headers=headers, ssl=AIOHTTP_CLIENT_SESSION_SSL, allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTS, ) as resp: if resp.ok: + assert_identity_encoding(resp.headers.getall('Content-Encoding', ())) upstream_mime = (resp.headers.get('Content-Type', '') or '').split(';', 1)[0].strip().lower() picture = await resp.read() base64_encoded_picture = base64.b64encode(picture).decode('utf-8') diff --git a/backend/open_webui/utils/webhook.py b/backend/open_webui/utils/webhook.py index 122e83da49..a2f099af74 100644 --- a/backend/open_webui/utils/webhook.py +++ b/backend/open_webui/utils/webhook.py @@ -7,7 +7,7 @@ from open_webui.env import ( AIOHTTP_CLIENT_SESSION_SSL, VERSION, ) -from open_webui.retrieval.web.utils import get_ssrf_safe_session, validate_url +from open_webui.retrieval.web.utils import get_ssrf_safe_session, is_identity_encoding, validate_url from open_webui.utils.json_codec import JSONCodec log = logging.getLogger(__name__) @@ -90,8 +90,10 @@ async def post_webhook(name: str, url: str, message: str, event_data: dict, desc json=payload, ssl=AIOHTTP_CLIENT_SESSION_SSL, allow_redirects=AIOHTTP_CLIENT_ALLOW_REDIRECTS, + headers={'Accept-Encoding': 'identity'}, ) as r: - r_text = await r.text() + # The reply is only logged, so a compressed one is left unread rather than failing the delivery. + r_text = await r.text() if is_identity_encoding(r.headers.getall('Content-Encoding', ())) else '' r.raise_for_status() log.debug('r.text: %s', r_text) From ab133dba2183491d7c22229ae2b3b30cacf020d4 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 08:02:31 +0900 Subject: [PATCH 40/98] refac --- .env.example | 5 ++++ backend/open_webui/env.py | 17 +++++++++++ backend/open_webui/utils/terminals.py | 42 +++++++++++++++++---------- src/lib/apis/openai/index.ts | 2 +- 4 files changed, 49 insertions(+), 17 deletions(-) diff --git a/.env.example b/.env.example index d215147046..39cec7649d 100644 --- a/.env.example +++ b/.env.example @@ -46,6 +46,11 @@ ENABLE_FUNCTIONS=true # Set false to disable external tools and terminals, including personal direct connections. ENABLE_TOOL_SERVERS=true +# Terminal metadata requests may start a container. Default: 60 seconds. +# When unset, inherits an explicitly configured AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA. +# Empty or 0 disables the timeout. Other tool-server metadata still defaults to 10 seconds. +# AIOHTTP_CLIENT_TIMEOUT_TERMINAL=60 + # WARNING: * trusts forwarded headers from every connection. Use only behind a trusted # proxy that sanitizes these headers and prevents direct access to the backend. # Otherwise, set this to the IP addresses or networks of your trusted reverse proxies. diff --git a/backend/open_webui/env.py b/backend/open_webui/env.py index fb23849f7d..ddc05eaf2e 100644 --- a/backend/open_webui/env.py +++ b/backend/open_webui/env.py @@ -674,6 +674,23 @@ try: except (ValueError, TypeError): AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA = 10 +# Terminal requests can provision a container before returning metadata. +AIOHTTP_CLIENT_TIMEOUT_TERMINAL = os.getenv( + 'AIOHTTP_CLIENT_TIMEOUT_TERMINAL', + os.getenv('AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA', '60'), +) + +if AIOHTTP_CLIENT_TIMEOUT_TERMINAL == '': + AIOHTTP_CLIENT_TIMEOUT_TERMINAL = None +else: + try: + AIOHTTP_CLIENT_TIMEOUT_TERMINAL = int(AIOHTTP_CLIENT_TIMEOUT_TERMINAL) + except (ValueError, TypeError): + AIOHTTP_CLIENT_TIMEOUT_TERMINAL = 60 + +if AIOHTTP_CLIENT_TIMEOUT_TERMINAL is not None and AIOHTTP_CLIENT_TIMEOUT_TERMINAL <= 0: + AIOHTTP_CLIENT_TIMEOUT_TERMINAL = None + AIOHTTP_FILE_STREAM_CHUNK_SIZE = os.getenv('AIOHTTP_FILE_STREAM_CHUNK_SIZE', str(1024 * 1024)) try: AIOHTTP_FILE_STREAM_CHUNK_SIZE = int(AIOHTTP_FILE_STREAM_CHUNK_SIZE) diff --git a/backend/open_webui/utils/terminals.py b/backend/open_webui/utils/terminals.py index 00e2b3fa19..fad06c388a 100644 --- a/backend/open_webui/utils/terminals.py +++ b/backend/open_webui/utils/terminals.py @@ -8,7 +8,7 @@ import posixpath from pathlib import Path from urllib.parse import quote -from open_webui.env import ENABLE_TOOL_SERVERS +from open_webui.env import AIOHTTP_CLIENT_TIMEOUT_TERMINAL, ENABLE_TOOL_SERVERS from open_webui.utils.chat_id import is_saved_chat_id from open_webui.utils.skill_files import ( SKILL_CONTENT_MAX_CHARS, @@ -140,7 +140,7 @@ async def get_terminal_json( return None import aiohttp - from open_webui.env import AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL, AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA + from open_webui.env import AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL from open_webui.models.config import Config from open_webui.models.groups import Groups from open_webui.models.users import UserModel @@ -196,18 +196,24 @@ async def get_terminal_json( content_type=(source.meta or {}).get('content_type') or 'application/octet-stream', ) headers = {key: value for key, value in headers.items() if key.lower() != 'content-type'} - timeout = aiohttp.ClientTimeout(total=AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA) - async with aiohttp.ClientSession(timeout=timeout, trust_env=True) as session: - async with session.request( - 'POST' if file else 'GET', - f'{get_terminal_server_url(connection)}{path}', - headers=headers, - cookies=cookies, - data=body, - ssl=AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL, - allow_redirects=False, - ) as response: - return await response.json() if 200 <= response.status < 300 else None + timeout = aiohttp.ClientTimeout(total=AIOHTTP_CLIENT_TIMEOUT_TERMINAL) + try: + async with aiohttp.ClientSession(timeout=timeout, trust_env=True) as session: + async with session.request( + 'POST' if file else 'GET', + f'{get_terminal_server_url(connection)}{path}', + headers=headers, + cookies=cookies, + data=body, + ssl=AIOHTTP_CLIENT_SESSION_TOOL_SERVER_SSL, + allow_redirects=False, + ) as response: + return await response.json() if 200 <= response.status < 300 else None + except TimeoutError as error: + raise TimeoutError( + f"Terminal '{connection.get('name') or terminal_id}' timed out. " + 'It may still be starting. Please try again.' + ) from error event_caller = (extra_params or {}).get('__event_call__') if event_caller: @@ -231,7 +237,10 @@ async def upload_files_to_terminal(request, user, files: list[dict], metadata: d if not metadata.get('terminal_id') or not files: return try: - cwd = await asyncio.wait_for(get_terminal_json(request, user, metadata, '/files/cwd', extra_params), timeout=30) + cwd = await asyncio.wait_for( + get_terminal_json(request, user, metadata, '/files/cwd', extra_params), + timeout=AIOHTTP_CLIENT_TIMEOUT_TERMINAL, + ) directory = cwd.get('cwd') if isinstance(cwd, dict) else None if not directory: raise ValueError('Terminal working directory unavailable') @@ -241,7 +250,8 @@ async def upload_files_to_terminal(request, user, files: list[dict], metadata: d # The file ID keeps separate files from overwriting one another. file = {'id': entry['id'], 'name': f'{entry["id"]}{Path(entry["name"]).suffix}'} result = await asyncio.wait_for( - get_terminal_json(request, user, metadata, path, extra_params, file=file), timeout=30 + get_terminal_json(request, user, metadata, path, extra_params, file=file), + timeout=AIOHTTP_CLIENT_TIMEOUT_TERMINAL, ) if not isinstance(result, dict) or not isinstance(result.get('path'), str) or not result['path']: raise ValueError('Terminal upload failed') diff --git a/src/lib/apis/openai/index.ts b/src/lib/apis/openai/index.ts index 8eeb69145f..b068975832 100644 --- a/src/lib/apis/openai/index.ts +++ b/src/lib/apis/openai/index.ts @@ -15,7 +15,7 @@ export const getErrorMessage = (err: any, fallback = 'Server connection failed') err?.message, err?.content, err - ].find((value) => typeof value === 'string') ?? fallback + ].find((value) => typeof value === 'string' && value.trim()) ?? fallback ); }; From b34885efc639c10cbf06c35cd2d4ff6055e36b45 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 10:02:45 +0900 Subject: [PATCH 41/98] refac --- backend/open_webui/models/notes.py | 466 ++++++++- backend/open_webui/retrieval/utils.py | 16 +- backend/open_webui/routers/notes.py | 61 +- backend/open_webui/routers/search.py | 11 +- backend/open_webui/socket/main.py | 68 +- backend/open_webui/tools/builtin.py | 89 +- .../open_webui/utils/access_control/files.py | 6 +- backend/open_webui/utils/middleware.py | 23 - src/lib/apis/notes/index.ts | 35 +- src/lib/components/chat/Chat.svelte | 37 +- .../MarkdownInlineTokens/NoteLinkToken.svelte | 6 +- src/lib/components/common/FileItem.svelte | 2 +- .../common/ResizableSidePanel.svelte | 30 +- .../components/common/RichTextInput.svelte | 43 +- .../common/RichTextInput/Collaboration.ts | 37 +- .../common/RichTextInput/FileAttachment.ts | 95 ++ .../layout/Search/NotePreview.svelte | 17 +- src/lib/components/notes/NoteEditor.svelte | 924 +++++++++--------- src/lib/components/notes/NotePanel.svelte | 20 +- src/lib/components/notes/NoteTabMenu.svelte | 74 ++ src/lib/components/notes/NoteTabs.svelte | 385 ++++++++ src/lib/components/notes/Notes.svelte | 33 +- src/lib/components/notes/utils.ts | 204 +++- 23 files changed, 2059 insertions(+), 623 deletions(-) create mode 100644 src/lib/components/common/RichTextInput/FileAttachment.ts create mode 100644 src/lib/components/notes/NoteTabMenu.svelte create mode 100644 src/lib/components/notes/NoteTabs.svelte diff --git a/backend/open_webui/models/notes.py b/backend/open_webui/models/notes.py index 40ca4ef95e..b73457646e 100644 --- a/backend/open_webui/models/notes.py +++ b/backend/open_webui/models/notes.py @@ -1,17 +1,389 @@ +import json +import re import time import uuid -from functools import lru_cache -from typing import Optional +from copy import deepcopy +from html import escape +from typing import Literal, Optional +import markdown +from bs4 import BeautifulSoup from open_webui.internal.db import Base, get_async_db_context from open_webui.models.access_grants import AccessGrantModel, AccessGrants from open_webui.models.groups import Groups -from open_webui.models.users import User, UserModel, UserResponse, Users +from open_webui.models.users import User, UserModel, UserResponse from open_webui.utils.json_codec import JSONCodec from pydantic import BaseModel, ConfigDict, Field, field_validator -from sqlalchemy import JSON, BigInteger, Boolean, Column, ForeignKey, Text, cast, delete, func, or_, select, update +from sqlalchemy import JSON, BigInteger, Column, ForeignKey, Text, cast, delete, func, or_, select, update from sqlalchemy.ext.asyncio import AsyncSession + +class NotePageConflict(ValueError): + pass + + +class NotePageOperation(BaseModel): + action: Literal['create', 'rename', 'duplicate', 'reorder', 'move', 'delete'] + page_id: str | None = None + new_id: str | None = None + parent_id: str | None = None + before_id: str | None = None + title: str | None = Field(default=None, max_length=200) + order: list[str] | None = None + revision: int = Field(ge=0) + + +def order_pages(pages: list[dict]) -> list[dict]: + """Keep sibling order while storing each subtree together, parent first.""" + ids = {page['id'] for page in pages} + if len(ids) != len(pages): + raise ValueError('Page IDs must be unique') + children: dict[str | None, list[dict]] = {} + for page in pages: + if page['id'] == 'main': + page['parent_id'] = None + else: + page.setdefault('parent_id', None) + parent = page['parent_id'] + if parent is not None and parent not in ids: + raise ValueError('Parent page no longer exists') + children.setdefault(parent, []).append(page) + ordered = [] + roots = children.get(None, []) + roots.sort(key=lambda page: page['id'] != 'main') + stack = list(reversed(roots)) + while stack: + page = stack.pop() + ordered.append(page) + stack.extend(reversed(children.get(page['id'], []))) + if len(ordered) != len(pages): + raise ValueError('A page cannot be nested inside itself or its subpages') + return ordered + + +def subtree_ids(pages: list[dict], page_id: str) -> set[str]: + # Tabs are in preorder, so all ancestors precede their descendants. + result = {page_id} + for page in pages: + if page.get('parent_id') in result: + result.add(page['id']) + return result + + +def page_paths(pages: list[dict]) -> dict[str, str]: + paths = {} + for page in pages: + parent_path = paths.get(page.get('parent_id')) + paths[page['id']] = f'{parent_path} / {page["title"]}' if parent_path else page['title'] + return paths + + +def get_content_files(content: dict | None) -> list[dict]: + """Attachment blocks are authoritative; HTML/Markdown support external note writers.""" + if not isinstance(content, dict): + return [] + document = content.get('json') + files = {} + if isinstance(document, dict): + stack = [document] + while stack: + node = stack.pop() + if not isinstance(node, dict): + continue + if node.get('type') == 'fileAttachment': + attrs = node.get('attrs') or {} + file_id = attrs.get('id') + if isinstance(file_id, str) and re.fullmatch(r'[\w-]+', file_id): + files[file_id] = { + 'type': 'file', + 'id': file_id, + 'name': attrs.get('name') or file_id, + 'size': attrs.get('size', 0), + } + stack.extend(reversed(node.get('content') or [])) + else: + html = content.get('html') or markdown.markdown(content.get('md') or '') + for link in BeautifulSoup(html, 'html.parser').find_all('a', href=True): + match = re.fullmatch(r'/api/v1/files/([\w-]+)/content', link['href']) + if match: + file_id = match[1] + files[file_id] = {'type': 'file', 'id': file_id, 'name': link.get_text() or file_id, 'size': 0} + return list(files.values()) + + +def migrate_page_files(page: dict, files: list[dict]) -> None: + """Consume legacy attachment lists once, preserving existing content and inline images.""" + content = page['content'] + existing = {file['id'] for file in get_content_files(content)} + changed = False + for file in files: + if not isinstance(file, dict) or not file.get('id'): + continue + if file.get('type') == 'image': + reference = f'data://{file["id"]}' + url = file.get('url') or '' + if not url: + continue + # These assets also back images in older versions of the page. + for snapshot in [content, *(page.get('versions') or [])]: + if not isinstance(snapshot, dict): + continue + encoded = json.dumps(snapshot) + if reference in encoded: + snapshot.update(json.loads(encoded.replace(reference, json.dumps(url)[1:-1]))) + changed = True + elif file['id'] not in existing: + attrs = {'id': file['id'], 'name': file.get('name') or file['id'], 'size': file.get('size') or 0} + href = f'/api/v1/files/{file["id"]}/content' + block = f'' + content['html'] = (content.get('html') or markdown.markdown(content.get('md') or '')) + block + content['md'] = ( + (content.get('md') or '') + '\n\n' + f'[{attrs["name"].replace("[", "").replace("]", "")}]({href})' + ) + if isinstance(content.get('json'), dict): + content['json'].setdefault('content', []).append({'type': 'fileAttachment', 'attrs': attrs}) + existing.add(file['id']) + changed = True + if changed: + # Old collaboration documents must not overwrite the migrated content. + page['generation'] = page.get('generation', 0) + 1 + + +def get_note_files(data: dict | None) -> list[dict]: + return [file for page in normalize_pages(data)['pages'] for file in get_content_files(page['content'])] + + +def normalize_pages(data: dict | None, note_title: str | None = None) -> dict: + data = deepcopy(data or {}) + if not data.get('pages'): + data['pages'] = [ + { + 'id': 'main', + 'title': note_title or 'Untitled', + 'content': data.get('content') or {'json': None, 'html': '', 'md': ''}, + 'versions': data.get('versions') or [], + 'revision': 0, + 'generation': 0, + } + ] + if not any(page['id'] == 'main' for page in data['pages']): + data['pages'].insert( + 0, + { + 'id': 'main', + 'title': note_title or 'Untitled', + 'content': {'json': None, 'html': '', 'md': ''}, + 'versions': [], + 'revision': 0, + 'generation': 0, + }, + ) + if note_title is not None: + for page in data['pages']: + if page['id'] == 'main' and page.get('inherit_note_title', True): + page['title'] = note_title or 'Untitled' + data['pages'] = order_pages(data['pages']) + legacy_files = data.pop('files', None) or [] + for page in data['pages']: + files = page.pop('files', None) + if files is None: + # Old whole-note files belong to main; subpages only retain referenced images. + references = json.dumps([page.get('content'), page.get('versions')]) + files = ( + legacy_files + if page['id'] == 'main' + else [ + file + for file in legacy_files + if isinstance(file, dict) + and file.get('type') == 'image' + and f'data://{file.get("id")}' in references + ] + ) + if files: + migrate_page_files(page, files) + data.setdefault('pages_revision', 0) + data.pop('versions', None) + # A derived projection keeps existing SQL search and whole-note retrieval cheap. + pages = data['pages'] + paths = page_paths(pages) + data['content'] = ( + deepcopy(pages[0]['content']) + if len(pages) == 1 + else { + 'json': None, + 'md': '\n\n'.join(f'## {paths[p["id"]]}\n\n{p["content"].get("md", "")}' for p in pages), + 'html': '', + } + ) + data['search_text'] = '\n\n'.join(f'{paths[p["id"]]}\n{p["content"].get("md", "")}' for p in pages) + return data + + +def get_page(data: dict, page_id: str | None = None) -> dict: + pages = normalize_pages(data)['pages'] + if page_id is None: + if len(pages) != 1: + raise NotePageConflict('Select a page before editing this note') + return pages[0] + page = next((page for page in pages if page['id'] == page_id), None) + if page is None: + raise NotePageConflict('Page no longer exists') + return page + + +def document_page(data: dict, document_id: str) -> dict: + parts = document_id.split(':') + if len(parts) == 2: + page = get_page(data) + if page.get('generation', 0) != 0: + raise NotePageConflict('Reload this page before editing') + return page + if len(parts) != 5 or parts[2] != 'page': + raise ValueError('Invalid note document ID') + page = get_page(data, parts[3]) + if str(page.get('generation', 0)) != parts[4]: + raise NotePageConflict('Page changed; reload before editing') + return page + + +def apply_page_operation(data: dict, operation: NotePageOperation) -> dict: + data = normalize_pages(data) + pages = data['pages'] + if operation.action in ('create', 'duplicate'): + if not operation.new_id: + raise ValueError('A new page ID is required') + uuid.UUID(operation.new_id) + if any(p['id'] == operation.new_id for p in pages): + return data + if operation.revision != data['pages_revision']: + raise NotePageConflict('Pages changed. Refresh and try again') + if operation.action == 'create': + title = (operation.title or '').strip() + if not title: + raise ValueError('Page title is required') + pages.append( + { + 'id': operation.new_id, + 'parent_id': operation.parent_id, + 'title': title, + 'content': {'json': None, 'html': '', 'md': ''}, + 'versions': [], + 'revision': 0, + 'generation': 0, + } + ) + elif operation.action == 'reorder': + order = operation.order or [] + if len(order) != len(pages) or set(order) != {p['id'] for p in pages}: + raise ValueError('Order must contain each page exactly once') + if order[0] != 'main': + raise ValueError('The default page must stay first') + lookup = {p['id']: p for p in pages} + data['pages'] = [lookup[id] for id in order] + else: + page = next((p for p in pages if p['id'] == operation.page_id), None) + if page is None: + raise NotePageConflict('Page no longer exists') + if page['id'] == 'main' and operation.action in ('move', 'delete'): + raise ValueError('The default page cannot be moved or deleted') + if operation.action == 'rename': + title = (operation.title or '').strip() + if not title: + raise ValueError('Page title is required') + page['title'] = title + if page['id'] == 'main': + page['inherit_note_title'] = False + elif operation.action == 'move': + parent_id = operation.parent_id + if operation.before_id == 'main': + raise ValueError('The default page must stay first') + branch_ids = subtree_ids(pages, page['id']) + if parent_id in branch_ids: + raise ValueError('A page cannot be nested inside itself or its subpages') + if parent_id is not None and not any(p['id'] == parent_id for p in pages): + raise ValueError('Parent page no longer exists') + branch = [p for p in pages if p['id'] in branch_ids] + remaining = [p for p in pages if p['id'] not in branch_ids] + position = len(remaining) + if operation.before_id is not None: + anchor = next((p for p in remaining if p['id'] == operation.before_id), None) + if anchor is None or anchor['parent_id'] != parent_id: + raise ValueError('Move target must be a sibling in the destination') + position = remaining.index(anchor) + page['parent_id'] = parent_id + data['pages'] = remaining[:position] + branch + remaining[position:] + elif operation.action == 'delete': + if len(pages) == 1: + raise ValueError('A note must have at least one page') + # Deleting one tab never silently deletes its children's content. + for child in pages: + if child['parent_id'] == page['id']: + child['parent_id'] = page['parent_id'] + pages.remove(page) + elif operation.action == 'duplicate': + branch_ids = subtree_ids(pages, page['id']) + branch = [p for p in pages if p['id'] in branch_ids] + ids = {p['id']: str(uuid.uuid5(uuid.UUID(operation.new_id), p['id'])) for p in branch} + ids[page['id']] = operation.new_id + if set(ids.values()) & {p['id'] for p in pages}: + raise ValueError('A duplicated page ID already exists') + copies = deepcopy(branch) + for copy in copies: + copy.update( + id=ids[copy['id']], + parent_id=ids.get(copy['parent_id'], copy['parent_id']), + versions=[], + revision=0, + generation=0, + ) + copies[0]['title'] = page['title'][:193] + ' (Copy)' + position = pages.index(branch[-1]) + 1 + pages[position:position] = copies + data['pages_revision'] += 1 + return normalize_pages(data) + + +def update_page_content( + data: dict, page_id: str | None, changes: dict, generation: int | None = None, revision: int | None = None +) -> dict: + data = normalize_pages(data) + target = get_page(data, page_id) + page = next(p for p in data['pages'] if p['id'] == target['id']) + if generation is not None and generation != page.get('generation', 0): + raise NotePageConflict('Page changed; reload before editing') + if revision is not None and revision != page.get('revision', 0): + raise NotePageConflict('Page content changed. Read it again before editing') + if 'content' in changes: + content = changes['content'] + if not isinstance(content, dict) or any( + key in content and not isinstance(content[key], str) for key in ('md', 'html') + ): + raise ValueError('Page content must contain text markdown and HTML') + page['content'] = {'json': None, 'html': '', 'md': '', **deepcopy(content)} + page['revision'] = page.get('revision', 0) + 1 + # Socket snapshots retain their generation. External replacements invalidate old documents. + if generation is None: + page['generation'] = page.get('generation', 0) + 1 + if 'versions' in changes: + page['versions'] = deepcopy(changes['versions']) + if 'files' in changes: + raise ValueError('Attach files through page content') + return normalize_pages(data) + + +def matching_page(data: dict, query: str = '') -> dict: + pages = normalize_pages(data)['pages'] + paths = page_paths(pages) + terms = query.lower().split() + for require_all in (True, False): + for page in pages: + text = f'{paths[page["id"]]} {page["content"].get("md", "")}'.lower() + if terms and (all(t in text for t in terms) if require_all else any(t in text for t in terms)): + return page + return pages[0] + + #################### # Note DB Schema #################### @@ -102,6 +474,8 @@ class NoteForm(BaseModel): @field_validator('data', mode='before') @classmethod def sanitize_data(cls, data): + if isinstance(data, dict) and 'pages' in data: + raise ValueError('Create pages using page operations') return sanitize_note_data(data) @@ -109,6 +483,10 @@ class NoteUpdateForm(BaseModel): title: Optional[str] = None data: Optional[dict] = None meta: Optional[dict] = None + page_id: Optional[str] = None + page_revision: Optional[int] = None + page_generation: Optional[int] = None + page_operation: Optional[NotePageOperation] = None @field_validator('data', mode='before') @classmethod @@ -147,7 +525,7 @@ class NoteTable: ) -> NoteModel: # We exclude access_grants to inject them note_model = NoteModel.model_validate(note) - note_model.data = note_model.data or {} + note_model.data = normalize_pages(note_model.data, note_model.title) note_model.access_grants = ( access_grants if access_grants is not None else await self._get_access_grants(note_model.id, db=db) ) @@ -178,6 +556,7 @@ class NoteTable: } ) + note.data = normalize_pages(note.data, note.title) new_note = Note(**note.model_dump(exclude={'access_grants', 'is_pinned'})) db.add(new_note) @@ -221,7 +600,13 @@ class NoteTable: or_( func.replace(func.replace(Note.title, '-', ''), ' ', '').ilike(f'%{word}%'), func.replace( - func.replace(Note.data['content']['md'].as_string(), '-', ''), + func.replace( + func.coalesce( + Note.data['search_text'].as_string(), Note.data['content']['md'].as_string() + ), + '-', + '', + ), ' ', '', ).ilike(f'%{word}%'), @@ -331,7 +716,7 @@ class NoteTable: async def get_note_by_id(self, id: str, db: Optional[AsyncSession] = None) -> Optional[NoteModel]: async with get_async_db_context(db) as db: - result = await db.execute(select(Note).filter(Note.id == id)) + result = await db.execute(select(Note).filter(Note.id == id).execution_options(populate_existing=True)) note = result.scalars().first() return await self._to_note_model(note, db=db) if note else None @@ -349,39 +734,58 @@ class NoteTable: note_id for note_id, data in result.all() if isinstance(data, dict) - and isinstance(data.get('files'), list) and any( isinstance(item, dict) and item.get('type') == 'file' and item.get('id') == file_id - for item in data['files'] + for item in get_note_files(data) ) ] async def update_note_by_id( self, id: str, form_data: NoteUpdateForm, db: Optional[AsyncSession] = None ) -> Optional[NoteModel]: + changes = form_data.model_dump(exclude_unset=True) + incoming = changes.get('data') or {} + if 'pages' in incoming or 'pages_revision' in incoming: + raise ValueError('Use page operations instead of replacing all pages') async with get_async_db_context(db) as db: - result = await db.execute(select(Note).filter(Note.id == id)) - note = result.scalars().first() - if not note: - return None - - form_data = form_data.model_dump(exclude_unset=True) - note.data = sanitize_note_data(note.data) or {} - - if 'title' in form_data: - note.title = form_data['title'] - if 'data' in form_data: - note.data = {**(note.data or {}), **(form_data['data'] or {})} - if 'meta' in form_data: - note.meta = {**(note.meta or {}), **(form_data['meta'] or {})} - - if not db.is_modified(note): - return await self._to_note_model(note, db=db) - - note.updated_at = int(time.time_ns()) - - await db.commit() - return await self._to_note_model(note, db=db) if note else None + # CAS protects the entire JSON from writers on other pages and other workers. + for _ in range(8): + result = await db.execute(select(Note).where(Note.id == id).execution_options(populate_existing=True)) + note = result.scalars().first() + if not note: + return None + previous_updated_at = note.updated_at + data = normalize_pages(sanitize_note_data(note.data), note.title) + if form_data.page_operation: + data = apply_page_operation(data, form_data.page_operation) + if any(key in incoming for key in ('content', 'versions', 'files')): + data = update_page_content( + data, + form_data.page_id or ('main' if not {'content', 'versions'} & incoming.keys() else None), + incoming, + form_data.page_generation, + form_data.page_revision, + ) + data = normalize_pages( + {**data, **{k: v for k, v in incoming.items() if k not in ('content', 'versions', 'files')}}, + changes.get('title', note.title), + ) + values = {'data': data, 'updated_at': max(time.time_ns(), (previous_updated_at or 0) + 1)} + if 'title' in changes: + values['title'] = changes['title'] + if 'meta' in changes: + values['meta'] = {**(note.meta or {}), **(changes['meta'] or {})} + result = await db.execute( + update(Note) + .where(Note.id == id, Note.updated_at == previous_updated_at) + .values(**values) + .execution_options(synchronize_session=False) + ) + if result.rowcount: + await db.commit() + return await self.get_note_by_id(id, db=db) + await db.rollback() + raise NotePageConflict('Note changed while saving. Please try again') async def toggle_note_pinned_by_id( self, id: str, user_id: str, db: Optional[AsyncSession] = None diff --git a/backend/open_webui/retrieval/utils.py b/backend/open_webui/retrieval/utils.py index 9577b22b53..e98a1c2a30 100644 --- a/backend/open_webui/retrieval/utils.py +++ b/backend/open_webui/retrieval/utils.py @@ -1461,8 +1461,20 @@ async def get_sources_from_items( ): # User has access to the note query_result = { - 'documents': [[note.data.get('content', {}).get('md', '')]], - 'metadatas': [[{'file_id': note.id, 'name': note.title}]], + 'documents': [[page['content'].get('md', '') for page in note.data['pages']]], + 'metadatas': [ + [ + { + 'file_id': note.id, + 'note_id': note.id, + 'page_id': page['id'], + 'parent_id': page.get('parent_id'), + 'name': f'{note.title} / {page["title"]}', + 'source': f'/notes/{note.id}?page={page["id"]}', + } + for page in note.data['pages'] + ] + ], } elif item.get('type') == 'chat': diff --git a/backend/open_webui/routers/notes.py b/backend/open_webui/routers/notes.py index c21b71cdf0..7be91b2e61 100644 --- a/backend/open_webui/routers/notes.py +++ b/backend/open_webui/routers/notes.py @@ -19,12 +19,18 @@ from open_webui.models.notes import ( NoteForm, NoteListResponse, NoteModel, + NotePageConflict, + NotePageOperation, Notes, NoteUpdateForm, NoteUserResponse, + get_content_files, + get_note_files, + matching_page, + normalize_pages, ) from open_webui.models.users import UserModel, UserResponse, Users -from open_webui.socket.main import leave_room_for_users, sio +from open_webui.socket.main import close_changed_note_documents, leave_room_for_users, sio from open_webui.utils.access_control import ( filter_allowed_access_grants, has_permission, @@ -56,11 +62,17 @@ async def check_notes_access(user: UserModel, db: AsyncSession): ) -def _truncate_note_data(data: Optional[dict], max_length: int = 1000) -> Optional[dict]: +def _truncate_note_data(data: Optional[dict], max_length: int = 1000, query: str = '') -> Optional[dict]: if not data: return data - md = (data.get('content') or {}).get('md') or '' - return {'content': {'md': md[:max_length]}} + page = matching_page(data, query) + md = page['content'].get('md') or '' + return { + 'content': {'md': md[:max_length]}, + 'page_count': len(data.get('pages') or [None]), + 'page_id': page['id'], + 'page_title': page['title'], + } async def leave_note_rooms_for_revoked_users( @@ -76,7 +88,10 @@ async def leave_note_rooms_for_revoked_users( users = await Users.get_users_by_user_ids(list(revoked_user_ids), db=db) # Admins retain access to notes regardless of grants. user_ids = [user.id for user in users if user.role != 'admin'] - for room in [f'note:{note.id}', f'doc_note:{note.id}']: + page_rooms = [ + f'doc_note:{note.id}:page:{p["id"]}:{p.get("generation", 0)}' for p in normalize_pages(note.data)['pages'] + ] + for room in [f'note:{note.id}', f'doc_note:{note.id}', *page_rooms]: await leave_room_for_users(room, user_ids) @@ -210,7 +225,7 @@ async def search_notes( pinned_note_ids = await Notes.get_pinned_note_ids(user.id, db=db) for note in result.items: note.is_pinned = note.id in pinned_note_ids - note.data = _truncate_note_data(note.data) + note.data = _truncate_note_data(note.data, query=query or '') return result @@ -237,6 +252,9 @@ async def create_new_note( db=db, ) + if not await has_access_to_note_files(None, get_note_files(form_data.data), user, db=db): + raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()) + try: note = await Notes.insert_new_note(user.id, form_data, db=db) await publish_event( @@ -536,13 +554,16 @@ async def update_note_by_id( if ( form_data.data - and 'files' in form_data.data - and not await has_access_to_note_files(note, form_data.data['files'], user, db=db) + and not await has_access_to_note_files(note, get_content_files(form_data.data.get('content')), user, db=db) ): raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()) try: + if form_data.page_generation is not None: + raise ValueError('Page generation is managed by collaboration') + previous = note note = await Notes.update_note_by_id(id, form_data, db=db) + await close_changed_note_documents(previous, note) pinned_note_ids = await Notes.get_pinned_note_ids(user.id, db=db) note.is_pinned = note.id in pinned_note_ids @@ -552,6 +573,8 @@ async def update_note_by_id( event_data['data'] = { key: note.data.get(key) for key in form_data.data.keys() if note.data is not None and key in note.data } + if form_data.page_operation or (form_data.data and {'content', 'files'} & form_data.data.keys()): + event_data['data'] = note.data await sio.emit( 'events:note', @@ -567,11 +590,26 @@ async def update_note_by_id( data={'title': note.title}, ) return note + except NotePageConflict as e: + raise HTTPException(status_code=409, detail=str(e)) + except ValueError as e: + raise HTTPException(status_code=400, detail=str(e)) except Exception as e: log.exception(e) raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=ERROR_MESSAGES.DEFAULT()) +@router.post('/{id}/pages/update', response_model=NoteModel) +async def update_note_pages( + request: Request, + id: str, + form_data: NotePageOperation, + user=Depends(get_verified_user), + db: AsyncSession = Depends(get_async_session), +): + return await update_note_by_id(request, id, NoteUpdateForm(page_operation=form_data), user, db) + + ############################ # UpdateNoteAccessById ############################ @@ -704,8 +742,13 @@ async def delete_note_by_id( raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.DEFAULT()) try: + previous = note + page_rooms = [ + f'doc_note:{id}:page:{p["id"]}:{p.get("generation", 0)}' for p in normalize_pages(note.data)['pages'] + ] note = await Notes.delete_note_by_id(id, db=db) - for room in [f'note:{id}', f'doc_note:{id}']: + await close_changed_note_documents(previous, None) + for room in [f'note:{id}', f'doc_note:{id}', *page_rooms]: await sio.close_room(room) await publish_event( diff --git a/backend/open_webui/routers/search.py b/backend/open_webui/routers/search.py index 1091d7581f..c5850bdd05 100644 --- a/backend/open_webui/routers/search.py +++ b/backend/open_webui/routers/search.py @@ -12,7 +12,7 @@ from open_webui.models.config import Config from open_webui.models.folders import Folder, Folders from open_webui.models.groups import Groups from open_webui.models.messages import Message -from open_webui.models.notes import Note, PinnedNote +from open_webui.models.notes import Note, PinnedNote, matching_page from open_webui.models.shared_chats import SharedChat from open_webui.models.users import User from open_webui.utils.access_control import has_permission @@ -338,7 +338,9 @@ async def search_workspace( # noqa: C901 — keep permission scoping and source db, select(Note, pinned, note_shared), Note, {'user_id': user.id, 'group_ids': groups}, 'note', 'read' ) stmt = stmt.where(sharing_filter(Note.user_id)) - stmt = apply_match(stmt, Note, Note.data['content']['md'].as_string()) + stmt = apply_match( + stmt, Note, func.coalesce(Note.data['search_text'].as_string(), Note.data['content']['md'].as_string()) + ) rank = title_rank(Note.title, query) if query else case((pinned, 0), else_=3) sources['note'] = (Note, stmt, rank, cast(Note.updated_at.op('/')(literal(1_000_000_000)), BigInteger)) @@ -421,14 +423,15 @@ async def search_workspace( # noqa: C901 — keep permission scoping and source match.rank, ) elif match.source == 'note': - content = ((item.data or {}).get('content') or {}).get('md') or '' + page = matching_page(item.data, query) + content = page['content'].get('md', '') append_result( 'note:' + item.id, 'note', item.title, 'Shared note' if item.user_id != user.id or row[2] else 'Personal note', content if isinstance(content, str) else '', - '/notes/' + item.id + ('?' + urlencode({'search': query}) if query else ''), + '/notes/' + item.id + '?' + urlencode({'page': page['id'], 'search': query}), match.updated_at, item.user_id != user.id or row[2], row[1], diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 2d235175cf..99931b4e06 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -40,7 +40,7 @@ from open_webui.models.channels import Channels from open_webui.models.chats import Chats from open_webui.models.config import Config from open_webui.models.folders import Folders -from open_webui.models.notes import Notes, NoteUpdateForm +from open_webui.models.notes import Notes, NoteUpdateForm, document_page, get_content_files, get_page, normalize_pages from open_webui.models.users import UserNameResponse, Users from open_webui.socket.encryption import Relay from open_webui.socket.redis_room_channels import AsyncRedisRoomChannelManager @@ -695,7 +695,7 @@ async def join_channel(sid, data): await sio.enter_room(sid, f'channel:{channel.id}') -@sio.on('join-note') +@sio.on('note:join') async def join_note(sid, data): auth = data['auth'] if 'auth' in data else None if not auth or 'token' not in auth: @@ -736,6 +736,13 @@ async def join_note(sid, data): await sio.enter_room(sid, f'note:{note.id}') +@sio.on('note:leave') +async def leave_note(sid, data): + note_id = data.get('note_id') + if isinstance(note_id, str): + await sio.leave_room(sid, f'note:{note_id}') + + @sio.on('events:channel') async def channel_events(sid, data): room = f'channel:{data["channel_id"]}' @@ -886,6 +893,23 @@ def normalize_document_id(document_id: str) -> str: return document_id +async def close_changed_note_documents(previous, current): + remaining = {p['id']: p.get('generation', 0) for p in normalize_pages(current.data)['pages']} if current else {} + for page in normalize_pages(previous.data)['pages']: + if remaining.get(page['id']) == page.get('generation', 0): + continue + ids = [f'note:{previous.id}:page:{page["id"]}:{page.get("generation", 0)}'] + if len(previous.data['pages']) == 1: + ids.append(f'note:{previous.id}') + for document_id in ids: + async with YDOC_MANAGER.lock(document_id): + await stop_item_tasks(REDIS, document_id) + await sio.close_room(f'doc_{document_id}') + for sid in list(await YDOC_MANAGER.get_users(document_id)): + await YDOC_MANAGER.remove_user(document_id, sid) + await YDOC_MANAGER.clear_document(document_id) + + def with_document_lock(handler): @wraps(handler) async def wrapped(sid, data): @@ -920,6 +944,7 @@ async def ydoc_document_join(sid, data): if not note: log.error(f'Note {note_id} not found') return + page = document_page(note.data, document_id) if ( user.get('role') != 'admin' @@ -964,7 +989,7 @@ async def ydoc_document_join(sid, data): { 'document_id': document_id, 'state': list(state_update), # Convert bytes to list for JSON - 'content': note.data.get('content') if document_id.startswith('note:') and note.data else None, + 'content': page['content'] if document_id.startswith('note:') else None, }, room=sid, ) @@ -1012,7 +1037,31 @@ async def document_save_handler(document_id, data, user): log.error(f'User {user.get("id")} does not have write access to note {note_id}') return - return await Notes.update_note_by_id(note_id, NoteUpdateForm(data=data)) + page = document_page(note.data, document_id) + if not isinstance(data.get('content'), dict): + return None + editor = await Users.get_user_by_id(user['id']) + if not editor or not await has_access_to_note_files(note, get_content_files(data['content']), editor): + raise ValueError('Cannot attach files you cannot access') + saved = await Notes.update_note_by_id( + note_id, + NoteUpdateForm( + data={'content': data['content']}, + page_id=page['id'], + page_generation=page.get('generation', 0), + ), + ) + if saved: + await sio.emit( + 'events:note', + { + 'id': note_id, + 'page': get_page(saved.data, page['id']), + 'updated_at': saved.updated_at, + }, + to=f'note:{note_id}', + ) + return saved @sio.on('ydoc:document:state') @@ -1084,6 +1133,7 @@ async def yjs_document_update(sid, data): if not note: log.error(f'Note {note_id} not found') return + page = document_page(note.data, document_id) if ( user.get('role') != 'admin' @@ -1099,9 +1149,9 @@ async def yjs_document_update(sid, data): return snapshot = data.get('data') - if isinstance(snapshot, dict) and 'files' in snapshot: + if isinstance(snapshot, dict) and 'content' in snapshot: editor = await Users.get_user_by_id(user['id']) - if not editor or not await has_access_to_note_files(note, snapshot['files'], editor): + if not editor or not await has_access_to_note_files(note, get_content_files(snapshot['content']), editor): await sio.emit('error', {'message': 'Cannot attach files you cannot access'}, room=sid) return @@ -1143,6 +1193,11 @@ async def yjs_document_update(sid, data): if data.get('initialize'): return update if stored else None + if data.get('flush'): + await stop_item_tasks(REDIS, document_id) + saved = await document_save_handler(document_id, data.get('data', {}), user) + return {'ok': bool(saved)} + async def debounced_save(): await asyncio.sleep(0.5) async with YDOC_MANAGER.lock(document_id): @@ -1167,6 +1222,7 @@ async def yjs_document_update(sid, data): except Exception as e: log.error(f'Error in yjs_document_update: {e}') + return {'error': str(e)} @sio.on('ydoc:document:leave') diff --git a/backend/open_webui/tools/builtin.py b/backend/open_webui/tools/builtin.py index 72dd8422a7..c2d18366a4 100644 --- a/backend/open_webui/tools/builtin.py +++ b/backend/open_webui/tools/builtin.py @@ -26,8 +26,8 @@ from open_webui.models.config import Config from open_webui.models.groups import Groups from open_webui.models.memories import Memories from open_webui.models.messages import Message, Messages -from open_webui.models.notes import Notes -from open_webui.models.users import UserModel +from open_webui.models.notes import NotePageConflict, Notes, get_content_files, get_page, matching_page +from open_webui.models.users import UserModel, Users from open_webui.retrieval.utils import filter_source_metadata, get_content_from_url from open_webui.retrieval.vector.async_client import ASYNC_VECTOR_DB_CLIENT from open_webui.routers.images import ( @@ -61,9 +61,9 @@ from open_webui.routers.memories import ( update_memories as _update_memories, ) from open_webui.routers.retrieval import search_web as _search_web -from open_webui.socket.main import sio -from open_webui.tasks import stop_item_tasks +from open_webui.socket.main import close_changed_note_documents, sio from open_webui.tools.knowledge_fs import kb_exec # noqa: F401 — re-exported +from open_webui.utils.access_control.files import has_access_to_note_files from open_webui.utils.chat_id import is_saved_chat_id from open_webui.utils.json_codec import JSONCodec from open_webui.utils.notifications import notify_target @@ -1202,10 +1202,11 @@ async def search_notes( if end_ts and note.updated_at > end_ts: continue - # Extract a snippet from the markdown content + # Extract a snippet from the matching page. + page = matching_page(note.data, query) content_snippet = '' - if note.data and note.data.get('content', {}).get('md'): - md_content = note.data['content']['md'] + if page['content'].get('md'): + md_content = page['content']['md'] content_lower = md_content.lower() # Find the first matching word to center the snippet around. @@ -1235,6 +1236,9 @@ async def search_notes( 'id': note.id, 'title': note.title, 'snippet': content_snippet, + 'page_id': page['id'], + 'page_title': page['title'], + 'url': f'/notes/{note.id}?page={page["id"]}', 'updated_at': note.updated_at, } ) @@ -1250,6 +1254,7 @@ async def search_notes( async def view_note( note_id: str, + page_id: Optional[str] = None, __request__: Request = None, __user__: dict = None, ) -> str: @@ -1257,6 +1262,7 @@ async def view_note( Get the full content of a note by its ID. :param note_id: The ID of the note to retrieve + :param page_id: Page to read; omit to inspect the complete note and its page directory :return: JSON with the note's id, title, and full markdown content """ if __request__ is None: @@ -1290,16 +1296,24 @@ async def view_note( ): return JSONCodec.dumps({'error': 'Access denied'}) - # Extract markdown content - content = '' - if note.data and note.data.get('content', {}).get('md'): - content = note.data['content']['md'] + page = get_page(note.data, page_id) if page_id or len(note.data['pages']) == 1 else None + content = page['content'].get('md', '') if page else note.data['content'].get('md', '') + # Keep the version read by this tool run out of the model-facing interface. + if not hasattr(__request__.state, 'note_page_revisions'): + __request__.state.note_page_revisions = {} + for read_page in [page] if page else note.data['pages']: + __request__.state.note_page_revisions[(user_id, note.id, read_page['id'])] = read_page.get('revision', 0) return JSONCodec.dumps( { 'id': note.id, 'title': note.title, 'content': content, + 'page_id': page['id'] if page else None, + 'page_title': page['title'] if page else None, + 'pages': [ + {'id': p['id'], 'title': p['title'], 'parent_id': p.get('parent_id')} for p in note.data['pages'] + ], 'updated_at': note.updated_at, 'created_at': note.created_at, }, @@ -1340,6 +1354,9 @@ async def write_note( access_grants=[], # Private by default - only owner can access ) + editor = await Users.get_user_by_id(user_id) + if not editor or not await has_access_to_note_files(None, get_content_files(form.data['content']), editor): + return JSONCodec.dumps({'error': 'Cannot attach files you cannot access'}) new_note = await Notes.insert_new_note(user_id, form) if not new_note: @@ -1364,12 +1381,14 @@ async def replace_note_content( content: Optional[str] = None, operations: Optional[list[dict]] = None, title: Optional[str] = None, + page_id: Optional[str] = None, __request__: Request = None, __user__: dict = None, ) -> str: """ Update an existing note by replacing the whole markdown content, exact text, or character ranges. + Read the note with view_note before editing. If it changes meanwhile, read it again before retrying. Prefer "replace_text" when only part of the note changes. Supply either find or start/end, not both. find is non-empty, literal, and case-sensitive. Text matches are non-overlapping. Multiple matches require a 0-indexed occurrence or replace_all=true; @@ -1389,6 +1408,7 @@ async def replace_note_content( - {"action": "replace_text", "start": 0, "end": 10, "content": "...", "expected": "..."} - {"action": "replace_text", "find": "old text", "content": "new text", "occurrence": 0, "replace_all": false} :param title: Optional new title for the note + :param page_id: Page to edit; required for notes with multiple pages. Use the active page_id supplied in the request unless the user selects another page :return: JSON with success status and updated note info """ if __request__ is None: @@ -1409,7 +1429,16 @@ async def replace_note_content( if __user__.get('role') != 'admin' and not await _has_write_access_to_note(note, user_id): return JSONCodec.dumps({'error': 'Write access denied', 'code': 'write_access_denied'}) - current_content = ((note.data or {}).get('content') or {}).get('md') or '' + page = get_page(note.data, page_id) + page_id = page['id'] + read_revisions = getattr(__request__.state, 'note_page_revisions', {}) + read_key = (user_id, note.id, page_id) + if read_key not in read_revisions: + return JSONCodec.dumps({'error': 'Read this page with view_note before editing', 'code': 'read_required'}) + read_revision = read_revisions[read_key] + if read_revision != page.get('revision', 0): + raise NotePageConflict('Page changed since you read it. Use view_note again before editing') + current_content = page['content'].get('md') or '' applied_operation_count = 0 range_operations = [] if operations is not None: @@ -1557,37 +1586,38 @@ async def replace_note_content( elif content is None: return JSONCodec.dumps({'error': 'content or operations is required', 'code': 'content_required'}) - try: - await stop_item_tasks(__request__.app.state.redis, f'note:{note_id}') - except Exception: - pass - update_data = { + 'page_id': page_id, + 'page_revision': read_revision, 'data': { - **(note.data or {}), 'content': { - **((note.data or {}).get('content') or {}), 'json': None, 'html': '', 'md': content, }, - } + }, } if title: update_data['title'] = title + editor = await Users.get_user_by_id(__user__['id']) + if not editor or not await has_access_to_note_files(note, get_content_files(update_data['data']['content']), editor): + return JSONCodec.dumps({'error': 'Cannot attach files you cannot access'}) form = NoteUpdateForm(**update_data) updated_note = await Notes.update_note_by_id(note_id, form) if not updated_note: return JSONCodec.dumps({'error': 'Failed to update note', 'code': 'update_failed'}) + read_revisions[read_key] = get_page(updated_note.data, page_id).get('revision', 0) + await close_changed_note_documents(note, updated_note) await _emit_note_updated(__request__, __user__, updated_note) return JSONCodec.dumps( { 'status': 'success', 'id': updated_note.id, + 'page_id': page_id, 'title': updated_note.title, 'updated_at': updated_note.updated_at, 'applied_operation_count': applied_operation_count, @@ -1595,6 +1625,8 @@ async def replace_note_content( }, ensure_ascii=False, ) + except NotePageConflict as e: + return JSONCodec.dumps({'error': str(e), 'code': 'page_conflict'}) except Exception as e: log.exception(f'replace_note_content error: {e}') return JSONCodec.dumps({'error': str(e), 'code': 'unexpected_error'}) @@ -3624,6 +3656,7 @@ async def view_skill( return JSONCodec.dumps(skill, ensure_ascii=False) from types import SimpleNamespace + from open_webui.models.skills import get_skill_snapshot from open_webui.routers.skills import authorized_skill from open_webui.utils.skill_files import file_summaries @@ -3671,6 +3704,7 @@ async def read_skill_file( try: from types import SimpleNamespace from urllib.parse import urlencode + from open_webui.models.skills import get_skill_snapshot from open_webui.routers.skills import authorized_skill from open_webui.utils.skill_files import file_summaries @@ -3777,6 +3811,7 @@ async def grep_skill_files( files = [{'path': 'SKILL.md', 'content': skill['content']}] else: from types import SimpleNamespace + from open_webui.models.skills import get_skill_snapshot from open_webui.routers.skills import authorized_skill @@ -3827,10 +3862,11 @@ async def create_skill( """ try: from types import SimpleNamespace - from open_webui.routers.skills import create_new_skill + from open_webui.models.skills import SkillForm - from open_webui.utils.skill_files import frontmatter + from open_webui.routers.skills import create_new_skill from open_webui.utils.access_control import has_permission + from open_webui.utils.skill_files import frontmatter if __request__ is None or not __user__: raise ValueError('Request and user context required') @@ -3877,9 +3913,10 @@ async def update_skill_files( """ try: from types import SimpleNamespace - from open_webui.routers.skills import authorized_skill - from open_webui.models.skills import Skills + from open_webui.events import EVENTS, publish_event + from open_webui.models.skills import Skills + from open_webui.routers.skills import authorized_skill if __request__ is None or not __user__: raise ValueError('Request and user context required') @@ -4147,7 +4184,7 @@ async def create_automation( return JSONCodec.dumps({'error': 'User context not available'}) try: - from open_webui.models.automations import AutomationData, AutomationForm, AutomationTarget, Automations + from open_webui.models.automations import AutomationData, AutomationForm, Automations, AutomationTarget from open_webui.models.users import Users from open_webui.routers.automations import check_automation_limits from open_webui.utils.automations import next_n_runs_ns, next_run_ns, validate_rrule @@ -4246,7 +4283,7 @@ async def update_automation( return JSONCodec.dumps({'error': 'User context not available'}) try: - from open_webui.models.automations import AutomationData, AutomationForm, AutomationTarget, Automations + from open_webui.models.automations import AutomationData, AutomationForm, Automations, AutomationTarget from open_webui.models.users import Users from open_webui.routers.automations import check_automation_limits from open_webui.utils.automations import next_n_runs_ns, next_run_ns, validate_rrule diff --git a/backend/open_webui/utils/access_control/files.py b/backend/open_webui/utils/access_control/files.py index c8a10910da..4052bd0798 100644 --- a/backend/open_webui/utils/access_control/files.py +++ b/backend/open_webui/utils/access_control/files.py @@ -8,7 +8,7 @@ from open_webui.models.folders import FolderModel from open_webui.models.groups import Groups from open_webui.models.knowledge import Knowledges from open_webui.models.models import Models -from open_webui.models.notes import NoteModel, Notes +from open_webui.models.notes import NoteModel, Notes, get_note_files from open_webui.models.users import UserModel, Users from sqlalchemy.ext.asyncio import AsyncSession @@ -28,14 +28,14 @@ def get_note_file_ids(entries: list[dict] | None) -> set[str]: async def has_access_to_note_files( - note: NoteModel, entries: list[dict] | None, user: UserModel, db: AsyncSession | None = None + note: NoteModel | None, entries: list[dict] | None, user: UserModel, db: AsyncSession | None = None ) -> bool: """Check the editor's read access to newly attached files.""" if entries is not None and not isinstance(entries, list): return False # Existing attachments may belong to another editor; only additions need permission. - added_ids = get_note_file_ids(entries) - get_note_file_ids((note.data or {}).get('files')) + added_ids = get_note_file_ids(entries) - get_note_file_ids(get_note_files(note.data) if note else []) if not added_ids or user.role == 'admin': return True diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 8a4e2ba902..934a078f2c 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -52,7 +52,6 @@ from open_webui.models.chats import Chats from open_webui.models.config import Config from open_webui.models.folders import Folders from open_webui.models.models import Models -from open_webui.models.notes import Notes from open_webui.models.users import UserModel, Users from open_webui.retrieval.utils import filter_source_metadata, get_sources_from_items from open_webui.routers.images import ( @@ -2486,28 +2485,6 @@ async def process_chat_payload(request, form_data, user, metadata, model): activated_skill_ids = mentioned_skill_ids available_skills = [] terminal_skills = [] - if is_note_chat: - note_id = (chat.meta or {}).get('note_id') - note = await Notes.get_note_by_id(note_id) if note_id else None - if note and ( - user.role == 'admin' - or note.user_id == user.id - or await AccessGrants.has_access( - user_id=user.id, - resource_type='note', - resource_id=note.id, - permission='read', - ) - ): - note_files = [ - file - for file in ((note.data or {}).get('files') or []) - if isinstance(file, dict) - and file.get('type') != 'image' - and not (file.get('content_type') or '').startswith('image/') - ] - if note_files: - files = [*(files or []), *note_files] model_builtin_tools = model.get('info', {}).get('meta', {}).get('builtinTools') or {} diff --git a/src/lib/apis/notes/index.ts b/src/lib/apis/notes/index.ts index 71626953f3..d8b00d7184 100644 --- a/src/lib/apis/notes/index.ts +++ b/src/lib/apis/notes/index.ts @@ -8,6 +8,39 @@ type NoteItem = { access_grants?: object[]; }; +export type NoteContent = { json: any; html: string; md: string }; +export type NotePage = { + id: string; + parent_id?: string | null; + inherit_note_title?: boolean; + title: string; + content: NoteContent; + versions: NoteContent[]; + revision: number; + generation: number; +}; +export type NotePageOperation = { + action: 'create' | 'rename' | 'duplicate' | 'reorder' | 'move' | 'delete'; + revision: number; + page_id?: string; + new_id?: string; + parent_id?: string | null; + before_id?: string | null; + title?: string; + order?: string[]; +}; + +export const updateNotePages = async (token: string, id: string, operation: NotePageOperation) => { + const response = await fetch(`${WEBUI_API_BASE_URL}/notes/${id}/pages/update`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', authorization: `Bearer ${token}` }, + body: JSON.stringify(operation) + }); + const result = await response.json(); + if (!response.ok) throw new Error(result.detail || 'Failed to update pages'); + return result; +}; + export const createNewNote = async (token: string, note: NoteItem) => { let error = null; @@ -318,7 +351,7 @@ export const createNoteChatById = async (token: string, id: string) => { export const updateNoteById = async ( token: string, id: string, - note: Omit + note: Omit & { page_id?: string } ) => { let error = null; diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index a6c460d289..a1608ff27a 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -151,6 +151,9 @@ export let embeddedDraftKey = ''; export let suggestedPrompts = []; export let selectedText = ''; + export let notePageId = ''; + export let noteFiles = []; + export let onBeforeNoteSubmit: (() => Promise) | null = null; export let onInsertToNote: ((content: string) => void) | null = null; export let onCloseEmbedded: (() => void) | null = null; export let onNewEmbeddedChat: (() => void | Promise) | null = null; @@ -856,10 +859,16 @@ } }; - const withSelectedText = (text: string) => - embedded && selectedText?.trim() - ? `${text}\n\nSelected note text for replace_note_content operations:\n${selectedText.trim()}` - : text; + const withSelectedText = (text: string) => { + if (!embedded) return text; + return ( + text + + (notePageId ? `\n\nActive note page_id: ${notePageId}` : '') + + (selectedText?.trim() + ? `\n\nSelected note text for replace_note_content operations:\n${selectedText.trim()}` + : '') + ); + }; const noteChatDebug = (message: string, data: Record = {}) => { if (!embedded) return; console.info('[note-chat]', message, { @@ -3136,7 +3145,11 @@ entry.files.some((file: any) => file.type === 'filesystem') ); const queuedMessages = - boundary === 0 ? queue.slice(0, 1) : boundary < 0 ? [...queue] : queue.slice(0, boundary); + embedded || boundary === 0 + ? queue.slice(0, 1) + : boundary < 0 + ? [...queue] + : queue.slice(0, boundary); const queuedMessageIds = new Set(queuedMessages.map((m) => m.id)); try { const combinedPrompt = queuedMessages.map((m) => m.prompt).join('\n\n'); @@ -3840,6 +3853,14 @@ bridge: bridgeRequest = null }: { _raw?: boolean; bridge?: { userMessageId: string; modelId: string } | null } = {} ): Promise => { + if (embedded && onBeforeNoteSubmit) { + try { + await onBeforeNoteSubmit(); + } catch (error) { + toast.error(String(error)); + return { status: 'rejected' }; + } + } if (processing === 'uploading') return { status: 'deferred' }; emitTyping(false); if (bridgeRequest && (selectedModelIds.length !== 1 || !bridgeRequest.modelId)) @@ -4390,7 +4411,11 @@ stop: getStopTokens() }, - files: (files?.length ?? 0) > 0 ? files : undefined, + files: embedded + ? [...(files ?? []), ...noteFiles] + : (files?.length ?? 0) > 0 + ? files + : undefined, filter_ids: $config?.features?.enable_functions && selectedFilterIds.length > 0 diff --git a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens/NoteLinkToken.svelte b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens/NoteLinkToken.svelte index df40d9a693..7e49a5f030 100644 --- a/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens/NoteLinkToken.svelte +++ b/src/lib/components/chat/Messages/Markdown/MarkdownInlineTokens/NoteLinkToken.svelte @@ -19,7 +19,9 @@ try { const note = await getNoteById(localStorage.token, noteId); if (note) { - title = note.title || ''; + const pageId = new URL(href, window.location.origin).searchParams.get('page'); + const page = note.data?.pages?.find((p) => p.id === pageId); + title = page ? `${note.title} / ${page.title}` : note.title || ''; if (note.user_id) { try { @@ -48,7 +50,7 @@ on:click|preventDefault|stopPropagation={() => { try { const url = new URL(href, window.location.origin); - goto(url.pathname); + goto(url.pathname + url.search + url.hash); } catch { // fallback } diff --git a/src/lib/components/common/FileItem.svelte b/src/lib/components/common/FileItem.svelte index 1fbe877c4a..9900bdf68e 100644 --- a/src/lib/components/common/FileItem.svelte +++ b/src/lib/components/common/FileItem.svelte @@ -23,7 +23,7 @@ export let modal = false; export let loading = false; - export let item = null; + export let item: any = null; export let edit = false; export let small = false; diff --git a/src/lib/components/common/ResizableSidePanel.svelte b/src/lib/components/common/ResizableSidePanel.svelte index 04948787e3..ccf2073360 100644 --- a/src/lib/components/common/ResizableSidePanel.svelte +++ b/src/lib/components/common/ResizableSidePanel.svelte @@ -11,6 +11,7 @@ export let minSiblingWidth = 0; export let closeOnDragBelowMinWidth = false; export let storageKey = ''; + export let subtleDivider = false; export let className = ''; export let resizerId = 'controls-resizer'; export let onClose: () => void = () => {}; @@ -104,8 +105,9 @@ onMount(() => { if (!storageKey) return; - const storedWidth = Number(localStorage.getItem(storageKey)); - if (!Number.isNaN(storedWidth)) { + const stored = localStorage.getItem(storageKey); + const storedWidth = Number(stored); + if (stored !== null && Number.isFinite(storedWidth) && storedWidth > 0) { width = clamp(storedWidth); } }); @@ -141,7 +143,9 @@ {#if side === 'right'}
+ {#if subtleDivider} + + {/if}
+ {#if subtleDivider} + + {/if} `${content}` }); - import { onMount, onDestroy, tick, getContext } from 'svelte'; + import { onMount, onDestroy, tick, getContext, getAllContexts } from 'svelte'; import { createEventDispatcher } from 'svelte'; const i18n = getContext('i18n'); + const componentContext = getAllContexts(); const eventDispatch = createEventDispatcher(); import { Fragment, DOMParser, Slice, type Node, type Schema } from 'prosemirror-model'; @@ -150,13 +151,40 @@ // Bubble and Floating menus are currently fixed to v2 due to styling issues in v3 // TODO: Update to v3 when styling issues are resolved import BubbleMenu from '@tiptap/extension-bubble-menu'; - import FloatingMenu from '@tiptap/extension-floating-menu'; + import FloatingMenu, { FloatingMenuView } from '@tiptap/extension-floating-menu'; + + class MountedFloatingMenuView extends FloatingMenuView { + updatePosition() { + // Tiptap leaves a pending resize timer alive after destroying a menu. + // Switching note tabs can destroy its view before that timer runs. + if (this.editor.isDestroyed || this.view.isDestroyed) return; + super.updatePosition(); + } + } + + const MountedFloatingMenu = FloatingMenu.extend({ + addProseMirrorPlugins() { + const element = this.options.element; + if (!element) return []; + return [ + new Plugin({ + key: + typeof this.options.pluginKey === 'string' + ? new PluginKey(this.options.pluginKey) + : this.options.pluginKey, + view: (view) => + new MountedFloatingMenuView({ ...this.options, element, editor: this.editor, view }) + }) + ]; + } + }); import { TableKit } from '@tiptap/extension-table'; import { ListKit } from '@tiptap/extension-list'; import { Placeholder, CharacterCount } from '@tiptap/extensions'; import Image from './RichTextInput/Image/index.js'; + import FileAttachment from './RichTextInput/FileAttachment'; // import TiptapImage from '@tiptap/extension-image'; import FileHandler from '@tiptap/extension-file-handler'; @@ -218,6 +246,7 @@ ); export let editor: Editor | null = null; + $: eventDispatch('editor', editor); export let socket = null; export let user = null; @@ -246,6 +275,7 @@ export let link = false; export let image = false; export let fileHandler = false; + export let attachments = false; export let suggestions = null; export let onFileDrop = (currentEditor, files, pos) => { @@ -393,6 +423,10 @@ $: serializeContent(richText); let provider: SocketIOCollaborationProvider | null = null; + export const flush = async () => { + await tick(); + await provider?.flush(); + }; let floatingMenuElement: Element | null = null; let bubbleMenuElement: Element | null = null; @@ -912,7 +946,8 @@ : []), CharacterCount.configure({}), - ...(image ? [Image] : []), + ...(image ? [Image.configure({ allowBase64: attachments })] : []), + ...(attachments ? [FileAttachment.configure({ context: componentContext })] : []), ...(fileHandler ? [ FileHandler.configure({ @@ -958,7 +993,7 @@ return view.hasFocus() && from !== to; } }), - FloatingMenu.configure({ + MountedFloatingMenu.configure({ element: floatingMenuElement, appendTo: () => document.body, options: { diff --git a/src/lib/components/common/RichTextInput/Collaboration.ts b/src/lib/components/common/RichTextInput/Collaboration.ts index 29e30c630d..b1df24f69a 100644 --- a/src/lib/components/common/RichTextInput/Collaboration.ts +++ b/src/lib/components/common/RichTextInput/Collaboration.ts @@ -46,6 +46,7 @@ export class SocketIOCollaborationProvider { private synced = false; private editor: Editor | null = null; private editorContentGetter: EditorContentGetter | null = null; + private listeners: Array<[string, (...args: any[]) => void]> = []; private contentSnapshotTimer: ReturnType | null = null; constructor( @@ -168,9 +169,31 @@ export class SocketIOCollaborationProvider { } } + private listen(event: string, handler: (...args: any[]) => void) { + this.listeners.push([event, handler]); + this.socket.on(event, handler); + } + + public async flush() { + await tick(); + if (!this.isConnected || !this.synced || !this.editorContentGetter) { + throw new Error('Tab is not connected. Reconnect before leaving this tab.'); + } + if (this.contentSnapshotTimer) { + clearTimeout(this.contentSnapshotTimer); + this.contentSnapshotTimer = null; + } + const result = await this.socket.timeout(10000).emitWithAck('ydoc:document:update', { + document_id: this.documentId, + flush: true, + data: { content: this.editorContentGetter() } + }); + if (!result?.ok) throw new Error(result?.error || 'Failed to save page'); + } + private setupEventListeners() { // Listen for document updates from server - this.socket.on('ydoc:document:update', (data) => { + this.listen('ydoc:document:update', (data) => { if (data.document_id === this.documentId && data.socket_id !== this.socket.id) { try { const update = new Uint8Array(data.update); @@ -188,7 +211,7 @@ export class SocketIOCollaborationProvider { }); // Listen for document state from server - this.socket.on('ydoc:document:state', async (data) => { + this.listen('ydoc:document:state', async (data) => { if (data.document_id === this.documentId) { try { if (data.state) { @@ -241,7 +264,7 @@ export class SocketIOCollaborationProvider { }); // Listen for awareness updates - this.socket.on('ydoc:awareness:update', (data) => { + this.listen('ydoc:awareness:update', (data) => { if (data.document_id === this.documentId) { try { const awarenessUpdate = new Uint8Array(data.update); @@ -260,6 +283,7 @@ export class SocketIOCollaborationProvider { this.doc.on('update', async (update, origin) => { if (this.editor && origin !== 'server' && this.isConnected) { await tick(); // Ensure the DOM is updated before sending + if (!this.editor || !this.isConnected) return; this.socket.emit('ydoc:document:update', { document_id: this.documentId, user_id: this.user?.id, @@ -316,9 +340,8 @@ export class SocketIOCollaborationProvider { }; public destroy() { - this.socket.off('ydoc:document:update'); - this.socket.off('ydoc:document:state'); - this.socket.off('ydoc:awareness:update'); + for (const [event, handler] of this.listeners) this.socket.off(event, handler); + this.listeners = []; this.socket.off('connect', this.onConnect); this.socket.off('disconnect', this.onDisconnect); @@ -336,6 +359,8 @@ export class SocketIOCollaborationProvider { this.editor = null; this.editorContentGetter = null; + this.isConnected = false; + this.doc.destroy(); } } diff --git a/src/lib/components/common/RichTextInput/FileAttachment.ts b/src/lib/components/common/RichTextInput/FileAttachment.ts new file mode 100644 index 0000000000..6046f040c3 --- /dev/null +++ b/src/lib/components/common/RichTextInput/FileAttachment.ts @@ -0,0 +1,95 @@ +import { Node } from '@tiptap/core'; +import { createClassComponent } from 'svelte/legacy'; +import FileItem from '../FileItem.svelte'; + +export default Node.create<{ context: Map }>({ + name: 'fileAttachment', + group: 'block', + atom: true, + draggable: true, + addOptions() { + return { context: new Map() }; + }, + addAttributes() { + return { + id: { default: '', rendered: false }, + name: { default: '', rendered: false }, + size: { default: 0, rendered: false } + }; + }, + parseHTML() { + return [ + { + tag: 'div[data-file-id]', + getAttrs: (element) => ({ + id: element.getAttribute('data-file-id'), + name: element.textContent, + size: Number(element.getAttribute('data-file-size')) || 0 + }) + }, + { + tag: 'a[href^="/api/v1/files/"]', + priority: 100, + getAttrs: (element) => { + const match = element + .getAttribute('href') + ?.match(/^\/api\/v1\/files\/([\w-]+)\/content$/); + return match ? { id: match[1], name: element.textContent, size: 0 } : false; + } + } + ]; + }, + renderHTML({ node }) { + return [ + 'div', + { 'data-file-id': node.attrs.id, 'data-file-size': node.attrs.size }, + ['a', { href: `/api/v1/files/${encodeURIComponent(node.attrs.id)}/content` }, node.attrs.name] + ]; + }, + renderText({ node }) { + return node.attrs.name; + }, + addNodeView() { + return ({ node, editor, getPos }) => { + const dom = document.createElement('div'); + dom.className = 'not-prose my-2 w-fit max-w-full'; + dom.contentEditable = 'false'; + dom.dataset.fileId = node.attrs.id; + const component = createClassComponent({ + component: FileItem, + target: dom, + context: this.options.context, + props: { + item: { ...node.attrs, type: 'file' }, + name: node.attrs.name, + type: 'file', + size: node.attrs.size, + url: node.attrs.id, + dismissible: editor.isEditable, + edit: editor.isEditable, + small: true, + modal: true, + className: 'w-56 max-w-full', + colorClassName: + 'bg-gray-50/60 dark:bg-white/[0.03] border border-gray-100/80 dark:border-white/5' + } + }); + component.$on('dismiss', () => { + const pos = getPos(); + if (editor.isEditable && typeof pos === 'number') { + editor + .chain() + .focus() + .deleteRange({ from: pos, to: pos + node.nodeSize }) + .run(); + } + }); + return { + dom, + stopEvent: (event) => !event.type.startsWith('drag'), + ignoreMutation: () => true, + destroy: () => component.$destroy() + }; + }; + } +}); diff --git a/src/lib/components/layout/Search/NotePreview.svelte b/src/lib/components/layout/Search/NotePreview.svelte index e9f0736cd4..131ac337ca 100644 --- a/src/lib/components/layout/Search/NotePreview.svelte +++ b/src/lib/components/layout/Search/NotePreview.svelte @@ -21,8 +21,21 @@ content = ''; const note = await getNoteById(localStorage.token, noteId).catch(() => null); if (version !== generation) return; - if (note) content = note.data?.content?.md ?? ''; - else error = true; + if (note) { + const terms = search.toLowerCase().split(/\s+/).filter(Boolean); + const pages = note.data?.pages ?? []; + const match = + pages.find( + (p) => + terms.length && + terms.every((t) => `${p.title} ${p.content.md}`.toLowerCase().includes(t)) + ) ?? + pages.find((p) => + terms.some((t) => `${p.title} ${p.content.md}`.toLowerCase().includes(t)) + ) ?? + pages[0]; + content = match ? `## ${match.title}\n\n${match.content.md}` : (note.data?.content?.md ?? ''); + } else error = true; loading = false; await tick(); if (version !== generation || !body || !search.trim()) return; diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index f29057237e..8b82f40999 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -10,7 +10,7 @@ import { toast } from 'svelte-sonner'; import { equalEditorJSON } from '$lib/utils/editorJson'; - import { goto, onNavigate } from '$app/navigation'; + import { goto, onNavigate, replaceState } from '$app/navigation'; import { page } from '$app/stores'; import dayjs from '$lib/dayjs'; @@ -30,7 +30,7 @@ isHeicImage } from '$lib/utils'; import { WEBUI_BASE_URL } from '$lib/constants'; - import { getFileById, uploadFile } from '$lib/apis/files'; + import { uploadFile } from '$lib/apis/files'; import { generateOpenAIChatCompletion } from '$lib/apis/openai'; import { @@ -45,7 +45,10 @@ pinnedNotes } from '$lib/stores'; - import { downloadPdf } from './utils'; + import { contentFiles, downloadNote } from './utils'; + import NoteTabs from './NoteTabs.svelte'; + import ChevronDown from '../icons/ChevronDown.svelte'; + import type { NotePage, NotePageOperation } from '$lib/apis/notes'; import Chat from '$lib/components/chat/Chat.svelte'; @@ -59,6 +62,7 @@ getNoteChatById, getNoteChatsById, updateNoteById, + updateNotePages, updateNoteAccessGrants, toggleNotePinnedStatusById, getPinnedNoteList @@ -66,7 +70,6 @@ import { deleteChatById } from '$lib/apis/chats'; import RichTextInput from '../common/RichTextInput.svelte'; - import FileItem from '../common/FileItem.svelte'; import Spinner from '../common/Spinner.svelte'; import Mic from '../icons/Mic.svelte'; import VoiceRecording from '../chat/MessageInput/VoiceRecording.svelte'; @@ -91,7 +94,7 @@ let revealedSearch = ''; $: if (editor && note?.id === id && $page.url.searchParams.get('search')) { const query = $page.url.searchParams.get('search')!.trim().toLowerCase(); - const key = `${id}:${query}`; + const key = `${id}:${activePageId}:${query}`; if (query && revealedSearch !== key) { revealedSearch = key; tick().then(() => { @@ -113,22 +116,162 @@ } let autoFormat = true; let note = null; + let activePageId = ''; + let activePage: NotePage; + let pageBusy = false; + let showNoteTabs = false; + let noteTabsPreferenceReady = false; + $: if (noteTabsPreferenceReady && $user?.id) { + localStorage.setItem(`note-tabs-open:${$user.id}`, String(showNoteTabs)); + } + const pendingFileUploads = new Set>(); + let previousPage: NotePage | null = null; + let loadGeneration = 0; + let pageScroll: Record = {}; + $: activePage = note?.data?.pages?.find((p) => p.id === activePageId); + $: if ( + note?.id === id && + $page.url.searchParams.get('page') && + $page.url.searchParams.get('page') !== activePageId + ) { + activatePage($page.url.searchParams.get('page')); + } - const newNote = { - title: '', - data: { - content: { - json: null, - html: '', - md: '' - }, - versions: [], - files: null - }, - // pages: [], // TODO: Implement pages for notes to allow users to create multiple pages in a note - meta: null, - access_grants: [] - }; + function activatePage(requested: string) { + const target = note?.data?.pages?.find((p) => p.id === requested); + if (!target || target.id === activePageId) return; + const body = document.getElementById('note-content-container'); + if (body && activePageId) pageScroll[activePageId] = body.scrollTop; + activePageId = target.id; + selectedContent = null; + versionIdx = null; + revealedSearch = ''; + localStorage.setItem(`note-page:${$user?.id}:${id}`, target.id); + tick().then(() => { + const container = document.getElementById('note-content-container'); + if (container) container.scrollTop = pageScroll[target.id] ?? 0; + document + .getElementById(`note-page-tab-${target.id}`) + ?.scrollIntoView({ block: 'nearest', inline: 'nearest' }); + }); + } + + async function flushActivePage() { + while (pendingFileUploads.size) await Promise.all([...pendingFileUploads]); + if (note?.write_access && versionIdx === null && inputElement) await inputElement.flush(); + if (debounceTimeout || titleInputFocused) { + if (debounceTimeout) clearTimeout(debounceTimeout); + debounceTimeout = null; + await saveHandler(true); + } + } + + async function selectPage(pageId: string) { + if (pageBusy || pageId === activePageId) return; + const url = new URL($page.url); + url.searchParams.set('page', pageId); + try { + pageBusy = true; + await flushActivePage(); + await goto(url.pathname + url.search, { noScroll: true, keepFocus: true }); + } catch (error) { + toast.error(String(error)); + } finally { + pageBusy = false; + } + } + + async function pageAction( + operation: Omit + ): Promise { + if (pageBusy) return null; + pageBusy = true; + try { + if ( + ['create', 'duplicate'].includes(operation.action) || + (operation.action === 'delete' && operation.page_id === activePageId) + ) { + await flushActivePage(); + } + const previous = note.data.pages; + const activeIndex = previous.findIndex((p) => p.id === activePageId); + const newId = ['create', 'duplicate'].includes(operation.action) ? uuidv4() : undefined; + const saved = await updateNotePages(localStorage.token, id, { + ...operation, + new_id: newId, + revision: note.data.pages_revision + }); + mergePages(saved.data.pages, saved.data.pages_revision); + const target = + newId ?? + (saved.data.pages.some((p) => p.id === activePageId) + ? activePageId + : saved.data.pages[Math.min(activeIndex, saved.data.pages.length - 1)].id); + activatePage(target); + const url = new URL($page.url); + url.searchParams.set('page', target); + // The old page was flushed above; the new editor is still initializing. + await goto(url.pathname + url.search, { + replaceState: true, + noScroll: true, + keepFocus: true + }); + return newId ?? target; + } catch (error) { + toast.error(String(error)); + const current = await getNoteById(localStorage.token, id).catch(() => null); + if (current) mergePages(current.data.pages, current.data.pages_revision); + return null; + } finally { + pageBusy = false; + } + } + + function mergePages(incoming: NotePage[], revision: number) { + if (!incoming || revision < (note.data.pages_revision ?? 0)) return; + const previous = note.data.pages; + const oldIndex = previous.findIndex((p) => p.id === activePageId); + const oldPage = previous[oldIndex]; + const nextPage = incoming.find((p) => p.id === activePageId); + if ( + !pageBusy && + note.write_access && + oldPage?.content?.md && + (!nextPage || + (nextPage.generation > oldPage.generation && nextPage.content.md !== oldPage.content.md)) + ) { + previousPage = structuredClone(oldPage); + } + note.data.pages = incoming.map((remote) => { + const local = previous.find((p) => p.id === remote.id); + if (local && local.generation > remote.generation) + return { + ...local, + title: remote.title, + inherit_note_title: remote.inherit_note_title, + parent_id: remote.parent_id + }; + if (local && local.generation === remote.generation) { + if (local.revision > remote.revision) + return { + ...local, + title: remote.title, + inherit_note_title: remote.inherit_note_title, + parent_id: remote.parent_id + }; + if (remote.id === activePageId && note.write_access) + return { ...remote, content: local.content, versions: local.versions }; + } + return remote; + }); + note.data.pages_revision = revision; + if (!note.data.pages.some((p) => p.id === activePageId)) { + activatePage(note.data.pages[Math.max(0, Math.min(oldIndex, note.data.pages.length - 1))].id); + const url = new URL($page.url); + url.searchParams.set('page', activePageId); + replaceState(url, $page.state); + } + } const hasPublicReadGrant = (grants) => Array.isArray(grants) && @@ -139,8 +282,6 @@ grant?.permission === 'read' ); - let files = []; - let wordCount = 0; let charCount = 0; @@ -156,6 +297,7 @@ let displayMediaRecord = false; let showNoteChat = false; + $: if (showNoteChat) showNoteTabs = false; let noteChatId = null; let noteChatLoading = false; let noteChats = []; @@ -165,12 +307,7 @@ let selectedContent = null; let noteAttachmentFiles = []; let noteChatSuggestedPrompts = []; - let pendingNoteEvent = null; - let pendingNoteEventTimer = null; - let lastLocalContentChangeAt = 0; - $: noteAttachmentFiles = (files ?? []).filter( - (file) => file?.type !== 'image' && !(file?.content_type ?? '').startsWith('image/') - ); + $: noteAttachmentFiles = contentFiles(activePage?.content); $: noteChatSuggestedPrompts = [ $i18n.t('Enhance this note and update it.'), $i18n.t('Summarize this note.'), @@ -193,10 +330,12 @@ // Computed HTML for editor: fall back to markdown if HTML is missing $: editorHtml = - note?.data?.content?.html || - (note?.data?.content?.md ? marked.parse(note.data.content.md) : ''); + activePage?.content?.html || + (activePage?.content?.md ? marked.parse(activePage.content.md) : ''); const init = async () => { + const generation = ++loadGeneration; + const noteId = id; autoFormat = true; loading = true; const res = await getNoteById(localStorage.token, id).catch((error) => { @@ -204,14 +343,24 @@ return null; }); + if (generation !== loadGeneration || id !== noteId) return; if (res) { + if (note?.id && note.id !== res.id) $socket?.emit('note:leave', { note_id: note.id }); + previousPage = null; note = res; + const requested = $page.url.searchParams.get('page'); + const remembered = localStorage.getItem(`note-page:${$user?.id}:${id}`); + activePageId = ''; + activatePage( + note.data.pages.find((p) => p.id === (requested || remembered))?.id ?? note.data.pages[0].id + ); + if (requested && requested !== activePageId) + toast.info($i18n.t('This page no longer exists')); if (!Array.isArray(note?.access_grants)) { note.access_grants = []; } - files = res.data.files || []; - $socket?.emit('join-note', { + $socket?.emit('note:join', { note_id: id, auth: { token: localStorage.token @@ -229,14 +378,12 @@ let debounceTimeout: NodeJS.Timeout | null = null; - const saveHandler = async () => { + const saveHandler = async (propagateError = false) => { const res = await updateNoteById(localStorage.token, id, { - title: note?.title === '' ? $i18n.t('Untitled') : note.title, - data: { - files: files - } + title: note?.title === '' ? $i18n.t('Untitled') : note.title }).catch((e) => { toast.error(`${e}`); + if (propagateError) throw e; }); if (res) { @@ -255,108 +402,16 @@ }, 200); }; - onNavigate(() => { - if (titleInputFocused) { - changeDebounceHandler(); + onNavigate(async () => { + if (!note || !inputElement || loading || pageBusy) return; + try { + await flushActivePage(); + } catch (error) { + toast.error(String(error)); + throw error; } - - if (!debounceTimeout) { - return; - } - - clearTimeout(debounceTimeout); - debounceTimeout = null; - return saveHandler(); }); - const applyExternalNoteContent = async (_note) => { - const incomingContent = _note.data?.content; - const contentLength = incomingContent?.md?.length ?? incomingContent?.html?.length ?? 0; - - console.info('[note-chat] external note event apply requested', { - noteId: _note.id, - eventUpdatedAt: _note.updated_at, - currentUpdatedAt: note?.updated_at, - editorPresent: !!editor, - contentLength - }); - - if (_note.updated_at && note?.updated_at && _note.updated_at < note.updated_at) { - console.info('[note-chat] external note event skipped', { - noteId: _note.id, - reason: 'stale', - eventUpdatedAt: _note.updated_at, - currentUpdatedAt: note.updated_at, - contentLength - }); - return false; - } - - const elapsed = Date.now() - lastLocalContentChangeAt; - if (elapsed < 800) { - pendingNoteEvent = _note; - if (pendingNoteEventTimer) { - clearTimeout(pendingNoteEventTimer); - } - pendingNoteEventTimer = setTimeout(async () => { - const event = pendingNoteEvent; - pendingNoteEvent = null; - if (event) { - await applyExternalNoteContent(event); - } - }, 850 - elapsed); - - console.info('[note-chat] external note event deferred', { - noteId: _note.id, - reason: 'local-edit-settling', - eventUpdatedAt: _note.updated_at, - contentLength - }); - return false; - } - - note.data.content = { - ...note.data.content, - ...incomingContent - }; - if (_note.updated_at) { - note.updated_at = _note.updated_at; - } - - if (!editor) { - console.info('[note-chat] external note event applied', { - noteId: _note.id, - reason: 'no-editor', - eventUpdatedAt: _note.updated_at, - contentLength - }); - return true; - } - - const selection = editor.state.selection; - editor.commands.setContent(incomingContent.html || marked.parse(incomingContent.md ?? '')); - await tick(); - - const docSize = editor.state.doc.content.size; - const from = Math.min(selection.from, docSize); - const to = Math.min(selection.to, docSize); - if (from < to) { - editor.commands.setTextSelection({ from, to }); - const text = editor.state.doc.textBetween(from, to, ' '); - selectedContent = text ? { text, from, to } : null; - } else { - selectedContent = null; - } - - console.info('[note-chat] external note event applied', { - noteId: _note.id, - reason: 'content', - eventUpdatedAt: _note.updated_at, - contentLength - }); - return true; - }; - $: if (id) { init(); } @@ -367,21 +422,21 @@ function insertNoteVersion(note) { const current = { - json: note.data.content.json, - html: note.data.content.html, - md: note.data.content.md + json: activePage.content.json, + html: activePage.content.html, + md: activePage.content.md }; - const lastVersion = note.data.versions?.at(-1); + const lastVersion = activePage.versions?.at(-1); if (!lastVersion || !areContentsEqual(lastVersion, current)) { - note.data.versions = (note.data.versions ?? []).concat(current); + activePage.versions = (activePage.versions ?? []).concat(current); return true; } return false; } const generateTitleHandler = async () => { - const content = note.data.content.md; + const content = note.data.pages.map((p) => `${p.title}\n${p.content.md}`).join('\n\n'); const DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE = `### Task: Generate a concise title summarizing the content in the content's primary language. ### Guidelines: @@ -455,52 +510,52 @@ ${content} }; function setContentByVersion(versionIdx) { - if (!note.data.versions?.length) return; + if (!activePage.versions?.length) return; let idx = versionIdx; - if (idx === null) idx = note.data.versions.length - 1; // latest - const v = note.data.versions[idx]; + if (idx === null) idx = activePage.versions.length - 1; // latest + const v = activePage.versions[idx]; - note.data.content.json = v.json; - note.data.content.html = v.html; - note.data.content.md = v.md; + activePage.content.json = v.json; + activePage.content.html = v.html; + activePage.content.md = v.md; if (versionIdx === null) { - const lastVersion = note.data.versions.at(-1); - const currentContent = note.data.content; + const lastVersion = activePage.versions.at(-1); + const currentContent = activePage.content; if (areContentsEqual(lastVersion, currentContent)) { // remove the last version - note.data.versions = note.data.versions.slice(0, -1); + activePage.versions = activePage.versions.slice(0, -1); } } } // Navigation function versionNavigateHandler(direction) { - if (!note.data.versions || note.data.versions.length === 0) return; + if (!activePage.versions || activePage.versions.length === 0) return; if (versionIdx === null) { // Get latest snapshots - const lastVersion = note.data.versions.at(-1); - const currentContent = note.data.content; + const lastVersion = activePage.versions.at(-1); + const currentContent = activePage.content; if (!areContentsEqual(lastVersion, currentContent)) { // If the current content is different from the last version, insert a new version insertNoteVersion(note); - versionIdx = note.data.versions.length - 1; + versionIdx = activePage.versions.length - 1; } else { - versionIdx = note.data.versions.length; + versionIdx = activePage.versions.length; } } if (direction === 'prev') { if (versionIdx > 0) versionIdx -= 1; } else if (direction === 'next') { - if (versionIdx < note.data.versions.length - 1) versionIdx += 1; + if (versionIdx < activePage.versions.length - 1) versionIdx += 1; else versionIdx = null; // Reset to latest - if (versionIdx === note.data.versions.length - 1) { + if (versionIdx === activePage.versions.length - 1) { // If we reach the latest version, reset to null versionIdx = null; } @@ -509,86 +564,6 @@ ${content} setContentByVersion(versionIdx); } - const uploadFileHandler = async (file) => { - const tempItemId = uuidv4(); - const fileItem = { - type: 'file', - file: '', - id: null, - url: '', - name: file.name, - collection_name: '', - status: 'uploading', - size: file.size, - error: '', - itemId: tempItemId - }; - - if (fileItem.size == 0) { - toast.error($i18n.t('You cannot upload an empty file.')); - return null; - } - - files = [...files, fileItem]; - - try { - // If the file is an audio file, provide the language for STT. - let metadata = null; - if ( - (file.type.startsWith('audio/') || file.type.startsWith('video/')) && - $settings?.audio?.stt?.language - ) { - metadata = { - language: $settings?.audio?.stt?.language - }; - } - - // During the file upload, file content is automatically extracted. - const uploadedFile = await uploadFile(localStorage.token, file, metadata); - - if (uploadedFile) { - console.log('File upload completed:', uploadedFile); - - if (uploadedFile.error) { - console.warn('File upload warning:', uploadedFile.error); - toast.warning(uploadedFile.error); - } - - fileItem.status = 'uploaded'; - fileItem.file = await getFileById(localStorage.token, uploadedFile.id).catch((e) => { - toast.error(`${e}`); - return null; - }); - fileItem.id = uploadedFile.id; - fileItem.collection_name = - uploadedFile?.meta?.collection_name || uploadedFile?.collection_name; - - fileItem.url = `${uploadedFile.id}`; - - files = files.map((item) => (item?.itemId === tempItemId ? fileItem : item)); - } else { - files = files.filter((item) => item?.itemId !== tempItemId); - } - } catch (e) { - toast.error(`${e}`); - files = files.filter((item) => item?.itemId !== tempItemId); - } - - if (files.length > 0) { - note.data.files = files; - } else { - note.data.files = null; - } - - if (editor) { - editor.storage.files = files; - } - - changeDebounceHandler(); - - return fileItem; - }; - const compressImageHandler = async (imageUrl, settings = {}, config = {}) => { // Quick shortcut so we don’t do unnecessary work. const settingsCompression = settings?.imageCompression ?? false; @@ -625,7 +600,48 @@ ${content} return imageUrl; }; - const inputFileHandler = async (file) => { + const inputFileHandler = ( + file, + uploadEditor = editor, + pos = uploadEditor?.state.selection.from + ) => { + if (!uploadEditor || uploadEditor.isDestroyed || !file) return Promise.resolve(null); + // Keep the insertion point attached to the document while the upload is in flight. + let position = pos; + const trackPosition = ({ transaction }) => { + position = transaction.mapping.map(position); + }; + uploadEditor.on('transaction', trackPosition); + const pending = (async () => { + const uploading = toast.loading($i18n.t('Uploading...')); + try { + const item = await processInputFile(file); + if (!item || uploadEditor.isDestroyed) return null; + uploadEditor + .chain() + .insertContentAt( + position, + item.type === 'image' + ? { type: 'image', attrs: { src: item.url } } + : { type: 'fileAttachment', attrs: { id: item.id, name: item.name, size: item.size } } + ) + .focus() + .run(); + return item; + } catch (error) { + toast.error(String(error)); + return null; + } finally { + toast.dismiss(uploading); + uploadEditor.off('transaction', trackPosition); + } + })(); + pendingFileUploads.add(pending); + pending.finally(() => pendingFileUploads.delete(pending)); + return pending; + }; + + const processInputFile = async (file) => { console.log('Processing file:', { name: file.name, type: file.type, @@ -663,13 +679,6 @@ ${content} type: 'image', url: `${imageUrl}` }; - files = [...files, fileItem]; - note.data.files = files; - if (editor) { - editor.storage.files = files; - } - - changeDebounceHandler(); resolve(fileItem); } catch (err) { reject(err); @@ -681,41 +690,38 @@ ${content} return await uploadImagePromise; } else { - return await uploadFileHandler(file); + if (!file.size) throw new Error($i18n.t('You cannot upload an empty file.')); + const metadata = + (file.type.startsWith('audio/') || file.type.startsWith('video/')) && + $settings?.audio?.stt?.language + ? { language: $settings.audio.stt.language } + : null; + const uploaded = await uploadFile(localStorage.token, file, metadata); + if (!uploaded?.id) return null; + if (uploaded.error) toast.warning(uploaded.error); + return { type: 'file', id: uploaded.id, name: file.name, size: file.size }; } }; - const inputFilesHandler = async (inputFiles) => { - console.log('Input files handler called with:', inputFiles); - inputFiles.forEach(async (file) => { - await inputFileHandler(file); - }); + const inputFilesHandler = async ( + inputFiles, + uploadEditor = editor, + position = uploadEditor?.state.selection.from + ) => { + for (const file of inputFiles) { + await inputFileHandler(file, uploadEditor, position); + position = uploadEditor?.state.selection.to; + } }; const uploadNoteFilesHandler = () => { const input = document.createElement('input'); input.type = 'file'; input.multiple = true; + const uploadEditor = editor; + const position = uploadEditor?.state.selection.from; + input.onchange = () => inputFilesHandler(Array.from(input.files ?? []), uploadEditor, position); input.click(); - - input.onchange = async () => { - const inputFiles = Array.from(input.files ?? []); - for (const file of inputFiles) { - const fileItem = await inputFileHandler(file); - if (fileItem?.type === 'image' && editor) { - editor - .chain() - .insertContentAt(editor.state.selection.$anchor.pos, { - type: 'image', - attrs: { - src: `data://${fileItem.id}` - } - }) - .focus() - .run(); - } - } - }; }; const openNoteChat = async () => { @@ -825,20 +831,13 @@ ${content} noteChats = chats; }; - const downloadHandler = async (type) => { - console.log('downloadHandler', type); - if (type === 'txt') { - const blob = new Blob([note.data.content.md], { type: 'text/plain' }); - saveAs(blob, `${note.title}.txt`); - } else if (type === 'md') { - const blob = new Blob([note.data.content.md], { type: 'text/markdown' }); - saveAs(blob, `${note.title}.md`); - } else if (type === 'pdf') { - try { - await downloadPdf(note); - } catch (error) { - toast.error(`${error}`); - } + const downloadHandler = async (type, pageId: string | null = null) => { + try { + await flushActivePage(); + const saved = await getNoteById(localStorage.token, id); + await downloadNote(saved, type, pageId); + } catch (error) { + toast.error(String(error)); } }; @@ -909,60 +908,37 @@ ${content} }; const noteEventHandler = async (_note) => { - console.log('noteEventHandler', _note); - if (_note.id !== id) return; - - if (_note.updated_at && note?.updated_at && _note.updated_at < note.updated_at) { - console.info('[note-chat] external note event skipped', { - noteId: _note.id, - reason: 'stale-event', - eventUpdatedAt: _note.updated_at, - currentUpdatedAt: note.updated_at, - contentLength: _note.data?.content?.md?.length ?? _note.data?.content?.html?.length ?? 0 - }); + if (_note.id !== id || !note) return; + if (_note.page) { + const remote = _note.page; + const local = note.data.pages.find((p) => p.id === remote.id); + if (!local || remote.revision < local.revision || remote.generation < local.generation) + return; + if ( + remote.id === activePageId && + note.write_access && + remote.generation === local.generation + ) { + local.revision = remote.revision; + } else { + note.data.pages = note.data.pages.map((p) => (p.id === remote.id ? remote : p)); + if (remote.id === activePageId && !note.write_access) + editor?.commands.setContent( + remote.content.json || remote.content.html || marked.parse(remote.content.md) + ); + } return; } + if (_note.data?.pages) mergePages(_note.data.pages, _note.data.pages_revision); + if (_note.access_grants) note.access_grants = _note.access_grants; + if (_note.title && !titleInputFocused && !debounceTimeout) note.title = _note.title; - if (_note.access_grants && _note.access_grants !== note.access_grants) { - note.access_grants = _note.access_grants; - } - - // A pending local save holds newer files than an echo of an earlier save. - if (_note.data && 'files' in _note.data && !debounceTimeout) { - files = _note.data.files ?? []; - note.data.files = files.length > 0 ? files : null; - } - - if (_note.data?.content) { - await applyExternalNoteContent(_note); - } - - if (_note.title && _note.title) { - note.title = _note.title; - } - - if (_note.updated_at) { - note.updated_at = _note.updated_at; - } - - if (editor) { - editor.storage.files = files; - } - await tick(); - - for (const file of files) { - if (file.type === 'image' || (file?.content_type ?? '').startsWith('image/')) { - const e = new CustomEvent('data', { files: files }); - - const img = document.getElementById(`image:${file.id}`); - if (img) { - img.dispatchEvent(e); - } - } - } + if (_note.updated_at) note.updated_at = _note.updated_at; }; onMount(async () => { + showNoteTabs = localStorage.getItem(`note-tabs-open:${$user?.id}`) === 'true'; + noteTabsPreferenceReady = true; await tick(); selectedModelId = @@ -977,11 +953,10 @@ ${content} }); onDestroy(() => { - console.log('destroy'); + loadGeneration++; + $socket?.emit('note:leave', { note_id: note?.id }); + if (debounceTimeout) clearTimeout(debounceTimeout); $socket?.off('events:note', noteEventHandler); - if (pendingNoteEventTimer) { - clearTimeout(pendingNoteEventTimer); - } const dropzoneElement = document.getElementById('note-editor'); @@ -1004,7 +979,7 @@ ${content} -{#if note} +{#if note && activePage} 0) { - await uploadFileHandler(files[0]); + await inputFileHandler(files[0]); } }; }} @@ -1257,8 +1232,8 @@ ${content} }} onCopyToClipboard={async () => { const res = await copyToClipboard( - note.data.content.md, - note.data.content.html, + activePage.content.md, + activePage.content.html, true ).catch((error) => { toast.error(`${error}`); @@ -1275,7 +1250,7 @@ ${content} isPinned={$pinnedNotes.some((n) => n.id === note.id)} onPin={async () => { await toggleNotePinnedStatusById(localStorage.token, note.id); - note = await getNoteById(localStorage.token, note.id); + note.is_pinned = !note.is_pinned; pinnedNotes.set(await getPinnedNoteList(localStorage.token).catch(() => [])); }} > @@ -1320,8 +1295,25 @@ ${content} }} >
+
+ +
@@ -1376,135 +1368,124 @@ ${content}
-
- {#if noteAttachmentFiles.length > 0} -
- {#each noteAttachmentFiles as file, fileIdx (file?.id ?? file?.itemId ?? file?.url ?? fileIdx)} - { - files = files.filter((item) => item !== file); - note.data.files = files.length > 0 ? files : null; - if (editor) { - editor.storage.files = files; - } - changeDebounceHandler(); - }} - /> - {/each} -
- {/if} - - {#key autoFormat} - { - const { from, to } = editor.state.selection; - const selectedText = editor.state.doc.textBetween(from, to, ' '); - - if (selectedText.length === 0) { - selectedContent = null; - } else { - selectedContent = { - text: selectedText, - from: from, - to: to - }; - } + {#if previousPage} +
+ {$i18n.t( + 'A page changed elsewhere. Your previous text is available to download.' + )} + + +
+ {/if} +
+ + (showNoteTabs = false)} + pages={note.data.pages.map((page) => + page.id === 'main' && page.inherit_note_title !== false + ? { ...page, title: note.title || $i18n.t('Untitled') } + : page + )} + activeId={activePageId} + editable={note.write_access} + busy={pageBusy} + onSelect={async (pageId) => { + await selectPage(pageId); + if ($mobile) showNoteTabs = false; }} - onChange={(content) => { - lastLocalContentChangeAt = Date.now(); - note.data.content.html = content.html; - note.data.content.md = content.md; - }} - fileHandler={true} - onFileDrop={(currentEditor, files, pos) => { - files.forEach(async (file) => { - const fileItem = await inputFileHandler(file).catch((error) => { - return null; - }); - - if (fileItem?.type === 'image') { - // If the file is an image, insert it directly - currentEditor - .chain() - .insertContentAt(pos, { - type: 'image', - attrs: { - src: `data://${fileItem.id}` - } - }) - .focus() - .run(); - } - }); - }} - onFilePaste={() => {}} - on:paste={async (e) => { - e = e.detail.event || e; - const clipboardData = e.clipboardData || window.clipboardData; - console.log('Clipboard data:', clipboardData); - - if (clipboardData && clipboardData.items) { - console.log('Clipboard data items:', clipboardData.items); - for (const item of clipboardData.items) { - console.log('Clipboard item:', item); - if (item.type.indexOf('image') !== -1) { - const blob = item.getAsFile(); - const fileItem = await inputFileHandler(blob); - - if (editor) { - editor - ?.chain() - .insertContentAt(editor.state.selection.$anchor.pos, { - type: 'image', - attrs: { - src: `data://${fileItem.id}` // Use data URI for the image - } - }) - .focus() - .run(); - } - } else if (item?.kind === 'file') { - const file = item.getAsFile(); - await inputFileHandler(file); - e.preventDefault(); - } - } - } + onAction={pageAction} + onCopyLink={async (pageId) => { + await copyToClipboard( + `${window.location.origin}/notes/${id}?page=${encodeURIComponent(pageId)}` + ); + toast.success($i18n.t('Copied link to clipboard')); }} + onDownload={(pageId, format) => downloadHandler(format, pageId)} /> - {/key} + +
+ {#each [activePage] as renderedPage (`${note.id}:${renderedPage.id}:${renderedPage.generation}:${autoFormat}`)} + (editor = event.detail)} + id={`note-${note.id}-${renderedPage.id}`} + className="input-prose-sm px-0.5 flex-1 min-h-[12rem]" + json={true} + bind:value={renderedPage.content.json} + html={editorHtml} + documentId={`note:${note.id}:page:${renderedPage.id}:${renderedPage.generation}`} + collaboration={true} + socket={$socket} + user={$user} + dragHandle={true} + link={true} + image={true} + attachments={true} + placeholder={$i18n.t('Write something...')} + editable={versionIdx === null && note?.write_access} + onSelectionUpdate={({ editor }) => { + const { from, to } = editor.state.selection; + const selectedText = editor.state.doc.textBetween(from, to, ' '); + + if (selectedText.length === 0) { + selectedContent = null; + } else { + selectedContent = { + text: selectedText, + from: from, + to: to + }; + } + }} + onChange={(content) => { + renderedPage.content.json = content.json; + renderedPage.content.html = content.html; + renderedPage.content.md = content.md; + }} + fileHandler={true} + onFileDrop={(currentEditor, files, pos) => + inputFilesHandler(files, currentEditor, pos)} + onFilePaste={() => {}} + on:paste={(event) => { + const e = event.detail.event || event; + const pasted = Array.from(e.clipboardData?.files ?? []); + if (pasted.length) { + e.preventDefault(); + inputFilesHandler(pasted); + } + }} + /> + {/each} +
{/if} @@ -1525,7 +1506,7 @@ ${content} }} onConfirm={(data) => { if (data?.file) { - uploadFileHandler(data?.file); + inputFileHandler(data?.file); } recording = false; @@ -1549,6 +1530,9 @@ ${content} embeddedDraftKey={noteChatDraftKey} suggestedPrompts={noteChatSuggestedPrompts} selectedText={selectedContent?.text ?? ''} + notePageId={activePageId} + noteFiles={noteAttachmentFiles} + onBeforeNoteSubmit={flushActivePage} onInsertToNote={note?.write_access ? insertHandler : null} onNewEmbeddedChat={createNoteChat} onCreateEmbeddedChat={createNoteChatOnFirstMessage} diff --git a/src/lib/components/notes/NotePanel.svelte b/src/lib/components/notes/NotePanel.svelte index acf0781e8c..c232b5b175 100644 --- a/src/lib/components/notes/NotePanel.svelte +++ b/src/lib/components/notes/NotePanel.svelte @@ -5,10 +5,16 @@ import ResizableSidePanel from '../common/ResizableSidePanel.svelte'; export let show = false; + export let side: 'left' | 'right' = 'right'; + export let panelWidth = 350; + export let minWidth = 350; + export let closeOnDragBelowMinWidth = true; + export let resizerId = 'controls-resizer'; + export let storageKey = ''; + export let floating = false; let mediaQuery: MediaQueryList; let largeScreen = false; - let panelWidth = 350; const handleMediaQuery = (e: MediaQueryListEvent | MediaQueryList) => { largeScreen = e.matches; @@ -42,14 +48,20 @@
diff --git a/src/lib/components/notes/NoteTabMenu.svelte b/src/lib/components/notes/NoteTabMenu.svelte new file mode 100644 index 0000000000..0cf02f8d86 --- /dev/null +++ b/src/lib/components/notes/NoteTabMenu.svelte @@ -0,0 +1,74 @@ + + + + +
+ + {#if editable} + + + {#if page.id !== 'main'} + + + + {/if} + {/if} +
+ + {#each ['md', 'txt', 'pdf'] as format} + + {/each} + {#if editable && page.id !== 'main'} +
+ + {/if} +
+
+
diff --git a/src/lib/components/notes/NoteTabs.svelte b/src/lib/components/notes/NoteTabs.svelte new file mode 100644 index 0000000000..ded48ed721 --- /dev/null +++ b/src/lib/components/notes/NoteTabs.svelte @@ -0,0 +1,385 @@ + + +
+
+ {$i18n.t('Pages')} + + +
+ +
+
+ {#each rows as { page, depth, hasChildren, position, siblings, path } (page.id)} +
+ {#if hasChildren} + + {:else}{/if} + {#if renaming === page.id} + { + if (event.isComposing) return; + if (event.key === 'Enter') { + event.preventDefault(); + commitRename(); + } + if (event.key === 'Escape') renaming = ''; + }} + /> + {:else} + + {/if} + {#if editable} + + {/if} + { + deleting = page; + confirmDelete = true; + }} + className={activeId === page.id + ? '' + : 'sm:opacity-0 sm:group-hover:opacity-100 sm:group-focus-within:opacity-100'} + /> +
+ {/each} +
+ {#if editable} + + {/if} +
+
+ + deleting && onAction({ action: 'delete', page_id: deleting.id })} +> +
+ {$i18n.t('Delete "{{title}}"? This cannot be undone.', { title: deleting?.title ?? '' })} + {#if deleting && pages.some((page) => page.parent_id === deleting.id)}

+ {$i18n.t('Its subpages will be kept and moved up one level.')} +

{/if} +
+
+ + + moving && + moveParent !== (moving.parent_id ?? '') && + onAction({ action: 'move', page_id: moving.id, parent_id: moveParent || null })} +> +
+ {$i18n.t('Choose a parent page. Subpages move with this page.')} +
+ +
+ + diff --git a/src/lib/components/notes/Notes.svelte b/src/lib/components/notes/Notes.svelte index 6a99404923..9238bd2cf4 100644 --- a/src/lib/components/notes/Notes.svelte +++ b/src/lib/components/notes/Notes.svelte @@ -38,7 +38,7 @@ getPinnedNoteList } from '$lib/apis/notes'; import { capitalizeFirstLetter, copyToClipboard, formatNumber, getTimeRange } from '$lib/utils'; - import { downloadPdf, createNoteHandler } from './utils'; + import { downloadNote, createNoteHandler } from './utils'; import EllipsisHorizontal from '../icons/EllipsisHorizontal.svelte'; import GarbageBin from '../icons/GarbageBin.svelte'; @@ -95,18 +95,10 @@ if (!note) return; - if (type === 'txt') { - const blob = new Blob([note.data.content.md], { type: 'text/plain' }); - saveAs(blob, `${note.title}.txt`); - } else if (type === 'md') { - const blob = new Blob([note.data.content.md], { type: 'text/markdown' }); - saveAs(blob, `${note.title}.md`); - } else if (type === 'pdf') { - try { - await downloadPdf(note); - } catch (error) { - toast.error(`${error}`); - } + try { + await downloadNote(note, type); + } catch (error) { + toast.error(String(error)); } }; @@ -204,6 +196,11 @@ init(); } + const noteUrl = (note) => + query && note.data?.page_id + ? `/notes/${note.id}?page=${encodeURIComponent(note.data.page_id)}&search=${encodeURIComponent(query)}` + : `/notes/${note.id}`; + const getItemsPage = async () => { itemsLoading = true; @@ -621,13 +618,13 @@ role="presentation" on:click={(e) => { if (e.target instanceof Element && e.target.closest('a')) return; - goto(`/notes/${note.id}`); + goto(noteUrl(note)); }} >
@@ -762,7 +759,7 @@ class="group relative flex h-26 min-w-0 w-full flex-col rounded-md border border-black/[0.06] bg-gray-50/40 p-2 text-left transition-colors duration-75 hover:bg-gray-50/40 focus-within:bg-gray-50/40 dark:border-white/[0.06] dark:bg-gray-900 dark:hover:bg-white/4 dark:focus-within:bg-white/4" >
- + - +
diff --git a/src/lib/components/notes/utils.ts b/src/lib/components/notes/utils.ts index 74b0bddf05..a8c1f3aa40 100644 --- a/src/lib/components/notes/utils.ts +++ b/src/lib/components/notes/utils.ts @@ -3,6 +3,60 @@ import { toast } from 'svelte-sonner'; import { createNewNote } from '$lib/apis/notes'; import { safeImageUrl } from '$lib/utils/safeImageUrl'; +import { marked } from 'marked'; +// @ts-expect-error The installed file-saver package has no type declarations. +import fileSaver from 'file-saver'; +import type { NoteContent, NotePage, NotePageOperation } from '$lib/apis/notes'; + +export const downloadNote = async ( + note: { title: string; data: { pages?: NotePage[]; content: NoteContent; files?: any[] } }, + format: string, + pageId: string | null = null +) => { + const pages = ( + note.data.pages ?? [ + { + id: 'main', + title: note.title, + inherit_note_title: true, + content: note.data.content, + files: note.data.files + } + ] + ).map((page) => + page.id === 'main' && page.inherit_note_title !== false ? { ...page, title: note.title } : page + ); + const paths = new Map(tabRows(pages).map(({ page, path }) => [page.id, path])); + const selected = pageId ? pages.filter((page) => page.id === pageId) : pages; + if (!selected.length) throw new Error('Page no longer exists'); + const title = pageId && pageId !== 'main' ? `${note.title} - ${selected[0].title}` : note.title; + const md = + selected.length === 1 + ? selected[0].content.md + : selected.map((page) => `## ${paths.get(page.id)}\n\n${page.content.md}`).join('\n\n'); + if (format !== 'pdf') { + fileSaver.saveAs( + new Blob([md], { type: format === 'md' ? 'text/markdown' : 'text/plain' }), + `${title}.${format}` + ); + return; + } + const html = selected + .map((page) => { + const heading = document.createElement('h2'); + heading.textContent = paths.get(page.id) ?? page.title; + return `
${selected.length > 1 ? heading.outerHTML : ''}${page.content.html || marked.parse(page.content.md || '')}
`; + }) + .join(''); + await downloadPdf({ + ...note, + title, + data: { + ...note.data, + content: { html, md } + } + }); +}; export const downloadPdf = async (note) => { const [{ default: jsPDF }, { default: html2canvas }] = await Promise.all([ @@ -74,6 +128,9 @@ export const downloadPdf = async (note) => { const pagePixelHeight = Math.floor((virtualWidth * pageHeightMM) / pageWidthMM); const rootTop = node.getBoundingClientRect().top; const contentHeight = Math.ceil(node.getBoundingClientRect().height); + const pageBoundaries = Array.from(node.querySelectorAll('[data-note-page]')) + .slice(1) + .map((element) => Math.floor(element.getBoundingClientRect().top - rootTop)); const blocks = []; const trackedElements = new Set(); @@ -105,7 +162,8 @@ export const downloadPdf = async (note) => { let page = 0; while (offsetY < contentHeight) { - const sliceHeight = Math.min(pagePixelHeight, contentHeight - offsetY); + const nextBoundary = pageBoundaries.find((top) => top > offsetY) ?? contentHeight; + const sliceHeight = Math.min(pagePixelHeight, contentHeight - offsetY, nextBoundary - offsetY); const sliceBlocks = blocks.filter( (block) => block.bottom > offsetY && block.top < offsetY + sliceHeight ); @@ -202,3 +260,147 @@ export const createNoteHandler = async (title: string, md?: string, html?: strin return res; } }; + +type Tab = Pick; + +export function tabRows(pages: T[], collapsed = new Set()) { + const children = new Map(); + for (const page of pages) { + const parent = page.parent_id ?? null; + if (!children.has(parent)) children.set(parent, []); + children.get(parent)!.push(page); + } + const rows: { + page: T; + depth: number; + path: string; + hasChildren: boolean; + position: number; + siblings: number; + }[] = []; + const stack = (children.get(null) ?? []) + .map((page, index, roots) => ({ + page, + depth: 0, + path: page.title, + position: index + 1, + siblings: roots.length + })) + .reverse(); + while (stack.length) { + const row = stack.pop()!; + const nested = children.get(row.page.id) ?? []; + rows.push({ ...row, hasChildren: nested.length > 0 }); + if (!collapsed.has(row.page.id)) { + stack.push( + ...nested + .map((page, index) => ({ + page, + depth: row.depth + 1, + path: `${row.path} / ${page.title}`, + position: index + 1, + siblings: nested.length + })) + .reverse() + ); + } + } + return rows; +} + +export function tabAncestors(pages: Tab[], id: string) { + const lookup = new Map(pages.map((page) => [page.id, page])); + const ancestors: string[] = []; + let parent = lookup.get(id)?.parent_id; + while (parent && !ancestors.includes(parent)) { + ancestors.unshift(parent); + parent = lookup.get(parent)?.parent_id; + } + return ancestors; +} + +export function tabBranchIds(pages: Tab[], id: string) { + const children = new Map(); + for (const page of pages) { + if (page.parent_id) { + if (!children.has(page.parent_id)) children.set(page.parent_id, []); + children.get(page.parent_id)!.push(page.id); + } + } + const ids = new Set(); + const stack = [id]; + while (stack.length) { + const next = stack.pop()!; + if (ids.has(next)) continue; + ids.add(next); + stack.push(...(children.get(next) ?? [])); + } + return ids; +} + +export function siblingMove( + pages: Tab[], + id: string, + direction: number +): Omit | null { + const page = pages.find((page) => page.id === id); + if (!page || page.id === 'main') return null; + const parent_id = page.parent_id ?? null; + const siblings = pages.filter( + (page) => page.id !== 'main' && (page.parent_id ?? null) === parent_id + ); + const index = siblings.findIndex((page) => page.id === id); + const next = index + direction; + if (next < 0 || next >= siblings.length) return null; + return { + action: 'move', + page_id: id, + parent_id, + before_id: siblings[direction < 0 ? next : next + 1]?.id ?? null + }; +} + +export type PageDropPosition = 'before' | 'inside' | 'after'; + +export function pageDropMove( + pages: Tab[], + id: string, + targetId: string, + position: PageDropPosition +): Omit | null { + const target = pages.find((page) => page.id === targetId); + if ( + id === 'main' || + !pages.some((page) => page.id === id) || + !target || + tabBranchIds(pages, id).has(targetId) || + (targetId === 'main' && position === 'before') + ) + return null; + const parent_id = position === 'inside' ? targetId : (target.parent_id ?? null); + const siblings = pages.filter((page) => (page.parent_id ?? null) === parent_id && page.id !== id); + return { + action: 'move', + page_id: id, + parent_id, + before_id: + position === 'before' + ? targetId + : position === 'after' + ? (siblings[siblings.findIndex((page) => page.id === targetId) + 1]?.id ?? null) + : null + }; +} + +export function contentFiles(content: NoteContent | undefined) { + const files = new Map(); + const stack = content?.json ? [content.json] : []; + while (stack.length) { + const node = stack.pop(); + if (node?.type === 'fileAttachment' && node.attrs?.id) { + files.set(node.attrs.id, { ...node.attrs, type: 'file' }); + } + stack.push(...(node?.content ?? []).slice().reverse()); + } + return [...files.values()]; +} From e3ad014fb250c663a124ada0046c4017b85aabd6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 10:14:11 +0900 Subject: [PATCH 42/98] refac --- backend/open_webui/socket/main.py | 130 ++++++++++++++++-- backend/open_webui/socket/utils.py | 3 +- .../components/common/ChatParticipants.svelte | 103 +++++++++----- .../components/common/RichTextInput.svelte | 25 ++++ .../common/RichTextInput/Collaboration.ts | 41 +++++- .../common/RichTextInput/FileAttachment.ts | 69 +++++++++- src/lib/components/notes/NoteEditor.svelte | 90 +++++++++--- 7 files changed, 391 insertions(+), 70 deletions(-) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 99931b4e06..1338308fb6 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -274,6 +274,46 @@ async def publish_chat_presence(chat_id: str): log.exception('Failed to publish presence for chat %s', chat_id) +async def publish_note_presence(note_id: str): + lock = ( + REDIS.lock( + f'{REDIS_KEY_PREFIX}:note:{note_id}:presence:lock', + timeout=WEBSOCKET_REDIS_LOCK_TIMEOUT, + blocking_timeout=WEBSOCKET_REDIS_LOCK_TIMEOUT, + ) + if REDIS is not None + else SOCKET_EVENT_LOCKS.setdefault(('note', note_id), asyncio.Lock()) + ) + async with lock, asyncio.timeout(WEBSOCKET_REDIS_LOCK_TIMEOUT / 2): + now = time.time() + people = {} + for batch in get_session_pool_batches(): + for _, session in batch: + if ( + not session + or note_id not in session.get('note_ids', []) + or now - session.get('last_seen_at', 0) > SESSION_POOL_TIMEOUT + ): + continue + location = session.get('note_locations', {}).get(note_id, {}) + previous = people.get(session['id']) + if previous is None or location.get('updated_at', 0) > previous.get('updated_at', 0): + people[session['id']] = {**location, 'id': session['id'], 'name': session.get('name', '')} + if REDIS is not None and not await lock.owned(): + return + await sio.emit( + 'note:presence', + {'note_id': note_id, 'users': sorted(people.values(), key=lambda person: person['id'])}, + room=f'note:{note_id}', + ) + + +async def remove_document_session(sid: str): + for document_id in await YDOC_MANAGER.remove_user_from_all_documents(sid): + async with YDOC_MANAGER.lock(document_id): + await sio.leave_room(sid, f'doc_{document_id}') + + async def periodic_session_pool_cleanup(): """Reap orphaned SESSION_POOL entries that missed heartbeats (e.g. crashed instance).""" retry_delay = random.uniform(WEBSOCKET_REDIS_LOCK_TIMEOUT / 2, WEBSOCKET_REDIS_LOCK_TIMEOUT) @@ -306,6 +346,12 @@ async def periodic_session_pool_cleanup(): if sid in expired for chat_id in entry.get('chat_ids', []) } + note_ids = { + note_id + for sid, entry in batch + if sid in expired + for note_id in entry.get('note_ids', []) + } if WEBSOCKET_MANAGER == 'redis': SESSION_POOL.delete_many(*expired) else: @@ -315,8 +361,13 @@ async def periodic_session_pool_cleanup(): if sid in expired: for chat_id in entry.get('chat_ids', []): await sio.leave_room(sid, f'chat:{chat_id}') + for note_id in entry.get('note_ids', []): + await sio.leave_room(sid, f'note:{note_id}') + await remove_document_session(sid) for chat_id in chat_ids: await publish_chat_presence(chat_id) + for note_id in note_ids: + await publish_note_presence(note_id) await asyncio.sleep(0) # don't hold the loop for the whole sweep next_cleanup_at = time.monotonic() + SESSION_POOL_TIMEOUT @@ -500,7 +551,15 @@ async def leave_room_for_users(room: str, user_ids: list[str]): """Make all sessions of each user leave a room, including sessions on other workers.""" for sid in get_session_ids_by_user_ids(user_ids): try: - await sio.leave_room(sid, room) + if room.startswith('doc_'): + document_id = room.removeprefix('doc_') + async with YDOC_MANAGER.lock(document_id): + await sio.leave_room(sid, room) + await YDOC_MANAGER.remove_user(document_id, sid) + elif room.startswith('note:'): + await leave_note(sid, {'note_id': room.removeprefix('note:')}) + else: + await sio.leave_room(sid, room) except Exception as e: log.debug('Failed to make session %s leave room %s: %s', sid, room, e) @@ -603,7 +662,7 @@ async def user_join(sid, data): 'last_seen_at': int(time.time()), } - SESSION_POOL[sid] = {**socket_user, 'chat_ids': (SESSION_POOL.get(sid) or {}).get('chat_ids', [])} + SESSION_POOL[sid] = {**(SESSION_POOL.get(sid) or {}), **socket_user} await sio.save_session(sid, {'user': socket_user, 'token': auth['token']}) LOCAL_AUTHENTICATED_SIDS.add(sid) await sio.enter_room(sid, f'user:{user.id}') @@ -666,8 +725,8 @@ async def heartbeat(sid, data): user = await get_socket_session_user(sid) if user: SESSION_POOL[sid] = { + **(SESSION_POOL.get(sid) or {}), **user, - 'chat_ids': (SESSION_POOL.get(sid) or {}).get('chat_ids', []), 'last_seen_at': int(time.time()), } await Users.update_last_active_by_id(user['id']) @@ -734,6 +793,10 @@ async def join_note(sid, data): log.debug('Joining note %s for user %s', note.id, user.id) await sio.enter_room(sid, f'note:{note.id}') + session = SESSION_POOL.get(sid) + if session: + SESSION_POOL[sid] = {**session, 'note_ids': list(set(session.get('note_ids', [])) | {note.id})} + await publish_note_presence(note.id) @sio.on('note:leave') @@ -741,6 +804,16 @@ async def leave_note(sid, data): note_id = data.get('note_id') if isinstance(note_id, str): await sio.leave_room(sid, f'note:{note_id}') + session = SESSION_POOL.get(sid) + if session: + locations = dict(session.get('note_locations', {})) + locations.pop(note_id, None) + SESSION_POOL[sid] = { + **session, + 'note_ids': [id for id in session.get('note_ids', []) if id != note_id], + 'note_locations': locations, + } + await publish_note_presence(note_id) @sio.on('events:channel') @@ -959,8 +1032,8 @@ async def ydoc_document_join(sid, data): log.error(f'User {user.get("id")} does not have access to note {note_id}') return - user_id = data.get('user_id', sid) - user_name = data.get('user_name', 'Anonymous') + user_id = user['id'] + user_name = user.get('name', '') user_color = data.get('user_color', '#000000') if ( @@ -975,6 +1048,17 @@ async def ydoc_document_join(sid, data): # Join Socket.IO room await sio.enter_room(sid, f'doc_{document_id}') + if document_id.startswith('note:'): + session = SESSION_POOL.get(sid) + if session: + SESSION_POOL[sid] = { + **session, + 'note_locations': { + **session.get('note_locations', {}), + note_id: {'page_id': page['id'], 'document_id': document_id, 'updated_at': time.time()}, + }, + } + await publish_note_presence(note_id) # Get the Yjs document state ydoc = Y.Doc() @@ -1151,7 +1235,9 @@ async def yjs_document_update(sid, data): snapshot = data.get('data') if isinstance(snapshot, dict) and 'content' in snapshot: editor = await Users.get_user_by_id(user['id']) - if not editor or not await has_access_to_note_files(note, get_content_files(snapshot['content']), editor): + if not editor or not await has_access_to_note_files( + note, get_content_files(snapshot['content']), editor + ): await sio.emit('error', {'message': 'Cannot attach files you cannot access'}, room=sid) return @@ -1270,6 +1356,29 @@ async def yjs_awareness_update(sid, data): if room not in sio.rooms(sid): # must have joined the document first return update = data['update'] + if document_id.startswith('note:'): + note_id = document_id.split(':')[1] + session = SESSION_POOL.get(sid) + location = (session or {}).get('note_locations', {}).get(note_id) + cursor = data.get('cursor') + position = data.get('cursor_position') + if ( + location + and location.get('document_id') == document_id + and isinstance(cursor, dict) + and isinstance(cursor.get('head'), dict) + and len(dumps_bytes(cursor)) <= 1024 + and isinstance(position, int) + and 0 <= position <= 100_000_000 + ): + SESSION_POOL[sid] = { + **session, + 'note_locations': { + **session.get('note_locations', {}), + note_id: {**location, 'cursor': cursor, 'cursor_position': position, 'updated_at': time.time()}, + }, + } + await publish_note_presence(note_id) # Broadcast to the room; user_id is the authenticated identity, not client-supplied await sio.emit( @@ -1289,7 +1398,11 @@ async def disconnect(sid, reason=None): LOCAL_AUTHENTICATED_SIDS.discard(sid) if sid in SESSION_POOL: chat_ids = (SESSION_POOL.get(sid) or {}).get('chat_ids', []) + note_ids = (SESSION_POOL.get(sid) or {}).get('note_ids', []) del SESSION_POOL[sid] + for note_id in note_ids: + await sio.leave_room(sid, f'note:{note_id}') + await publish_note_presence(note_id) for chat_id in chat_ids: await sio.leave_room(sid, f'chat:{chat_id}') await publish_chat_presence(chat_id) @@ -1303,10 +1416,7 @@ async def disconnect(sid, reason=None): else: USAGE_POOL[model_id] = connections - await YDOC_MANAGER.remove_user_from_all_documents(sid) - else: - pass - # print(f"Unknown session ID {sid} disconnected") + await remove_document_session(sid) async def redis_event_listener() -> None: diff --git a/backend/open_webui/socket/utils.py b/backend/open_webui/socket/utils.py index 65234ac0e5..9fd372f930 100644 --- a/backend/open_webui/socket/utils.py +++ b/backend/open_webui/socket/utils.py @@ -393,7 +393,7 @@ class YdocManager: if not self._users[document_id]: del self._users[document_id] - async def remove_user_from_all_documents(self, user_id: str): + async def remove_user_from_all_documents(self, user_id: str) -> list[str]: if self._redis: session_key = f'{self._redis_key_prefix}:session:{user_id}:documents' document_ids = await self._redis.smembers(session_key) @@ -405,6 +405,7 @@ class YdocManager: await self.remove_user(document_id, user_id) if not await self.get_users(document_id) and not await has_active_tasks(self._redis, document_id): await self.clear_document(document_id) + return list(document_ids) async def clear_document(self, document_id: str): if self._redis: diff --git a/src/lib/components/common/ChatParticipants.svelte b/src/lib/components/common/ChatParticipants.svelte index 2cad02b461..58a70475b3 100644 --- a/src/lib/components/common/ChatParticipants.svelte +++ b/src/lib/components/common/ChatParticipants.svelte @@ -13,6 +13,7 @@ export let activeProfileId: string | null = null; export let overflowOpen = false; export let mode: 'contributors' | 'presence' = 'contributors'; + export let onSelect: ((person: ChatParticipant) => void) | null = null; // Preserve the base overflow label alongside its generated plural forms. // $i18n.t('Show all {{count}} contributors'); @@ -54,25 +55,40 @@ : '-space-x-1'} rtl:space-x-reverse" > {#each people.slice(0, 3) as person (person.id)} -
- !overflowOpen && activeProfileId === person.id, - (open) => setProfileOpen(person.id, open) - } - > - {@render avatar( - person, - `${avatarClass} bg-white dark:bg-gray-900 ${ - mode === 'presence' - ? `ring-2 ${['ring-red-400', 'ring-sky-400', 'ring-lime-500', 'ring-amber-400', 'ring-violet-400'][person.id.charCodeAt(0) % 5]}` - : 'ring-1 ring-white dark:ring-gray-900' - }` - )} - +
+ {#if onSelect} + + {:else} + !overflowOpen && activeProfileId === person.id, + (open) => setProfileOpen(person.id, open) + } + > + {@render avatar( + person, + `${avatarClass} bg-white dark:bg-gray-900 ${ + mode === 'presence' + ? `ring-2 ${['ring-red-400', 'ring-sky-400', 'ring-lime-500', 'ring-amber-400', 'ring-violet-400'][person.id.charCodeAt(0) % 5]}` + : 'ring-1 ring-white dark:ring-gray-900' + }` + )} + + {/if}
{/each}
@@ -80,9 +96,10 @@ {#if people.length > 3} (activeProfileId = null)}> - overflowOpen && activeProfileId === person.id, - (open) => setProfileOpen(person.id, open) - } - > - {@render avatar(person, 'size-6')} - - {person.name || $i18n.t('Unknown User')} - - + {#if onSelect} + + {:else} + overflowOpen && activeProfileId === person.id, + (open) => setProfileOpen(person.id, open) + } + > + {@render avatar(person, 'size-6')} + + {person.name || $i18n.t('Unknown User')} + + + {/if} {/each} diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index c1a021e8f8..bca16f05bf 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -423,6 +423,14 @@ $: serializeContent(richText); let provider: SocketIOCollaborationProvider | null = null; + export let cursorTarget = null; + $: if (cursorTarget && editor) { + const target = cursorTarget; + cursorTarget = null; + if (provider) provider.revealCursor(target); + else + editor.commands.focus(Math.min(target.cursor_position ?? 0, editor.state.doc.content.size)); + } export const flush = async () => { await tick(); await provider?.flush(); @@ -838,6 +846,23 @@ } }); + onMount(() => { + // Read-only viewers join for presence without starting the editing provider. + if (!collaboration || editable || !documentId || !socket || !user) return; + const presenceSocket = socket; + const presenceDocumentId = documentId; + const join = () => + presenceSocket.emit('ydoc:document:join', { document_id: presenceDocumentId }); + presenceSocket.on('connect', join); + if (presenceSocket.connected) join(); + return () => { + presenceSocket.off('connect', join); + if (presenceSocket.connected) { + presenceSocket.emit('ydoc:document:leave', { document_id: presenceDocumentId }); + } + }; + }); + onMount(async () => { content = value; diff --git a/src/lib/components/common/RichTextInput/Collaboration.ts b/src/lib/components/common/RichTextInput/Collaboration.ts index b1df24f69a..713ef6056e 100644 --- a/src/lib/components/common/RichTextInput/Collaboration.ts +++ b/src/lib/components/common/RichTextInput/Collaboration.ts @@ -7,7 +7,8 @@ import { yUndoPlugin, undo, redo, - prosemirrorJSONToYDoc + prosemirrorJSONToYDoc, + relativePositionToAbsolutePosition } from 'y-prosemirror'; import type { Socket } from 'socket.io-client'; import type { SessionUser } from '$lib/stores'; @@ -48,6 +49,38 @@ export class SocketIOCollaborationProvider { private editorContentGetter: EditorContentGetter | null = null; private listeners: Array<[string, (...args: any[]) => void]> = []; private contentSnapshotTimer: ReturnType | null = null; + private cursorTarget: any = null; + + public revealCursor(target: any) { + this.cursorTarget = target; + this.revealPendingCursor(); + } + + private revealPendingCursor() { + if (!this.synced || !this.editor || !this.cursorTarget) return; + const target = this.cursorTarget; + this.cursorTarget = null; + const editor = this.editor; + let position = target.cursor_position ?? 0; + try { + const state = ySyncPluginKey.getState(editor.state); + if (target.cursor?.head && state?.binding) { + position = + relativePositionToAbsolutePosition( + this.doc, + state.type, + Y.createRelativePositionFromJSON(target.cursor.head), + state.binding.mapping + ) ?? position; + } + } catch { + // A replaced document can no longer resolve the old relative cursor. + } + queueMicrotask(() => { + if (!editor.isDestroyed) + editor.commands.focus(Math.min(position, editor.state.doc.content.size)); + }); + } constructor( private readonly documentId: string, @@ -131,6 +164,7 @@ export class SocketIOCollaborationProvider { if (!state || !this.editor) return; Y.applyUpdate(this.doc, new Uint8Array(state), 'server'); this.synced = true; + this.revealPendingCursor(); if (!this.contentSnapshotTimer) this.sendContentSnapshot(); } ); @@ -252,6 +286,7 @@ export class SocketIOCollaborationProvider { } } this.synced = true; + this.revealPendingCursor(); } catch (error) { console.error('Error applying Yjs state:', error); @@ -318,7 +353,9 @@ export class SocketIOCollaborationProvider { this.socket.emit('ydoc:awareness:update', { document_id: this.documentId, user_id: this.socket.id, - update: Array.from(awarenessUpdate) + update: Array.from(awarenessUpdate), + cursor: this.awareness.getLocalState()?.cursor, + cursor_position: this.editor?.state.selection.head }); } } diff --git a/src/lib/components/common/RichTextInput/FileAttachment.ts b/src/lib/components/common/RichTextInput/FileAttachment.ts index 6046f040c3..61633892b8 100644 --- a/src/lib/components/common/RichTextInput/FileAttachment.ts +++ b/src/lib/components/common/RichTextInput/FileAttachment.ts @@ -1,7 +1,17 @@ import { Node } from '@tiptap/core'; +import { Plugin, PluginKey } from '@tiptap/pm/state'; +import { Decoration, DecorationSet } from '@tiptap/pm/view'; import { createClassComponent } from 'svelte/legacy'; import FileItem from '../FileItem.svelte'; +export const fileUploadsKey = new PluginKey('fileUploads'); + +const fileItemStyle = { + small: true, + className: 'w-56 max-w-full', + colorClassName: 'bg-gray-50/60 dark:bg-white/[0.03] border border-gray-100/80 dark:border-white/5' +}; + export default Node.create<{ context: Map }>({ name: 'fileAttachment', group: 'block', @@ -49,6 +59,58 @@ export default Node.create<{ context: Map }>({ renderText({ node }) { return node.attrs.name; }, + addProseMirrorPlugins() { + return [ + new Plugin({ + key: fileUploadsKey, + state: { + init: () => DecorationSet.empty, + apply: (transaction, decorations) => { + decorations = decorations.map(transaction.mapping, transaction.doc); + const action = transaction.getMeta(fileUploadsKey); + if (action?.add) { + const { id, pos, file } = action.add; + let component; + const placeholder = Decoration.widget( + pos, + (view) => { + const dom = document.createElement('div'); + dom.className = 'not-prose my-2 w-fit max-w-full'; + dom.setAttribute('aria-busy', 'true'); + component = createClassComponent({ + component: FileItem, + target: dom, + context: this.options.context, + props: { + ...fileItemStyle, + name: file.name, + size: file.size, + type: 'file', + loading: true, + dismissible: true + } + }); + component.$on('dismiss', () => { + view.dispatch(view.state.tr.setMeta(fileUploadsKey, { remove: id })); + }); + return dom; + }, + { id, side: -1, stopEvent: () => true, destroy: () => component?.$destroy() } + ); + decorations = decorations.add(transaction.doc, [placeholder]); + } + if (action?.remove) { + decorations = decorations.remove( + decorations.find(undefined, undefined, (spec) => spec.id === action.remove) + ); + } + return decorations; + } + }, + props: { decorations: (state) => fileUploadsKey.getState(state) } + }) + ]; + }, addNodeView() { return ({ node, editor, getPos }) => { const dom = document.createElement('div'); @@ -60,6 +122,7 @@ export default Node.create<{ context: Map }>({ target: dom, context: this.options.context, props: { + ...fileItemStyle, item: { ...node.attrs, type: 'file' }, name: node.attrs.name, type: 'file', @@ -67,11 +130,7 @@ export default Node.create<{ context: Map }>({ url: node.attrs.id, dismissible: editor.isEditable, edit: editor.isEditable, - small: true, - modal: true, - className: 'w-56 max-w-full', - colorClassName: - 'bg-gray-50/60 dark:bg-white/[0.03] border border-gray-100/80 dark:border-white/5' + modal: true } }); component.$on('dismiss', () => { diff --git a/src/lib/components/notes/NoteEditor.svelte b/src/lib/components/notes/NoteEditor.svelte index 8b82f40999..4a850af47e 100644 --- a/src/lib/components/notes/NoteEditor.svelte +++ b/src/lib/components/notes/NoteEditor.svelte @@ -70,12 +70,14 @@ import { deleteChatById } from '$lib/apis/chats'; import RichTextInput from '../common/RichTextInput.svelte'; + import { fileUploadsKey } from '../common/RichTextInput/FileAttachment'; import Spinner from '../common/Spinner.svelte'; import Mic from '../icons/Mic.svelte'; import VoiceRecording from '../chat/MessageInput/VoiceRecording.svelte'; import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; import AccessButton from '../common/AccessButton.svelte'; + import ChatParticipants from '../common/ChatParticipants.svelte'; import FilesOverlay from '../chat/MessageInput/FilesOverlay.svelte'; import RecordMenu from './RecordMenu.svelte'; @@ -129,6 +131,39 @@ let loadGeneration = 0; let pageScroll: Record = {}; $: activePage = note?.data?.pages?.find((p) => p.id === activePageId); + $: activeDocumentId = activePage + ? `note:${note.id}:page:${activePage.id}:${activePage.generation}` + : ''; + let presenceNoteId = ''; + let cursorTarget = null; + let liveParticipants: { + id: string; + name: string; + page_id?: string; + document_id?: string; + cursor?: any; + cursor_position?: number; + }[] = []; + const clearPresence = () => (liveParticipants = []); + $: if (presenceNoteId !== note?.id) { + presenceNoteId = note?.id; + clearPresence(); + } + const presenceEventHandler = (event: { note_id: string; users: typeof liveParticipants }) => { + if (!$socket?.connected || event.note_id !== note?.id) return; + liveParticipants = event.users.filter((person) => person.id !== $user?.id); + }; + const joinNote = () => { + if (note?.id) + $socket?.emit('note:join', { note_id: note.id, auth: { token: localStorage.token } }); + }; + const goToParticipant = async (person) => { + const target = liveParticipants.find((participant) => participant.id === person.id); + if (!target?.page_id || pageBusy) return; + await selectPage(target.page_id); + await tick(); + if (activePageId === target.page_id) cursorTarget = { ...target }; + }; $: if ( note?.id === id && $page.url.searchParams.get('page') && @@ -142,6 +177,7 @@ if (!target || target.id === activePageId) return; const body = document.getElementById('note-content-container'); if (body && activePageId) pageScroll[activePageId] = body.scrollTop; + cursorTarget = null; activePageId = target.id; selectedContent = null; versionIdx = null; @@ -360,14 +396,15 @@ note.access_grants = []; } - $socket?.emit('note:join', { - note_id: id, - auth: { - token: localStorage.token - } - }); $socket?.off('events:note', noteEventHandler); $socket?.on('events:note', noteEventHandler); + $socket?.off('note:presence', presenceEventHandler); + $socket?.on('note:presence', presenceEventHandler); + $socket?.off('disconnect', clearPresence); + $socket?.on('disconnect', clearPresence); + $socket?.off('connect', joinNote); + $socket?.on('connect', joinNote); + joinNote(); } else { goto('/'); return; @@ -606,21 +643,24 @@ ${content} pos = uploadEditor?.state.selection.from ) => { if (!uploadEditor || uploadEditor.isDestroyed || !file) return Promise.resolve(null); - // Keep the insertion point attached to the document while the upload is in flight. - let position = pos; - const trackPosition = ({ transaction }) => { - position = transaction.mapping.map(position); - }; - uploadEditor.on('transaction', trackPosition); + const id = uuidv4(); + // Keep upload UI local so unfinished files never enter saved or shared content. + uploadEditor.view.dispatch( + uploadEditor.state.tr.setMeta(fileUploadsKey, { add: { id, pos, file } }) + ); const pending = (async () => { - const uploading = toast.loading($i18n.t('Uploading...')); try { const item = await processInputFile(file); if (!item || uploadEditor.isDestroyed) return null; + const placeholder = fileUploadsKey + .getState(uploadEditor.state) + ?.find(undefined, undefined, (spec) => spec.id === id)[0]; + if (!placeholder) return null; uploadEditor .chain() + .setMeta(fileUploadsKey, { remove: id }) .insertContentAt( - position, + placeholder.from, item.type === 'image' ? { type: 'image', attrs: { src: item.url } } : { type: 'fileAttachment', attrs: { id: item.id, name: item.name, size: item.size } } @@ -632,8 +672,9 @@ ${content} toast.error(String(error)); return null; } finally { - toast.dismiss(uploading); - uploadEditor.off('transaction', trackPosition); + if (!uploadEditor.isDestroyed) { + uploadEditor.view.dispatch(uploadEditor.state.tr.setMeta(fileUploadsKey, { remove: id })); + } } })(); pendingFileUploads.add(pending); @@ -957,6 +998,9 @@ ${content} $socket?.emit('note:leave', { note_id: note?.id }); if (debounceTimeout) clearTimeout(debounceTimeout); $socket?.off('events:note', noteEventHandler); + $socket?.off('note:presence', presenceEventHandler); + $socket?.off('disconnect', clearPresence); + $socket?.off('connect', joinNote); const dropzoneElement = document.getElementById('note-editor'); @@ -1263,6 +1307,17 @@ ${content} + {#if liveParticipants.length > 0} +
+ +
+ {/if} + {#if note?.write_access} {#if $user?.permissions?.sharing?.notes || $user?.role === 'admin'}
@@ -1442,7 +1497,8 @@ ${content} json={true} bind:value={renderedPage.content.json} html={editorHtml} - documentId={`note:${note.id}:page:${renderedPage.id}:${renderedPage.generation}`} + documentId={activeDocumentId} + bind:cursorTarget collaboration={true} socket={$socket} user={$user} From 3febf25d845a9f310d1b53fcfac3fcbf5d28a3fb Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 02:19:19 +0100 Subject: [PATCH 43/98] fix: message ignores the Web Search toggle after switching models (#33275) After changing the model or adding a second one to compare, the Web Search toggle showed the new default but the next message still went out with the previous model's setting. A model without Web Search as a default feature could search, and one with it did not. The message now follows what the toggle shows. Fixes #33265 --- src/lib/components/chat/Chat.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index a1608ff27a..9f21f61616 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -368,6 +368,11 @@ let pendingWebSearchPrompt: string | null = null; let webSearchConfirmed = false; + // Before webSearchActive, so it sees the new defaults in the same update + $: if (!loading && modelDefaults && !equal(selectedModelIds, defaultsModelIds)) { + setDefaults(true); + } + $: { const currentModels = atSelectedModel?.id ? [atSelectedModel.id] : selectedModels; const allModelsSupportWebSearch = @@ -1103,10 +1108,6 @@ let modelDefaults: Record | null = null; let settingDefaults: Promise | null = null; - $: if (!loading && modelDefaults && !equal(selectedModelIds, defaultsModelIds)) { - setDefaults(true); - } - const setDefaults = async (preserveSelections = false) => { const modelIds = atSelectedModel ? [atSelectedModel.id] : [...selectedModels]; const id = $chatId; From 2c64ab5487bd76e87c0306f6295acd7c710445e7 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 02:19:33 +0100 Subject: [PATCH 44/98] fix: chat stops with no answer when an MCP server request fails mid-chat (#33272) When an MCP tool server could not be reached for a tool call (server restarted, connection reset by a proxy or load balancer, a request timing out), the whole chat was cancelled as if the user had pressed stop, and the log only said "Task was cancelled!". Now only that tool call fails, the model gets the connection error as the tool result and the reply finishes, and the underlying connection error is logged. The MCP SDK cancels whatever task opened the session when a single request fails, so each MCP session now runs in its own task instead of the chat's. Fixes #33268 --- backend/open_webui/main.py | 9 ---- backend/open_webui/utils/mcp/client.py | 73 ++++++++++++++------------ backend/open_webui/utils/tools.py | 1 - 3 files changed, 38 insertions(+), 45 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 37f168847f..ce3fe165a0 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1755,15 +1755,6 @@ async def chat_completion( # Clean up MCP clients. Each client is isolated so one # failure doesn't skip the rest. # - # NOTE: asyncio.wait_for() / asyncio.shield() must NOT be used - # here — they create new asyncio Tasks, which violate anyio - # cancel-scope task-ownership rules when the MCPClient's - # exit_stack contains anyio transport resources (streamable_http). - # Exiting those cancel scopes from the wrong task raises - # "Attempted to exit a cancel scope that isn't the current - # task's current cancel scope", which propagates as a - # BaseException through the finally block, discards the response - # return value, and surfaces as a 500 "No response returned." # MCPClient.disconnect() suppresses known transport teardown errors # while still propagating real task cancellation. try: diff --git a/backend/open_webui/utils/mcp/client.py b/backend/open_webui/utils/mcp/client.py index 15bd5ed46b..ee644ace2d 100644 --- a/backend/open_webui/utils/mcp/client.py +++ b/backend/open_webui/utils/mcp/client.py @@ -1,7 +1,6 @@ import asyncio import logging import math -from contextlib import AsyncExitStack from typing import Optional from urllib.parse import urlsplit @@ -67,7 +66,7 @@ class OAuthTokenAuth(httpx2.Auth): class MCPClient: def __init__(self, event_caller=None, server_name=''): self.client: Optional[Client] = None - self.exit_stack = None + self.session_task: Optional[asyncio.Task] = None self.event_caller = event_caller self.server_name = server_name self.instructions: Optional[str] = None @@ -108,26 +107,42 @@ class MCPClient: return ElicitResult(action='cancel') async def connect(self, url: str, headers: Optional[dict] = None, auth: Optional[httpx2.Auth] = None): - async with AsyncExitStack() as exit_stack: - try: - http_client = await exit_stack.enter_async_context(create_httpx_client(headers=headers, auth=auth)) + # A failed request makes the SDK cancel the task that opened the session, so it gets its own task. + connected = asyncio.get_running_loop().create_future() + self.session_task = asyncio.create_task(self.run_session(url, headers, auth, connected)) + try: + await connected + except BaseException: + await self.disconnect() + raise + async def run_session( + self, url: str, headers: Optional[dict], auth: Optional[httpx2.Auth], connected: asyncio.Future + ) -> None: + try: + async with create_httpx_client(headers=headers, auth=auth) as http_client: # mode='auto' (the default) probes server/discover for the stateless # 2026-07-28 protocol and falls back to the initialize handshake on # legacy servers. The read timeout bounds that handshake and every # later request that does not set its own; the SDK caps the probe itself. - self.client = await exit_stack.enter_async_context( - Client( - streamable_http_client(url, http_client=http_client), - read_timeout_seconds=MCP_INITIALIZE_TIMEOUT, - elicitation_callback=self.elicit if self.event_caller else None, - ) - ) - self.instructions = self.client.instructions - self.exit_stack = exit_stack.pop_all() - except Exception as e: - await self.disconnect() - raise e + async with Client( + streamable_http_client(url, http_client=http_client), + read_timeout_seconds=MCP_INITIALIZE_TIMEOUT, + elicitation_callback=self.elicit if self.event_caller else None, + ) as client: + self.client = client + self.instructions = client.instructions + connected.set_result(None) + await asyncio.sleep(math.inf) + except Exception as e: + if connected.done(): + log.exception("Lost connection to MCP server '%s'", self.server_name) + else: + connected.set_exception(e) + finally: + self.client = None + if not connected.done(): + connected.set_exception(RuntimeError('MCP client failed to connect.')) async def list_tool_specs(self) -> Optional[dict]: if not self.client: @@ -242,38 +257,26 @@ class MCPClient: This method is idempotent — calling it multiple times or on a client that was never connected is safe. """ - exit_stack = self.exit_stack - if exit_stack is None: + session_task = self.session_task + if session_task is None: return # Prevent double-close from concurrent callers - self.exit_stack = None + self.session_task = None self.client = None + session_task.cancel() try: - # IMPORTANT: Do NOT use asyncio.shield() or asyncio.wait_for() - # because they create a new asyncio task, which violates the MCP SDK's - # requirement that its TaskGroup be exited in the exact same task. - # ALSO do NOT use anyio.CancelScope(shield=True) or anyio.fail_after(), - # because they push a new cancel scope onto the task, violating LIFO - # order when aclose() attempts to exit the inner TaskGroup. - # We simply call aclose() directly. If the task is cancelled, the - # sockets will eventually be cleaned up by garbage collection. - await exit_stack.aclose() - except asyncio.CancelledError as exc: + await session_task + except asyncio.CancelledError: task = asyncio.current_task() if task is not None and task.cancelling(): raise - log.debug('MCPClient.disconnect() suppressed internal cancellation: %s', exc) - except RuntimeError as exc: - log.debug('MCPClient.disconnect() suppressed RuntimeError: %s', exc) except Exception as exc: log.debug('MCPClient.disconnect() error: %s', exc) async def __aenter__(self): - await self.exit_stack.__aenter__() return self async def __aexit__(self, exc_type, exc_value, traceback): - await self.exit_stack.__aexit__(exc_type, exc_value, traceback) await self.disconnect() diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index f523b6ea0d..faedc23853 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -257,7 +257,6 @@ async def connect_mcp_server( tool_specs = [spec for spec in tool_specs if is_string_allowed(spec['name'], function_name_filter_list)] return client, tool_specs except BaseException: - # MCP sessions must be closed in the same task that opened them. await client.disconnect() raise From 7f03b6e778374aca1eca4f8c6f29cbf8a8b1aeda Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 28 Oct 2026 10:25:04 +0900 Subject: [PATCH 45/98] refac --- backend/open_webui/models/folders.py | 1 + src/app.css | 15 +++--- .../common/RichTextInput/Collaboration.ts | 52 +++++++++++++++++++ 3 files changed, 60 insertions(+), 8 deletions(-) diff --git a/backend/open_webui/models/folders.py b/backend/open_webui/models/folders.py index 2349cfb491..828119440d 100644 --- a/backend/open_webui/models/folders.py +++ b/backend/open_webui/models/folders.py @@ -54,6 +54,7 @@ class FolderMetadataResponse(BaseModel): class FolderNameIdResponse(BaseModel): id: str + user_id: str name: str meta: Optional[FolderMetadataResponse] = None parent_id: Optional[str] = None diff --git a/src/app.css b/src/app.css index 07e9631d16..b7ba3c0155 100644 --- a/src/app.css +++ b/src/app.css @@ -757,10 +757,6 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before { @apply bg-transparent p-0 m-0 text-inherit; } -/* this is a rough fix for the first cursor position when the first paragraph is empty */ -.ProseMirror > .ProseMirror-yjs-cursor:first-child { - margin-top: 1rem; -} /* This gives the remote user caret. The colors are automatically overwritten*/ .ProseMirror-yjs-cursor { position: relative; @@ -773,17 +769,20 @@ html.high-contrast.dark .ProseMirror p.is-editor-empty:first-child::before { pointer-events: none; } /* This renders the username above the caret */ -.ProseMirror-yjs-cursor > div { - position: absolute; - top: -1.05em; - left: -1px; +.ProseMirror-yjs-cursor-label { font-size: 0.8125rem; + line-height: 1.25; background-color: rgb(250, 129, 0); user-select: none; color: white; padding-left: 0.125rem; padding-right: 0.125rem; white-space: nowrap; + pointer-events: none; +} + +.ProseMirror-yjs-cursor-label[data-popper-reference-hidden] { + opacity: 0; } body { diff --git a/src/lib/components/common/RichTextInput/Collaboration.ts b/src/lib/components/common/RichTextInput/Collaboration.ts index 713ef6056e..ab5fa87b7c 100644 --- a/src/lib/components/common/RichTextInput/Collaboration.ts +++ b/src/lib/components/common/RichTextInput/Collaboration.ts @@ -16,6 +16,7 @@ import { createNodeFromContent, Editor, Extension } from '@tiptap/core'; import { keymap } from 'prosemirror-keymap'; import { Plugin } from 'prosemirror-state'; import { tick } from 'svelte'; +import tippy, { type Instance } from 'tippy.js'; const USER_COLORS = [ '#FF6B6B', @@ -116,6 +117,57 @@ export class SocketIOCollaborationProvider { tr.setMeta('preventAutolink', true); } return true; + }, + view: (view) => { + const labels = new Map(); + const update = () => { + for (const [cursor, label] of labels) { + if (!view.dom.contains(cursor)) { + label.destroy(); + labels.delete(cursor); + } + } + for (const cursor of view.dom.querySelectorAll( + '.ProseMirror-yjs-cursor' + )) { + if (!labels.has(cursor)) { + const label = cursor.querySelector('div'); + if (!label) continue; + // Float above the caret without being clipped by the editor's scroll area. + label.remove(); + label.className = 'ProseMirror-yjs-cursor-label'; + labels.set( + cursor, + tippy(cursor, { + appendTo: () => document.body, + render: () => ({ popper: label }), + trigger: 'manual', + showOnCreate: true, + hideOnClick: false, + animation: false, + placement: 'top-start', + offset: [0, 2], + zIndex: 30, + popperOptions: { + strategy: 'fixed', + modifiers: [{ name: 'flip', enabled: false }] + } + }) + ); + } + labels.get(cursor)?.popperInstance?.forceUpdate(); + } + }; + update(); + const resizeObserver = new ResizeObserver(update); + resizeObserver.observe(view.dom); + return { + update, + destroy: () => { + resizeObserver.disconnect(); + labels.forEach((label) => label.destroy()); + } + }; } }), ySyncPlugin(yXmlFragment), From ff53208e864cd8eadee7b9b5837a1f75af83e20b Mon Sep 17 00:00:00 2001 From: Mad-jr <120295540+Madleyym@users.noreply.github.com> Date: Thu, 29 Oct 2026 00:21:25 +0700 Subject: [PATCH 46/98] i18n: make Indonesian terminology consistent and translate a missed string (#33303) Use "berkas" instead of "File" (108 existing uses vs 14), "Tambah" instead of "Menambahkan" for the Add Files / Add Memory buttons (matching the other "Add ..." actions), and "Pengaturan" instead of "Setelan". Also translate "Enter certificate path", which was still in English. Co-authored-by: Claude Sonnet 5.5 --- src/lib/i18n/locales/id-ID/translation.json | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/lib/i18n/locales/id-ID/translation.json b/src/lib/i18n/locales/id-ID/translation.json index 74dc24a686..5a38d63507 100644 --- a/src/lib/i18n/locales/id-ID/translation.json +++ b/src/lib/i18n/locales/id-ID/translation.json @@ -137,7 +137,7 @@ "Add description": "Tambahkan deskripsi", "Add Details": "Tambah Detail", "Add durable context for future chats": "Tambahkan konteks permanen untuk obrolan mendatang", - "Add Files": "Menambahkan File", + "Add Files": "Tambah Berkas", "Add filters in the Functions workspace.": "Tambahkan filter di ruang kerja Fungsi.", "Add gesture": "Tambah gestur", "Add Image": "Tambah Gambar", @@ -145,7 +145,7 @@ "Add location": "Tambahkan lokasi", "Add Member": "Tambah Anggota", "Add Members": "Tambah Anggota", - "Add Memory": "Menambahkan Memori", + "Add Memory": "Tambah Memori", "Add option": "Tambah opsi", "Add parameter": "Tambah parameter", "Add prompt": "Tambah prompt", @@ -489,7 +489,7 @@ "Click here to learn more about faster-whisper and see the available models.": "Klik di sini untuk mempelajari lebih lanjut tentang faster-whisper dan melihat model yang tersedia.", "Click here to see available models.": "Klik di sini untuk melihat model yang tersedia.", "Click here to select": "Klik di sini untuk memilih", - "Click here to select a csv file.": "Klik di sini untuk memilih file csv.", + "Click here to select a csv file.": "Klik di sini untuk memilih berkas csv.", "click here.": "Klik di sini.", "Click on the user role button to change a user's role.": "Klik tombol peran pengguna untuk mengubah peran pengguna.", "Click to connect": "Klik untuk menghubungkan", @@ -876,8 +876,8 @@ "Drag or use the up and down arrow keys to reorder": "Seret atau gunakan tombol panah atas dan bawah untuk mengubah urutan", "Drag to reorder": "Seret untuk mengurutkan ulang", "Draw": "Gambar", - "Drop any files here to upload": "Lepaskan file apa pun di sini untuk mengunggah", - "Drop files here": "Lepaskan file di sini", + "Drop any files here to upload": "Lepaskan berkas apa pun di sini untuk mengunggah", + "Drop files here": "Lepaskan berkas di sini", "Drop here to move to root": "Lepaskan di sini untuk memindahkan ke tingkat teratas", "Drop to upload": "Lepaskan untuk mengunggah", "DuckDuckGo": "DuckDuckGo", @@ -963,7 +963,7 @@ "Enforce Temporary Chat": "Wajibkan Obrolan Sementara", "Enhance": "Tingkatkan", "Enhance this note and update it.": "Tingkatkan catatan ini dan perbarui.", - "Ensure your CSV file includes 4 columns in this order: Name, Email, Password, Role.": "Pastikan file CSV Anda menyertakan 4 kolom dengan urutan sebagai berikut: Nama, Email, Kata Sandi, Peran.", + "Ensure your CSV file includes 4 columns in this order: Name, Email, Password, Role.": "Pastikan berkas CSV Anda menyertakan 4 kolom dengan urutan sebagai berikut: Nama, Email, Kata Sandi, Peran.", "Enter {{role}} message here": "Masukkan pesan {{role}} di sini", "Enter a Connection ID to register.": "Masukkan ID Koneksi untuk mendaftarkan koneksi.", "Enter a name, content, and a valid command.": "Masukkan nama, konten, dan perintah yang valid.", @@ -979,7 +979,7 @@ "Enter Bing Search V7 Subscription Key": "Masukkan Kunci Langganan Bing Search V7", "Enter Bocha Search API Key": "Masukkan Kunci API Bocha Search", "Enter Brave Search API Key": "Masukkan Kunci API Pencarian Berani", - "Enter certificate path": "Enter certificate path", + "Enter certificate path": "Masukkan jalur sertifikat", "Enter Chunk Min Size Target": "Masukkan Target Ukuran Minimum Potongan", "Enter Chunk Overlap": "Masukkan Tumpang Tindih Chunk", "Enter Chunk Size": "Masukkan Ukuran Potongan", @@ -1274,10 +1274,10 @@ "File created": "Berkas dibuat", "File deleted successfully.": "Berkas berhasil dihapus.", "File differences": "Perbedaan berkas", - "File Mode": "Mode File", + "File Mode": "Mode Berkas", "File moved.": "Berkas berhasil dipindahkan.", "File name": "Nama berkas", - "File not found.": "File tidak ditemukan.", + "File not found.": "Berkas tidak ditemukan.", "File preview": "Pratinjau berkas", "File removed successfully.": "Berkas berhasil dihapus.", "File renamed.": "Nama berkas berhasil diubah.", @@ -1826,7 +1826,7 @@ "No expiration can pose security risks.": "Tanpa kedaluwarsa dapat menimbulkan risiko keamanan.", "No external knowledge sources configured.": "Tidak ada sumber pengetahuan eksternal yang dikonfigurasi.", "No feedback found": "Tidak ada umpan balik ditemukan", - "No file selected": "Tidak ada file yang dipilih", + "No file selected": "Tidak ada berkas yang dipilih", "No files": "Tidak ada berkas", "No files found": "Tidak ada berkas ditemukan", "No files in this knowledge base.": "Tidak ada berkas di basis pengetahuan ini.", @@ -2046,7 +2046,7 @@ "Please connect all required integrations before sending a message": "Harap hubungkan semua integrasi yang diperlukan sebelum mengirim pesan", "Please do not close the settings page while loading the model.": "Harap jangan tutup halaman pengaturan saat memuat model.", "Please enter a Connection ID before authorizing OAuth.": "Silakan masukkan ID Koneksi sebelum mengotorisasi OAuth.", - "Please enter a message or attach a file.": "Harap masukkan pesan atau lampirkan file.", + "Please enter a message or attach a file.": "Harap masukkan pesan atau lampirkan berkas.", "Please enter a prompt": "Harap masukkan prompt", "Please enter a valid JSON spec": "Harap masukkan spesifikasi JSON yang valid", "Please enter a valid path": "Harap masukkan jalur yang valid", @@ -3095,7 +3095,7 @@ "settings.admin.models.defaultFeatures.webSearch.description": "Model dapat mencari informasi di web", "settings.admin.models.defaultFeatures.webSearch.label": "Pencarian Web", "settings.admin.models.defaults.modelCapabilities.label": "Kemampuan Model", - "settings.admin.models.defaults.modelDefaults.label": "Setelan Bawaan Model", + "settings.admin.models.defaults.modelDefaults.label": "Pengaturan Bawaan Model", "settings.admin.models.defaults.modelParameters.label": "Parameter Model", "settings.admin.models.defaults.promptSuggestions.label": "Saran Prompt", "settings.admin.models.disableAllModels.label": "Nonaktifkan Semua", @@ -3312,7 +3312,7 @@ "settings.personal.dataControls.manageFiles.description": "Buka pengelola file untuk file yang diunggah.", "settings.personal.dataControls.manageFiles.label": "Kelola File", "settings.personal.dataControls.sections.chats.title": "Obrolan", - "settings.personal.dataControls.sections.files.title": "File", + "settings.personal.dataControls.sections.files.title": "Berkas", "settings.personal.dataControls.sharedChats.description": "Tinjau dan kelola obrolan yang telah Anda bagikan.", "settings.personal.dataControls.sharedChats.label": "Obrolan yang Dibagikan", "settings.personal.dataControls.title": "Kontrol Data", @@ -3781,7 +3781,7 @@ "This will delete all models including custom models and cannot be undone.": "Ini akan menghapus semua model termasuk model kustom dan tidak dapat dibatalkan.", "This will delete the cached model and cannot be undone.": "Ini akan menghapus model dalam cache dan tidak dapat dibatalkan.", "This will permanently delete the calendar \"{{name}}\" and all its events. This action cannot be undone.": "Ini akan menghapus kalender \"{{name}}\" dan semua acaranya secara permanen. Tindakan ini tidak dapat dibatalkan.", - "This will remove all files and directories from this knowledge base. This action cannot be undone.": "Ini akan menghapus semua file dan direktori dari basis pengetahuan ini. Tindakan ini tidak dapat dibatalkan.", + "This will remove all files and directories from this knowledge base. This action cannot be undone.": "Ini akan menghapus semua berkas dan direktori dari basis pengetahuan ini. Tindakan ini tidak dapat dibatalkan.", "This will reset the saved settings for this base model to their defaults. The model will remain available.": "Tindakan ini akan mengatur ulang pengaturan tersimpan untuk model dasar ini ke nilai default. Model akan tetap tersedia.", "This will revoke the current API key.": "Ini akan mencabut kunci API saat ini.", "Thorough explanation": "Penjelasan menyeluruh", @@ -3934,7 +3934,7 @@ "Upload failed": "Unggahan gagal", "Upload failed for {{failed}} of {{total}} files.": "Unggahan gagal untuk {{failed}} dari {{total}} berkas.", "Upload files": "Unggah berkas", - "Upload Files": "Unggah File", + "Upload Files": "Unggah Berkas", "Upload files or add sources in the Knowledge workspace.": "Unggah berkas atau tambahkan sumber di ruang kerja Pengetahuan.", "Upload Folder": "Unggah Folder", "Upload gesture": "Unggah gestur", From 0ac55c8e7205aed414c1f265ca8e7047a772c08d Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:22:02 -0400 Subject: [PATCH 47/98] fix: a removed webhook carried over from before v0.11 stays removed (#33295) --- backend/open_webui/utils/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/notifications.py b/backend/open_webui/utils/notifications.py index a35ad9b88f..d004af5e70 100644 --- a/backend/open_webui/utils/notifications.py +++ b/backend/open_webui/utils/notifications.py @@ -109,7 +109,7 @@ async def _load_notifications(user_id: str) -> dict[str, Any]: ).strip() if not isinstance(targets, list) or not targets: - if legacy_url: + if legacy_url and not notifications.get('legacy_notification_events_migrated'): target = _normalize_target( { 'id': DEFAULT_TARGET_ID, From a8e8e7e792201346553c6e911c3f81306f23d60f Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:23:15 -0400 Subject: [PATCH 48/98] fix: a calendar event that ends after midnight keeps its end time (#33290) --- src/lib/components/calendar/CalendarEventModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/calendar/CalendarEventModal.svelte b/src/lib/components/calendar/CalendarEventModal.svelte index b1cea0b331..1413ed1ddd 100644 --- a/src/lib/components/calendar/CalendarEventModal.svelte +++ b/src/lib/components/calendar/CalendarEventModal.svelte @@ -142,7 +142,7 @@ loading = true; try { const startNs = dateTimeToNs(startDate, allDay ? '00:00' : startTime); - const endDays = overnight && !endsPastMidnight() ? 0 : endDayOffset; + const endDays = endsPastMidnight() ? Math.max(endDayOffset, 1) : overnight ? 0 : endDayOffset; const shiftedEndDate = endDate ? nsToDateStr(dateTimeToNs(startDate, '12:00') + endDays * 24 * 60 * 60 * 1000 * NS) : ''; From f58fdf9b9531c27d18f449485eccd985490a86c0 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:57:47 -0400 Subject: [PATCH 49/98] fix: Playground Controls reach the model (#33286) --- src/lib/components/playground/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/playground/Chat.svelte b/src/lib/components/playground/Chat.svelte index 6d68deb908..9c2f0077bc 100644 --- a/src/lib/components/playground/Chat.svelte +++ b/src/lib/components/playground/Chat.svelte @@ -118,7 +118,7 @@ : undefined, ...messages ].filter((message) => message), - ...(Object.keys(activeParams).length > 0 ? activeParams : {}) + ...(Object.keys(activeParams).length > 0 ? { params: activeParams } : {}) }, `${WEBUI_BASE_URL}/api` ); From fcc9284139f180aec64f58839a9f83dd5dfa4f68 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 19:58:23 +0200 Subject: [PATCH 50/98] fix: labels in workspace search, Skills and the terminal file browser stay English (#33308) The workspace search showed its result labels such as "Personal chat" and "Personal note" in English for every interface language, and some of its own labels never reached the translation files. Several labels, prompts and banners in the Skills list, the skill editor and the terminal file browser were also hard-coded in English. They now follow the interface language. Folder and channel names in search results stay as the user typed them, except a folder named exactly like one of the five fixed labels, which shows translated as well, since the search results do not tell the two apart. Fixes #33304 Fixes #33305 --- src/lib/components/chat/FileNav.svelte | 9 ++++--- src/lib/components/layout/SearchModal.svelte | 24 ++++++++++++----- src/lib/components/workspace/Skills.svelte | 4 +-- .../workspace/Skills/SkillEditor.svelte | 18 ++++++------- .../workspace/Skills/SkillFiles.svelte | 20 ++++++++------ .../workspace/Skills/SkillMenu.svelte | 2 +- src/lib/i18n/locales/en-US/translation.json | 26 +++++++++++++++++++ 7 files changed, 73 insertions(+), 30 deletions(-) diff --git a/src/lib/components/chat/FileNav.svelte b/src/lib/components/chat/FileNav.svelte index 5ffb921f8b..8c59ad3015 100644 --- a/src/lib/components/chat/FileNav.svelte +++ b/src/lib/components/chat/FileNav.svelte @@ -193,7 +193,7 @@ const text = source?.text ?? selection.toString(); if (!text.trim()) return; if (new TextEncoder().encode(text).length > 16384) { - toast.error('Select less text (maximum 16 KiB).'); + toast.error($i18n.t('Select less text (maximum 16 KiB).')); return; } const page = @@ -2275,15 +2275,16 @@ role="status" class="flex flex-wrap items-center gap-2 px-2 py-1.5 text-xs text-gray-500 dark:text-gray-400" > - File updated on disk. Your local changes are preserved. {$i18n.t('Reload')} {$i18n.t('Save local changes')}
{/if} diff --git a/src/lib/components/layout/SearchModal.svelte b/src/lib/components/layout/SearchModal.svelte index a8728fe741..a1b86153c3 100644 --- a/src/lib/components/layout/SearchModal.svelte +++ b/src/lib/components/layout/SearchModal.svelte @@ -70,6 +70,14 @@ shared: 'search for shared chats', archived: 'search for archived chats' }; + // Fixed labels from the search API; folder and channel names stay as typed. + $: contextLabels = new Map([ + ['Personal chat', $i18n.t('Personal chat')], + ['Shared chat', $i18n.t('Shared chat')], + ['Shared snapshot', $i18n.t('Shared snapshot')], + ['Personal note', $i18n.t('Personal note')], + ['Shared note', $i18n.t('Shared note')] + ]); $: selected = results[selectedIndex]; $: suggestions = suggesting && !panel ? getSuggestions(query, $tags, $folders) : []; $: scopeName = scopes.find((item) => item.id === scope)?.name ?? ''; @@ -544,7 +552,7 @@ class="flex h-6 shrink-0 items-center justify-between px-2 text-[0.6875rem] text-gray-500 dark:text-gray-400" > {$i18n.t(query.trim() ? 'Results' : 'Pinned & recent')}{query.trim() ? $i18n.t('Results') : $i18n.t('Pinned & recent')}{loading ? $i18n.t('Searching…') @@ -591,7 +599,7 @@ >{contextLabels.get(result.context) ?? result.context}{#if result.pinned}{/if}
{#if query.trim() && result.snippet}
-

{$i18n.t(query ? 'No matches found' : 'Nothing here yet')}

+

{query ? $i18n.t('No matches found') : $i18n.t('Nothing here yet')}

{$i18n.t('Try another word or broaden your filters.')}

@@ -678,7 +686,9 @@

{selected.title}

- {selected.context} · {formatSearchDate(selected.updated_at)} + {contextLabels.get(selected.context) ?? selected.context} · {formatSearchDate( + selected.updated_at + )}
{#if selected.kind === 'note'} @@ -708,7 +718,7 @@ setPreview(!preview); panel = null; input.focus(); - }}>{$i18n.t(preview ? 'Hide preview' : 'Show preview')}{preview ? $i18n.t('Hide preview') : $i18n.t('Show preview')}
{/if} {selected ? selected.context : $i18n.t('Workspace search')}{selected + ? (contextLabels.get(selected.context) ?? selected.context) + : $i18n.t('Workspace search')}
(conflict = false)}>{$i18n.t('Keep editing')}
{/if}
{preview ? $i18n.t('Edit') : $i18n.t('Preview')}{/if} {#if loadedPath && !objectUrl && !loading && !loadError} download(selected)}>{$i18n.t('Download')}
{#if loadError} @@ -646,7 +646,9 @@ sandbox="" class="min-h-0 flex-1" > - {:else}

Binary file. Download to open.

{/if} + {:else}

+ {$i18n.t('Binary file. Download to open.')} +

{/if} {:else if preview}
f.path === path)) open(path); - else toast.error('File not found'); + else toast.error($i18n.t('File not found.')); } }} > @@ -802,10 +804,10 @@ type="button" class="px-2 text-xs" on:click={() => - ask('Delete selected files?', false, () => { + ask($i18n.t('Delete selected files?'), false, () => { selectedPaths.forEach(remove); selectedPaths = new Set(); - })}>Delete selected{$i18n.t('Delete selected')}{/if} {#if !currentPath}{@render createInput()}{/if}
    @@ -832,7 +834,9 @@ onToggleExpand={toggleFolder} onRename={(path, name) => rename(path, path.slice(0, path.lastIndexOf('/') + 1) + name)} onDelete={(path) => - ask('Delete this file or folder?', false, () => remove(path.replace(/\/$/, '')))} + ask($i18n.t('Delete this file or folder?'), false, () => + remove(path.replace(/\/$/, '')) + )} onMove={(paths, destination) => paths.forEach((path) => { path = path.replace(/\/$/, ''); @@ -846,7 +850,7 @@ {/each}
{#if !rows.length}

- Empty folders are saved when they contain files. + {$i18n.t('Empty folders are saved when they contain files.')}

{/if}
{/snippet} diff --git a/src/lib/components/workspace/Skills/SkillMenu.svelte b/src/lib/components/workspace/Skills/SkillMenu.svelte index 303cd1557a..973fe50289 100644 --- a/src/lib/components/workspace/Skills/SkillMenu.svelte +++ b/src/lib/components/workspace/Skills/SkillMenu.svelte @@ -133,7 +133,7 @@ on:click={() => { exportHandler('zip'); closeMenu(); - }}>Export ZIP{$i18n.t('Export ZIP')} {/if} diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index 1c1e167164..e4c6c4d2d0 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -386,6 +386,7 @@ "before": "", "Being lazy": "", "Binary file — text comparison is unavailable.": "", + "Binary file. Download to open.": "", "Bing": "", "Bold": "", "Boosting or penalizing specific tokens for constrained responses. Bias values will be clamped between -100 and 100 (inclusive). (Default: none)": "", @@ -795,7 +796,10 @@ "Delete Model": "", "Delete note?": "", "Delete prompt?": "", + "Delete selected": "", + "Delete selected files?": "", "Delete skill?": "", + "Delete this file or folder?": "", "delete this link": "", "Delete tool?": "", "Delete User": "", @@ -844,6 +848,7 @@ "Discard changes": "", "Discard comparison changes?": "", "Discard unsaved changes?": "", + "Discard unsaved skill changes?": "", "Disconnect OAuth": "", "Disconnected": "", "Discover a function": "", @@ -959,6 +964,7 @@ "Emoji graphics provided by": "", "Emojis": "", "Empty": "", + "Empty folders are saved when they contain files.": "", "Empty message": "", "Enable": "", "Enable All": "", @@ -1308,6 +1314,7 @@ "File renamed.": "", "File saved": "", "File size should not exceed {{maxSize}} MB.": "", + "File updated on disk. Your local changes are preserved.": "", "File uploaded successfully": "", "Filename": "", "Filename matches": "", @@ -1438,6 +1445,7 @@ "Hide from Sidebar": "", "Hide Hidden Files": "", "Hide Model": "", + "Hide preview": "", "Hide sub-agents": "Hide sub-agents", "Hide whitespace": "", "High": "", @@ -1478,6 +1486,7 @@ "Import": "", "Import action": "", "Import CSV": "", + "Import folder": "", "Import from URL": "", "Import JSON": "", "Import Models": "", @@ -1547,6 +1556,7 @@ "Keep both": "", "Keep both versions in the proposed revision, original first.": "", "Keep current webhook URL": "", + "Keep editing": "", "Keep in Sidebar": "", "Keep tools listed even while your shell is closed.": "", "Key": "", @@ -1883,6 +1893,7 @@ "No knowledge found": "", "No limit": "", "No matches": "", + "No matches found": "", "No matching scopes.": "", "No model data": "", "No model IDs": "", @@ -1946,6 +1957,7 @@ "Notes": "", "Notes Public Sharing": "", "Notes Sharing": "", + "Nothing here yet": "", "Nothing to compact": "", "Notifications": "", "November": "", @@ -2076,9 +2088,12 @@ "Permissions reset to defaults": "", "Persistent": "", "Personal": "", + "Personal chat": "", + "Personal note": "", "Pin": "", "Pin to Sidebar": "", "Pinned": "", + "Pinned & recent": "", "Pinned Messages": "", "Pipe": "", "Pipeline deleted successfully": "", @@ -2232,6 +2247,8 @@ "Release Notes": "", "Releases": "", "Relevance": "", + "Reload": "", + "Reload latest": "", "Reload preview": "", "Remember Dismissal": "", "Reminder": "", @@ -2296,6 +2313,7 @@ "Result": "", "RESULT": "", "Result preview": "", + "Results": "", "Retrieved {{count}} sources": "", "Retrieved {{count}} sources_one": "", "Retrieved {{count}} sources_other": "", @@ -2330,6 +2348,8 @@ "Save and send": "", "Save As Copy": "", "Save Chat": "", + "Save draft as copy": "", + "Save local changes": "", "Save the connection to keep the OAuth details. Keep the Connection ID unchanged.": "", "Save your changes before continuing?": "", "Save your recovery codes": "", @@ -2438,6 +2458,7 @@ "Select for Compare": "", "Select how to split message text for TTS requests": "", "Select Knowledge": "", + "Select less text (maximum 16 KiB).": "", "Select loaded files": "Select loaded files", "Select Method": "", "Select model": "", @@ -3629,7 +3650,10 @@ "Share to Open WebUI Community": "", "Share your background and interests": "", "Shared": "", + "Shared chat": "", "Shared Chats": "", + "Shared note": "", + "Shared snapshot": "", "Shared with you": "", "Sharing mode": "", "Sharing Permissions": "", @@ -3653,6 +3677,7 @@ "Show Model": "", "Show more": "", "Show or switch the current model.": "", + "Show preview": "", "Show Shortcuts": "", "Show the floating quick-action toolbar in chat.": "", "Show your support!": "", @@ -3850,6 +3875,7 @@ "This option controls how many tokens are preserved when refreshing the context. For example, if set to 2, the last 2 tokens of the conversation context will be retained. Preserving context can help maintain the continuity of a conversation, but it may reduce the ability to respond to new topics.": "", "This option sets the maximum number of tokens the model can generate in its response. Increasing this limit allows the model to provide longer answers, but it may also increase the likelihood of unhelpful or irrelevant content being generated.": "", "This response was generated by \"{{model}}\"": "", + "This skill has a newer version. Your draft is preserved.": "", "This template contains multiple context placeholders ([context] or {{CONTEXT}}). Context will be injected at each occurrence.": "", "This user will need to sign in again on every device. API keys remain active.": "", "This will delete": "", From 77398eba3126eb6b3614e8bc868a268aff668e44 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:58:45 -0400 Subject: [PATCH 51/98] fix: a new notification target becomes the default after the last one was removed (#33284) --- backend/open_webui/utils/notifications.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/utils/notifications.py b/backend/open_webui/utils/notifications.py index d004af5e70..7d824730de 100644 --- a/backend/open_webui/utils/notifications.py +++ b/backend/open_webui/utils/notifications.py @@ -129,9 +129,10 @@ async def _load_notifications(user_id: str) -> dict[str, Any]: await Users.update_user_settings_by_id(user_id, {'notifications': notifications}) else: notifications['targets'] = [target for target in targets if isinstance(target, dict)] - notifications.setdefault( - 'default_target_id', notifications['targets'][0].get('id') if notifications['targets'] else None - ) + if not notifications.get('default_target_id'): + notifications['default_target_id'] = ( + notifications['targets'][0].get('id') if notifications['targets'] else None + ) if legacy_url and not notifications.get('legacy_notification_events_migrated'): changed = False for target in notifications['targets']: @@ -172,7 +173,8 @@ async def create_target(user_id: str, payload: dict[str, Any]) -> dict[str, Any] suffix += 1 targets.append(target) notifications['targets'] = targets - notifications.setdefault('default_target_id', target['id']) + if not notifications.get('default_target_id'): + notifications['default_target_id'] = target['id'] await Users.update_user_settings_by_id(user_id, {'notifications': notifications}) return _public_target(target, notifications.get('default_target_id')) From e49ff5df64a1523b80fce8ef03637953265c4355 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:20:40 +0200 Subject: [PATCH 52/98] feat: notify automation owners when a run fails (#33331) When a scheduled automation failed (for example because its model was deleted), the owner could only see it as an error in the run history, so they found out much later when the results stopped showing up. Automation run failed is now one of the automatic events users can pick for their notification targets under Settings > Notifications, and every failed run, scheduled or started by hand, sends the automation name and the error to those targets. In Admin Settings > General > Events, webhooks set to Specific users or groups now receive these failures when the owner is among those users or groups, and webhooks set to System events only stop receiving them. Closes #33228 --- backend/open_webui/events.py | 1 + backend/open_webui/utils/automations.py | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/events.py b/backend/open_webui/events.py index 825e2a2304..b5373f386b 100644 --- a/backend/open_webui/events.py +++ b/backend/open_webui/events.py @@ -705,6 +705,7 @@ NOTIFICATION_EVENTS = ( EVENTS.CHANNEL_MESSAGE.name, EVENTS.CALENDAR_ALERT.name, EVENTS.RETRIEVAL_CONTENT_PROCESS_FAILED.name, + EVENTS.AUTOMATION_RUN_FAILED.name, ) diff --git a/backend/open_webui/utils/automations.py b/backend/open_webui/utils/automations.py index ce4c9af3ec..292e435083 100644 --- a/backend/open_webui/utils/automations.py +++ b/backend/open_webui/utils/automations.py @@ -384,7 +384,7 @@ async def execute_automation(app, automation: AutomationModel) -> None: EVENTS.AUTOMATION_RUN_FAILED, actor=user, subject_id=automation.id, - data={'name': automation.name, 'error': error}, + data={'name': automation.name, 'error': error, 'message': f'{automation.name}: {error}'}, ) return @@ -470,7 +470,7 @@ async def execute_automation(app, automation: AutomationModel) -> None: EVENTS.AUTOMATION_RUN_FAILED, actor=user, subject_id=automation.id, - data={'name': automation.name, 'error': error}, + data={'name': automation.name, 'error': error, 'message': f'{automation.name}: {error}'}, ) return @@ -559,7 +559,13 @@ async def execute_automation(app, automation: AutomationModel) -> None: app, EVENTS.AUTOMATION_RUN_FAILED, subject_id=automation.id, - data={'name': automation.name, 'error': error, **({'chat_id': chat.id} if chat else {})}, + data={ + 'name': automation.name, + 'error': error, + 'user_id': automation.user_id, + 'message': f'{automation.name}: {error}', + **({'chat_id': chat.id} if chat else {}), + }, ) if isinstance(e, asyncio.CancelledError): raise From 34ef99dbfb0815fbca10d3faea2da7c50f29e19f Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:20:50 +0200 Subject: [PATCH 53/98] feat: allow negative values for the Relevance Threshold setting (#33330) The Relevance Threshold field in the Documents settings refused negative values, so admins whose reranker returns raw scores (which can go below zero) could not set a useful threshold, and a negative RAG_RELEVANCE_THRESHOLD made the whole Documents settings page impossible to save while hybrid search was on. The server already stores and applies negative thresholds; only the field blocked them. The field now takes negative values in the same 0.01 steps as before, its help text says they are valid for rerankers that return raw scores outside the 0 to 1 range, and the hover hint asking for a value between 0 and 1 is gone. Nothing changes for 0 and above, and 0 still means no threshold. Closes #29888 --- src/lib/components/admin/Settings/Documents.svelte | 2 -- src/lib/i18n/locales/en-US/translation.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index cb7c55eb17..79d7567148 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -1431,8 +1431,6 @@ placeholder={$i18n.t('Enter Score')} bind:value={RAGConfig.RELEVANCE_THRESHOLD} autocomplete="off" - min="0.0" - title={$i18n.t('The score should be a value between 0.0 (0%) and 1.0 (100%).')} /> diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index e4c6c4d2d0..ffee6365cb 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -2878,7 +2878,7 @@ "settings.admin.documents.reindex.label": "Reindex", "settings.admin.documents.reindexKnowledgeAndMemoryVectors.description": "Rebuild vectors for existing knowledge files, knowledge search, and memories.", "settings.admin.documents.reindexKnowledgeAndMemoryVectors.label": "Reindex Knowledge and Memory Vectors", - "settings.admin.documents.relevanceThreshold.description": "Only return documents with a score greater than or equal to this value.", + "settings.admin.documents.relevanceThreshold.description": "Only return documents with a score greater than or equal to this value. Negative values are valid for rerankers that return raw scores outside the 0 to 1 range.", "settings.admin.documents.relevanceThreshold.label": "Relevance Threshold", "settings.admin.documents.rerankingBatchSize.description": "Number of results processed per reranking batch.", "settings.admin.documents.rerankingBatchSize.label": "Reranking Batch Size", From 76b7be67fce6375244e4b00f0fdda5fb896e056e Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:21:06 +0200 Subject: [PATCH 54/98] feat: let admins exclude routes like health checks from OpenTelemetry metrics (#33329) With OpenTelemetry metrics on, every request is counted in the HTTP request and duration metrics, so Kubernetes liveness and readiness probes on `/health` and `/health/db` fill the time series database and dashboards with noise. These metrics now skip any request whose URL matches `OTEL_PYTHON_FASTAPI_EXCLUDED_URLS` (or `OTEL_PYTHON_EXCLUDED_URLS` as a fallback), the standard OpenTelemetry variable that traces already honour. It takes a comma-separated list of regular expressions such as `/health,/_app/immutable/.*`, each matched anywhere in the URL, so `/health` also covers `/health/db`. One pattern now drops the same requests from traces and metrics alike. Nothing changes when the variable is unset. Closes #31609 --- backend/open_webui/utils/telemetry/metrics.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/open_webui/utils/telemetry/metrics.py b/backend/open_webui/utils/telemetry/metrics.py index 036e08389d..e730748489 100644 --- a/backend/open_webui/utils/telemetry/metrics.py +++ b/backend/open_webui/utils/telemetry/metrics.py @@ -41,12 +41,14 @@ from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import ( from opentelemetry.exporter.otlp.proto.http.metric_exporter import ( OTLPMetricExporter as OTLPHttpMetricExporter, ) +from opentelemetry.instrumentation.asgi import get_host_port_url_tuple from opentelemetry.sdk.metrics import MeterProvider from opentelemetry.sdk.metrics.export import ( PeriodicExportingMetricReader, ) from opentelemetry.sdk.metrics.view import View from opentelemetry.sdk.resources import Resource +from opentelemetry.util.http import get_excluded_urls from sqlalchemy import Engine, func, select from sqlalchemy.orm import Session @@ -222,9 +224,16 @@ def setup_metrics(app: FastAPI, resource: Resource, db_engine: Engine) -> None: callbacks=[observe_users_active_today], ) + # OTEL_PYTHON_FASTAPI_EXCLUDED_URLS, shared with traces + excluded_urls = get_excluded_urls('FASTAPI') + # FastAPI middleware @app.middleware('http') async def _metrics_middleware(request: Request, call_next): + _, _, url = get_host_port_url_tuple(request.scope) + if excluded_urls.url_disabled(url): + return await call_next(request) + start_time = time.perf_counter() status_code = None From 40a9fba81f3640b7d3c9eafd78e7cd19d8de7674 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:21:30 +0200 Subject: [PATCH 55/98] feat: moving a chat into or out of a folder keeps its last activity date (#33327) Filing an old chat into a folder made it look recently active: it jumped to the top of the sidebar under Today, and a batch of old chats sorted into folders ended up ordered by when each was moved. Moving a chat into or out of a folder now keeps its last activity date, so it is sorted and grouped by when it was really last active. Moving your own chat still clears its unread dot as before, and when the owner of a shared folder reorganizes your chat within it, the chat no longer turns unread for you. Closes #30362 --- backend/open_webui/models/chats.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/open_webui/models/chats.py b/backend/open_webui/models/chats.py index fd8aaa7d51..d8a4f01dd4 100644 --- a/backend/open_webui/models/chats.py +++ b/backend/open_webui/models/chats.py @@ -2546,7 +2546,6 @@ class ChatTable: async with get_async_db_context(db) as session: chat = await session.get(Chat, id) chat.folder_id = folder_id - chat.updated_at = int(time.time()) if chat.user_id == user_id: chat.last_read_at = int(time.time()) chat.pinned = False From cfe745b00c272679db7a6082749f6f7a6c5f7e36 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:24:46 +0200 Subject: [PATCH 56/98] feat: show ComfyUI images saved by the Save Animated WEBP and Save Animated PNG nodes (#33325) A ComfyUI workflow that ends in the core Save Animated WEBP or Save Animated PNG node finished on the ComfyUI side, but nothing showed up in the chat, because Open WebUI only picked up images from the Save Image, Save Image (Advanced) and Preview Image nodes. Images from both animated nodes now show up in the chat too, as the original animated file, for image generation and image editing. Closes #33013 --- backend/open_webui/utils/images/comfyui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/utils/images/comfyui.py b/backend/open_webui/utils/images/comfyui.py index d8b07926b3..0474c480e0 100644 --- a/backend/open_webui/utils/images/comfyui.py +++ b/backend/open_webui/utils/images/comfyui.py @@ -99,6 +99,8 @@ async def _ws_get_images(ws, workflow, client_id, base_url, api_key): if node_id in workflow and workflow[node_id].get('class_type') in [ 'SaveImage', 'SaveImageAdvanced', + 'SaveAnimatedWEBP', + 'SaveAnimatedPNG', 'PreviewImage', ]: if 'images' in node_output: From f1f0a194aef3d029f8243f7e7ac553d492283c07 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:25:53 +0200 Subject: [PATCH 57/98] feat: choose the Mistral OCR model and pass extra OCR request options (#33333) Mistral OCR always sent the mistral-ocr-latest model with no other request options, so admins could not stay on an older OCR model or send the model name a Mistral-compatible endpoint such as Azure AI Foundry expects. A new Parameters field under Admin Panel > Settings > Documents, shown when Mistral OCR is the extraction engine and also available as the MISTRAL_OCR_PARAMS environment variable, takes a JSON object that is merged into every OCR request: {"model": "mistral-ocr-2512"} replaces the default model, and any other field is sent to the OCR endpoint as given. It works the same with and without the Use Base64 switch, and when it is left empty the request is unchanged. Closes #19707 --- backend/open_webui/config.py | 11 +++++++ backend/open_webui/models/config.py | 1 + backend/open_webui/retrieval/loaders/main.py | 1 + .../open_webui/retrieval/loaders/mistral.py | 4 +++ backend/open_webui/retrieval/utils.py | 1 + backend/open_webui/routers/retrieval.py | 4 +++ .../admin/Settings/Documents.svelte | 33 +++++++++++++++++++ src/lib/i18n/locales/en-US/translation.json | 3 ++ 8 files changed, 58 insertions(+) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index c87c86f9cf..fc9c5543b7 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -965,6 +965,16 @@ MISTRAL_OCR_API_KEY = os.getenv('MISTRAL_OCR_API_KEY', '') MISTRAL_OCR_USE_BASE64 = os.getenv('MISTRAL_OCR_USE_BASE64', 'False').lower() == 'true' +mistral_ocr_params = os.getenv('MISTRAL_OCR_PARAMS', '') +try: + mistral_ocr_params = JSONCodec.loads(mistral_ocr_params) +except JSONCodec.JSONDecodeError: + mistral_ocr_params = {} +if not isinstance(mistral_ocr_params, dict): + mistral_ocr_params = {} + +MISTRAL_OCR_PARAMS = mistral_ocr_params + PADDLEOCR_VL_BASE_URL = os.getenv('PADDLEOCR_VL_BASE_URL', 'http://localhost:8080') PADDLEOCR_VL_TOKEN = os.getenv('PADDLEOCR_VL_TOKEN', '') @@ -2991,6 +3001,7 @@ DEFAULT_CONFIG = { 'rag.mistral_ocr_api_base_url': MISTRAL_OCR_API_BASE_URL, 'rag.mistral_ocr_api_key': MISTRAL_OCR_API_KEY, 'rag.mistral_ocr_use_base64': MISTRAL_OCR_USE_BASE64, + 'rag.mistral_ocr_params': MISTRAL_OCR_PARAMS, 'rag.paddleocr_vl_base_url': PADDLEOCR_VL_BASE_URL, 'rag.paddleocr_vl_token': PADDLEOCR_VL_TOKEN, 'rag.bypass_embedding_and_retrieval': BYPASS_EMBEDDING_AND_RETRIEVAL, diff --git a/backend/open_webui/models/config.py b/backend/open_webui/models/config.py index 9d1323b0f9..f298b889d6 100644 --- a/backend/open_webui/models/config.py +++ b/backend/open_webui/models/config.py @@ -27,6 +27,7 @@ DICT_CONFIG_KEY_ALIASES = { 'ollama.api_configs': ('OLLAMA_API_CONFIGS',), 'rag.mineru_params': ('MINERU_PARAMS',), 'rag.docling_params': ('DOCLING_PARAMS',), + 'rag.mistral_ocr_params': ('MISTRAL_OCR_PARAMS',), 'web.search.linkup_search_params': ('LINKUP_SEARCH_PARAMS',), 'image_generation.automatic1111.api_params': ('AUTOMATIC1111_PARAMS',), 'image_generation.openai.params': ('IMAGES_OPENAI_API_PARAMS',), diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index 70317817c1..971b124a9e 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -704,6 +704,7 @@ class Loader: api_key=self.config['rag.mistral_ocr_api_key'], file_path=file_path, use_base64=self.config['rag.mistral_ocr_use_base64'], + params=self.config['rag.mistral_ocr_params'], user=self.user, ) elif ( diff --git a/backend/open_webui/retrieval/loaders/mistral.py b/backend/open_webui/retrieval/loaders/mistral.py index ad266deb92..a5dbebfff1 100644 --- a/backend/open_webui/retrieval/loaders/mistral.py +++ b/backend/open_webui/retrieval/loaders/mistral.py @@ -34,6 +34,7 @@ class MistralLoader: max_retries: int = 3, enable_debug_logging: bool = False, use_base64: bool = False, + params: Optional[Dict[str, Any]] = None, user: Optional[Any] = None, ): """ @@ -46,6 +47,7 @@ class MistralLoader: max_retries: Maximum number of retry attempts. enable_debug_logging: Enable detailed debug logs. use_base64: Send the document as a data URL instead of uploading it first. + params: Extra fields merged into the OCR request, overriding the defaults (e.g. model). user: The requesting user, forwarded to Mistral via user-info headers when ENABLE_FORWARD_USER_INFO_HEADERS is enabled. """ @@ -60,6 +62,7 @@ class MistralLoader: self.max_retries = max_retries self.debug = enable_debug_logging self.use_base64 = use_base64 + self.params = params or {} self.user = user # PERFORMANCE OPTIMIZATION: Differentiated timeouts for different operations @@ -247,6 +250,7 @@ class MistralLoader: 'document_url': signed_url, }, 'include_image_base64': False, + **self.params, } def ocr_request(): diff --git a/backend/open_webui/retrieval/utils.py b/backend/open_webui/retrieval/utils.py index e98a1c2a30..24963eafcd 100644 --- a/backend/open_webui/retrieval/utils.py +++ b/backend/open_webui/retrieval/utils.py @@ -211,6 +211,7 @@ async def get_content_from_url(request, url: str, *, config: dict | None = None) 'rag.mineru_params', 'rag.mistral_ocr_api_base_url', 'rag.mistral_ocr_api_key', + 'rag.mistral_ocr_params', 'rag.mistral_ocr_use_base64', 'rag.paddleocr_vl_base_url', 'rag.paddleocr_vl_token', diff --git a/backend/open_webui/routers/retrieval.py b/backend/open_webui/routers/retrieval.py index 5a4250f800..c80c3f4e7f 100644 --- a/backend/open_webui/routers/retrieval.py +++ b/backend/open_webui/routers/retrieval.py @@ -326,6 +326,7 @@ RETRIEVAL_CONFIG_KEYS = { 'MICROSOFT_WEB_IQ_LANGUAGE': 'web.search.microsoft_web_iq_language', 'MISTRAL_OCR_API_BASE_URL': 'rag.mistral_ocr_api_base_url', 'MISTRAL_OCR_API_KEY': 'rag.mistral_ocr_api_key', + 'MISTRAL_OCR_PARAMS': 'rag.mistral_ocr_params', 'MISTRAL_OCR_USE_BASE64': 'rag.mistral_ocr_use_base64', 'MOJEEK_SEARCH_API_KEY': 'web.search.mojeek_search_api_key', 'OLLAMA_CLOUD_WEB_SEARCH_API_KEY': 'web.search.ollama_cloud_api_key', @@ -654,6 +655,7 @@ async def get_rag_config(request: Request, user=Depends(get_admin_user)): 'MISTRAL_OCR_API_BASE_URL': config['rag.mistral_ocr_api_base_url'], 'MISTRAL_OCR_API_KEY': config['rag.mistral_ocr_api_key'], 'MISTRAL_OCR_USE_BASE64': config['rag.mistral_ocr_use_base64'], + 'MISTRAL_OCR_PARAMS': config['rag.mistral_ocr_params'], 'PADDLEOCR_VL_BASE_URL': config['rag.paddleocr_vl_base_url'], 'PADDLEOCR_VL_TOKEN': config['rag.paddleocr_vl_token'], # MinerU settings @@ -900,6 +902,7 @@ class ConfigForm(BaseModel): MISTRAL_OCR_API_BASE_URL: str | None = None MISTRAL_OCR_API_KEY: str | None = None MISTRAL_OCR_USE_BASE64: bool | None = None + MISTRAL_OCR_PARAMS: dict | None = None PADDLEOCR_VL_BASE_URL: str | None = None PADDLEOCR_VL_TOKEN: str | None = None @@ -1086,6 +1089,7 @@ async def update_rag_config(request: Request, form_data: ConfigForm, user=Depend 'MISTRAL_OCR_API_BASE_URL': config['rag.mistral_ocr_api_base_url'], 'MISTRAL_OCR_API_KEY': config['rag.mistral_ocr_api_key'], 'MISTRAL_OCR_USE_BASE64': config['rag.mistral_ocr_use_base64'], + 'MISTRAL_OCR_PARAMS': config['rag.mistral_ocr_params'], 'PADDLEOCR_VL_BASE_URL': config['rag.paddleocr_vl_base_url'], 'PADDLEOCR_VL_TOKEN': config['rag.paddleocr_vl_token'], # MinerU settings diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index 79d7567148..9ac3656611 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -263,6 +263,18 @@ return; } } + if (RAGConfig.MISTRAL_OCR_PARAMS) { + try { + JSON.parse(RAGConfig.MISTRAL_OCR_PARAMS); + } catch { + toast.error( + $i18n.t('Invalid JSON format in {{NAME}}', { + NAME: $i18n.t('Mistral OCR Parameters') + }) + ); + return; + } + } const res = await updateRAGConfig(localStorage.token, { ...RAGConfig, @@ -290,6 +302,11 @@ : RAGConfig.CONTENT_EXTRACTION_SUPPORTED_MEDIA_MIME_TYPES.split(',') .map((mimeType: string) => mimeType.trim()) .filter((mimeType: string) => mimeType !== ''), + MISTRAL_OCR_PARAMS: + typeof RAGConfig.MISTRAL_OCR_PARAMS === 'string' && + RAGConfig.MISTRAL_OCR_PARAMS.trim() !== '' + ? JSON.parse(RAGConfig.MISTRAL_OCR_PARAMS) + : {}, MINERU_PARAMS: typeof RAGConfig.MINERU_PARAMS === 'string' && RAGConfig.MINERU_PARAMS.trim() !== '' ? JSON.parse(RAGConfig.MINERU_PARAMS) @@ -341,6 +358,11 @@ ? JSON.stringify(config.MINERU_PARAMS ?? {}, null, 2) : config.MINERU_PARAMS; + config.MISTRAL_OCR_PARAMS = + typeof config.MISTRAL_OCR_PARAMS === 'object' + ? JSON.stringify(config.MISTRAL_OCR_PARAMS ?? {}, null, 2) + : config.MISTRAL_OCR_PARAMS; + config.EXTERNAL_DOCUMENT_LOADER_HEADERS = typeof config.EXTERNAL_DOCUMENT_LOADER_HEADERS === 'object' ? Object.keys(config.EXTERNAL_DOCUMENT_LOADER_HEADERS ?? {}).length > 0 @@ -803,6 +825,17 @@ > + +