Compare commits

..
115 Commits
Author SHA1 Message Date
Tim Baek 6c159a97b7 Merge pull request #22390 from open-webui/dev
refac
2026-03-08 06:56:22 +04:00
Timothy Jaeryang Baek 124ad948fe refac 2026-03-07 20:56:05 -06:00
Tim Baek 947dcd34bd Merge pull request #22385 from open-webui/dev
0.8.9
2026-03-08 06:47:14 +04:00
Timothy Jaeryang Baek 710b5270a1 refac 2026-03-07 20:43:45 -06:00
Timothy Jaeryang Baek 2bff50f736 refac 2026-03-07 20:42:21 -06:00
Timothy Jaeryang Baek e24299e66d refac 2026-03-07 20:36:54 -06:00
Timothy Jaeryang Baek f047b6b3ae refac 2026-03-07 20:30:42 -06:00
Timothy Jaeryang Baek 368912ca62 refac 2026-03-07 20:28:17 -06:00
Timothy Jaeryang Baek b1048fc9bc refac 2026-03-07 20:22:01 -06:00
Timothy Jaeryang Baek 9bb226dc52 refac 2026-03-07 20:21:33 -06:00
Timothy Jaeryang Baek 0948235c3b refac 2026-03-07 20:21:06 -06:00
Timothy Jaeryang Baek bd456ed10b doc: changelog 2026-03-07 20:17:51 -06:00
Classic298 223c14f48b fix: add deterministic tiebreaker to all paginated chat queries (#22387)
Add Chat.id as a secondary sort key to all paginated chat queries
that use offset/limit pagination. When multiple chats share the same
updated_at timestamp, the database does not guarantee a stable order
across page boundaries, causing chats to appear on multiple pages.

This produces duplicate keys in the Svelte sidebar each-block
(each_key_duplicate error). Adding Chat.id as a tiebreaker ensures
fully deterministic ordering.

Extends the fix from #22383 (which addressed get_chat_ids_by_model_id)
to all remaining paginated chat queries.
2026-03-07 20:16:50 -06:00
Classic298 d0c3180376 changelog: 0.8.9 (#22186)
* changelog: terminal keepalive fix

* changelog: add chat archive handler fix

* changelog: terminal keepalive, chat archive handler, BeautifulSoup4 dependency

* changelog: button spinner, terminal keepalive, chat archive, beautifulsoup4

* changelog: group users sort, button spinner, terminal keepalive, chat archive, beautifulsoup4

* changelog: add event call timeout configuration

* changelog: add general improvements and French translations

* changelog: file refresh button, group sort, event timeout, translations

* changelog: add office file previews support

* changelog: add Open Terminal port viewing feature

* changelog: add Open Terminal video previews entry

* changelog: Open Terminal syntax highlighting and XLSX improvements

* changelog: add JSON tree view and SVG rendering entry

* changelog: add Open Terminal Jupyter Notebook previews entry

* changelog: update chat performance entry to reflect broader markdown rendering improvements

* changelog: add SQLite browser feature to Open Terminal

* changelog: add Open Terminal file copy button entry

* changelog: add Open Terminal auto-refresh entry

* changelog: open terminal, mermaid, diagrams

* changelog: add Open Terminal notebook cell execution entry

* changelog: reorder Open Terminal entries by impact

* changelog: add initial page load speed entry

* changelog: opentelemetry, metrics, telemetry

* changelog: fix artifacts memory leak (PR #22303)

* changelog: message list performance, array operations optimization

* changelog: streaming markdown performance fix

* changelog: sqlcipher, stability, memory leak

* changelog: chat streaming performance

* changelog: fix Floating Quick Actions for unavailable models

* changelog: follow-up suggestions, prompt template, JSON format

* changelog: banner, navigation, homepage

* changelog: api middleware, streaming performance

* changelog: tts, thinking content, playback

* changelog: add system metrics via OpenTelemetry

* changelog: tool access permissions fix

* changelog: source list performance fix

* changelog: source list performance optimization

* changelog: chat message tree performance, #22194

* changelog: add Finnish translations, update version date

* changelog: fix parameterless tool calls during streaming

* changelog: add stale pinned models cleanup fix

* changelog: move performance entries from Fixed to Added section

* changelog: android, photo capture, canvas

* changelog: action priority query optimization (PR #22301)

* changelog: move action priority query to Added section

* changelog: group Open Terminal entries together

* changelog: group Open Terminal entries together

* changelog: move API key middleware entry to Added section

* changelog: open-terminal, html-editing

* changelog: web search tool guidance update

* changelog: add Turkish translations to v0.8.9

* changelog: add German translations

* changelog: fix stop sequence error handling

* changelog: Open Terminal permission fix for issue #22374

* changelog: add Windows path fix for Open Terminal

* changelog: add Simplified Chinese and Traditional Chinese to translations

* changelog: fix profile image sizing in chat overview

* changelog: queued messages display fix (#22176)

* changelog: model list loading performance optimization

* changelog: model list performance optimization update

* changelog: artifacts reactive loop fix

* changelog: artifact navigation fix

* changelog: fix image generation in temporary chats

* changelog: non-streaming token tracking, admin analytics

* changelog: add citation parser error handling fix

* changelog: tool server URL trailing slash fix

* changelog: inline code typing fix (#20417)

* changelog: variable input newlines fix

* changelog: add migration memory usage fix for large deployments

* changelog: Microsoft OAuth refresh token fix

* changelog: add issue link to variable input newlines entry

* changelog: tool files access, artifact thinking block fix

* changelog: ollama, model unload, proxy fix

* changelog: fix banner type dropdown requiring two clicks

* changelog: move migration memory fix to top of Fixed section

* changelog: fix analytics URL encoding for models with slashes

* changelog: fix tool call streaming for GPT-5 models

* changelog: fix analytics chat list duplicate error

* changelog: pyodide file system support for code interpreter

* changelog: fix folder knowledge base native tool call duplicate query

* changelog: folder knowledge base native tool call fix with follow-up commit

* changelog: nested folders support

* changelog: update Pyodide file system entry with pip guidance
2026-03-07 20:15:00 -06:00
Timothy Jaeryang Baek 3ceaa107ab chore: format 2026-03-07 20:14:32 -06:00
Timothy Jaeryang Baek 144d8b1bb7 refac 2026-03-07 20:12:35 -06:00
Timothy Jaeryang Baek 989938856f refac 2026-03-07 20:05:18 -06:00
Timothy Jaeryang BaekandColin Chen 8913f37c3d enh: create subfolder
Co-Authored-By: Colin Chen <1207878+silenceroom@users.noreply.github.com>
2026-03-07 19:45:43 -06:00
Timothy Jaeryang Baek 80b5896b70 refac 2026-03-07 19:38:20 -06:00
Timothy Jaeryang Baek 967b1137dc refac 2026-03-07 19:31:51 -06:00
Timothy Jaeryang Baek 8cd3bd7997 refac 2026-03-07 19:28:57 -06:00
Timothy Jaeryang Baek ce0ca894fe enh: code interpreter pyodide fs 2026-03-07 19:23:18 -06:00
Classic298 d1975b740b fix: add deterministic ordering to chat_ids pagination query to prevent duplicates (#22383) 2026-03-07 20:19:44 -05:00
Timothy Jaeryang Baek 459a60a242 refac 2026-03-07 19:17:24 -06:00
Classic298 9a269ec8ab fix: use path converter for model ID routes in analytics to support slashes (#22382) 2026-03-07 20:02:59 -05:00
Timothy Jaeryang Baek d7efdcce2b refac 2026-03-07 19:02:03 -06:00
Timothy Jaeryang Baek 885c94bda8 refac 2026-03-07 18:51:20 -06:00
Classic298 2e1ef805ff fix: banner type dropdown requires two selections to register (#22378) 2026-03-07 19:30:26 -05:00
Timothy Jaeryang Baek 95b65ff751 refac 2026-03-07 18:23:52 -06:00
Timothy Jaeryang Baek 35bc831077 refac 2026-03-07 18:18:02 -06:00
pedro-inf-custodio 5d4505c685 fix: add support for scope in OAuth refresh token request (#22359)
* fix: add support for scope in OAuth refresh token request

* add oauth refresh token include scope

* Fix variable import

* Fix env variables import

* Added debug logs WIP

* Remove debug logs
2026-03-07 19:13:28 -05:00
Classic298 b4f340806a fix: migration streaming/batching (#21542)
* fix: normalize usage tokens + migration streaming/batching

- Migration: replace .fetchall() with yield_per streaming, replace per-message INSERT+SAVEPOINT with batched inserts (5k/batch) with fallback to row-by-row on error, add progress logging

- Write path: call normalize_usage() in upsert_message() before saving to ensure input_tokens/output_tokens always present

- Read path: analytics queries now COALESCE across input_tokens/prompt_tokens and output_tokens/completion_tokens so historical data with OpenAI-format keys is visible

* fix: restore defensive timestamp conversion in migration

Re-add try/except around int(float(timestamp)) that was accidentally dropped. Without this, a non-numeric timestamp string would cause a TypeError on the subsequent comparison, breaking the entire upgrade.

* revert: remove changes to chat_messages.py
2026-03-07 19:08:11 -05:00
Timothy Jaeryang Baek 7b2f597b30 refac 2026-03-07 17:52:58 -06:00
Timothy Jaeryang BaekandAbdul Moiz e303c3da3b refac: inline codespan rich text input
Co-Authored-By: Abdul Moiz <86627657+abdulmoizjawed@users.noreply.github.com>
2026-03-07 17:45:00 -06:00
Timothy Jaeryang Baek bc5d519c4f refac 2026-03-07 17:29:24 -06:00
Timothy Jaeryang Baek 7cdff6b1e2 refac 2026-03-07 17:24:17 -06:00
Timothy Jaeryang Baek b04de83c20 refac 2026-03-07 17:18:46 -06:00
Classic298 dfa2511199 fix: persist token usage data for non-streaming chat responses (#22166)
The non-streaming response handler was saving assistant messages without
their usage/token data. While the streaming handler correctly extracted
and saved usage information, the non-streaming path discarded it entirely.

This caused assistant messages from non-streaming completions to have
NULL usage in the chat_message table, making them invisible to the
analytics token aggregation queries and contributing to the '0 tokens'
display in Admin Panel Analytics.

Extract and normalize the usage data from the API response and include
it in the database upsert, matching the pattern already used by the
streaming handler.
2026-03-07 17:17:36 -06:00
Timothy Jaeryang Baek d4faa5a5ea refac 2026-03-07 17:13:19 -06:00
Classic298 2108f420ea chore: dep bump (#22305)
* chore: dep bump

* revert: Brotli dependency bump (1.2.0 -> 1.1.0)
2026-03-07 17:12:22 -06:00
Timothy Jaeryang Baek 42ecdb5407 refac 2026-03-07 17:11:44 -06:00
Timothy Jaeryang Baek 626fcff417 refac 2026-03-07 17:06:30 -06:00
Timothy Jaeryang Baek e6b00a8905 refac 2026-03-07 17:03:23 -06:00
Timothy Jaeryang Baek 03c6caac1f refac 2026-03-07 17:02:02 -06:00
Timothy Jaeryang Baek 29160741a3 refac 2026-03-07 16:59:06 -06:00
Shirasawa 7820a311ba fix: prevent message queue from overflowing screen (#22176) 2026-03-07 16:53:28 -06:00
Shirasawa 5eb9b58488 feat: Avoid overview profile image squashed (#22261) 2026-03-07 16:51:56 -06:00
Shirasawa 51a2d2b701 i18n: improve Chinese translation (#22351) 2026-03-07 16:51:04 -06:00
Timothy Jaeryang Baek 044fd1bd15 refac 2026-03-07 16:49:26 -06:00
Timothy Jaeryang Baek 70a31a9a57 fix: terminals button ui 2026-03-07 16:40:14 -06:00
Timothy Jaeryang Baek c7d1d1e390 refac 2026-03-07 16:36:20 -06:00
Classic298 2d0b94794f Update translation.json (#22353) 2026-03-07 16:35:25 -06:00
alifurkanstahlandMSI I9 12900KS RTX fbf315e624 i18n: expand Turkish translations across missing frontend UI strings (#22360)
* feat(i18n): add Turkish translations for access and add-action strings

* feat(i18n): add Turkish translations for access, permission, and upload strings

* feat(i18n): add Turkish translations for API, archive, and attach strings

* feat(i18n): add Turkish translations for chat and channel UI strings

* feat(i18n): add Turkish translations for common UI actions and dialogs

* feat(i18n): add Turkish translations for copy, create, and delete UI strings

* feat(i18n): add Turkish translations for display, download, and edit UI strings

* feat(i18n): add Turkish translations for form inputs, errors, and file UI string

* feat(i18n): add Turkish translations for skill-related UI strings

* i18n: add Turkish translations for settings-related UI strings

* i18n: add Turkish translations for terminal-related UI strings

* i18n: add Turkish translations for misc frontend UI strings

* i18n: add Turkish translations for search-related UI strings

---------

Co-authored-by: MSI I9 12900KS RTX <alifurkanstahl@users.noreply.github.com>
2026-03-07 16:31:23 -06:00
Classic298 b9c0a9c3bf enh: prevent models from always using internal knowledge base search first (#22264)
Some models always primarily use the internal knowledge base first before deviating to the web search tool
2026-03-07 16:16:43 -06:00
Timothy Jaeryang Baek 6d9996e599 refac 2026-03-06 20:12:37 -06:00
Timothy Jaeryang Baek 7806cd5aef feat: use CodeMirror editor for HTML source view, hide save in preview mode
- HTML preview (iframe) no longer shows Edit/Save toolbar buttons
- Clicking Source toggle opens CodeMirror editor with syntax highlighting
- Save button appears only in source mode, using saveCodeFile()
- Ctrl+S saving supported via CodeMirror keybinding
2026-03-06 20:00:12 -06:00
Timothy Jaeryang Baek b3622474d7 refac 2026-03-06 16:25:00 -06:00
Timothy Jaeryang Baek d8bb8c58d0 refac 2026-03-06 16:21:42 -06:00
Classic298 d93cb3658d perf(models): batch-fetch function valves to eliminate N+1 queries (#22301)
* perf(models): batch-fetch function valves to eliminate N+1 queries

get_action_priority() called Functions.get_function_valves_by_id()
individually for every action on every model — an N+1 query pattern
that issued one DB round-trip per (action x model) pair.

Add Functions.get_function_valves_by_ids() that fetches all valves in
a single WHERE IN query, then look up each action's valves from the
pre-fetched dict inside get_action_priority().

No functional change — same priority resolution, same sort order.

* Update models.py

* Update models.py
2026-03-06 15:56:01 -06:00
Shirasawa 200fb093b1 fix: Use toBlob on first mobile export to avoid black canvas image on Android (#22317) 2026-03-06 15:48:44 -06:00
Timothy Jaeryang Baek 4ab831b259 refac 2026-03-06 15:42:13 -06:00
Classic298 576ee92438 perf: rewrite createMessagesList from recursive to iterative (#22194)
Replace the recursive spread-based implementation with an iterative
push+reverse approach. The recursive version created a new array at
each level of recursion via spread, resulting in O(d^2) array copies
where d is the conversation depth. The iterative version walks from
the target message to the root, pushes each message, and reverses
once at the end for O(d) total work.

No behavioral change - same input produces the same output array.
2026-03-06 15:36:13 -06:00
Timothy Jaeryang Baek af4500e504 refac 2026-03-06 15:29:38 -06:00
Timothy Jaeryang Baek 016928722c refac 2026-03-06 15:23:29 -06:00
Timothy Jaeryang Baek 73b69ae408 refac 2026-03-06 15:13:21 -06:00
Timothy Jaeryang Baek 80376a3fdc revert 2026-03-06 15:05:36 -06:00
Timothy Jaeryang Baek 305e591ec2 feat: use CodeMirror for always-editable code file preview
- Add FileCodeEditor.svelte: CodeMirror wrapper with auto language
  detection, dark mode, Ctrl+S save, reactive to value/filePath changes
- Replace Shiki read-only highlighting + textarea editing with
  always-editable CodeMirror for code files in FileNav preview
- Show persistent Save button for code files in toolbar
- Non-code text files keep existing Edit/Save/Cancel textarea flow
- SVG retains Shiki highlighting for visual preview mode
2026-03-06 15:03:23 -06:00
Algorithm5838 39deadcab1 perf: convert APIKeyRestrictionMiddleware to pure ASGI (#22188) 2026-03-06 14:54:03 -06:00
Timothy Jaeryang Baek 2153c8ec9f refac 2026-03-06 14:53:09 -06:00
Classic298 a70c718a0d fix: TTS reading thinking content when reasoning has code blocks (#22237)
removeAllDetails() uses replaceOutsideCode() which splits content on
triple-backtick code blocks before applying the details-removal regex.

When thinking/reasoning content inside a <details> block contained
code blocks (backticks survive html.escape), the <details> opening
and </details> closing tags ended up in different split segments,
making the regex unable to match either. This caused thinking content
to leak through to TTS playback.

Fix: add a direct <details> strip (without code-block splitting) as
the first step of getMessageContentParts(), which is the TTS-specific
entry point. This catches the edge case while keeping removeAllDetails
safe for copy-to-clipboard (where legitimate <details> inside code
blocks should be preserved).

Fixes #22197
2026-03-06 14:46:31 -06:00
Classic298 c73efab192 feat: load banners on navigation to homepage, not only on refresh (#22340) 2026-03-06 14:46:00 -06:00
Classic298 ce54b1df23 perf: guard TTS sentence parsing behind showCallOverlay check (#22195)
The chatCompletionEventHandler runs getMessageContentParts() and
removeAllDetails() on every streaming token to extract sentences
for real-time TTS dispatch via CustomEvent('chat'). These functions
perform multiple O(n) regex passes over the full accumulated message
content, resulting in O(n^2) total work over a streaming response.

The only consumer of these events is CallOverlay.svelte, which is
only mounted when showCallOverlay is true. Without the overlay open,
the parsing runs but the dispatched events have no listeners.

Wrap all three TTS parsing blocks in an if () guard
so the expensive regex work is skipped entirely for the vast majority
of users who are not using the voice call feature.
2026-03-06 14:32:05 -06:00
Classic298 16701befe7 fix: show floating action buttons when chat model is unavailable (#22149) 2026-03-06 14:30:24 -06:00
Abdul Moiz 8a6af40d9f fix: correct conflicting output format instruction in follow-up generation prompt (#22212)
The Guidelines section instructed LLMs to return "a JSON array of strings"
while the Output section showed a JSON object with a "follow_ups" key.
This mismatch caused some models to return a top-level array, which the
frontend parser cannot handle (it looks for `{ }` delimiters and the
`follow_ups` key). Updated the guideline to consistently request a JSON
object matching the expected format.

Fixes #22187
2026-03-06 14:25:42 -06:00
Shamil 9cf6108527 feat: add otel system metrics instrumentation (#22265) 2026-03-06 14:24:24 -06:00
Algorithm5838 1c1c1c3100 fix: allow clearing file upload settings (#22336) 2026-03-06 14:23:20 -06:00
Timothy Jaeryang Baek def954134c refac 2026-03-06 14:21:38 -06:00
Timothy Jaeryang BaekandSteven Schveighoffer c85afce702 fix: import
Co-Authored-By: Steven Schveighoffer <580778+schveiguy@users.noreply.github.com>
2026-03-06 14:10:50 -06:00
Algorithm5838 a25ecfa856 perf: skip token parsing when raw content is unchanged (#22183) 2026-03-06 14:08:12 -06:00
Timothy Jaeryang Baek 47b007ef19 refac 2026-03-06 14:07:34 -06:00
Classic298 04fae8b357 fix: use NullPool for SQLCipher engine to prevent segfault (#22273)
The SQLCipher engine used a dummy sqlite:// URL with a creator function,
which caused SQLAlchemy to auto-select SingletonThreadPool. This pool
non-deterministically closes in-use connections when thread count exceeds
pool_size (default 5), leading to use-after-free segfaults (exit code 139)
in the native sqlcipher3 C library during multi-threaded operations like
user signup.

Now defaults to NullPool (each operation creates/closes its own connection)
for maximum safety with the native C extension. Also respects the
DATABASE_POOL_SIZE setting: if explicitly set >0, QueuePool is used with
the configured pool parameters, matching the behavior of other DB paths.

Fixes #22258
2026-03-06 14:04:10 -06:00
Classic298 1850a985b5 perf: replace O(n²) unshift with O(n) push+reverse in buildMessages (#22280)
Array.unshift() is O(n) per call because it shifts all existing
elements. In a loop building an n-element array, this makes the
total cost O(n²). Replace with push() + reverse() which is O(n)
total. Produces the identical message ordering.
2026-03-06 14:02:57 -06:00
Timothy Jaeryang Baek 339ed1d72e refac 2026-03-06 14:02:05 -06:00
Erhhung Yuan fa1ebfa4fd fix: use same metric description as OTel (#22192) (#22293)
Signed-off-by: Erhhung Yuan <erhhung@gmail.com>
2026-03-06 13:58:25 -06:00
Timothy Jaeryang Baek 0820abbc64 refac 2026-03-06 13:54:55 -06:00
Shirasawa b94e1c9458 fix: Fix memory leaking in Artifacts (#22303) 2026-03-06 13:49:06 -06:00
Classic298 fe58ef69d9 perf(frontend): lazy-load shiki to remove ~5-10MB from initial bundle (#22304)
codeHighlight.ts had a top-level static import of shiki that pulled
the entire highlighter engine (~5-10MB of JavaScript including all
language grammars) into any page that imported the module - even if
only the lightweight isCodeFile() function was used.

Replace the static shiki import with:
- A static set of ~85 common language IDs for synchronous extension
  checks (isCodeFile, extToLang) - no shiki dependency needed
- A dynamic import('shiki') inside highlightCode(), which is already
  async so callers are completely unaffected

The static language set covers all commonly-used file extensions.
Obscure extensions not in the set simply won't be detected by
isCodeFile() (the file still opens fine, just won't show the code
file indicator). Highlighting itself still works for all shiki
languages since the full bundle loads on demand.
2026-03-06 13:47:17 -06:00
Kylapaallikko cc6b51e5ae Update fi-FI translation.json (#22328)
Added and updated translations.
2026-03-06 13:45:56 -06:00
Timothy Jaeryang Baek cd2c315495 refac 2026-03-05 16:13:35 -06:00
Timothy Jaeryang Baek 4b3ed3e802 feat: notebook per-cell execution via open-terminal REST endpoints
- Add notebook API functions (createNotebookSession, executeNotebookCell, stopNotebookSession)
- Create CellEditor component with CodeMirror for cell editing
- Rewrite NotebookView with session-based execution, Run All, Restart, Stop
- Kernel status indicator with tooltips
- Wire baseUrl/apiKey through FilePreview and FileNav
2026-03-05 16:08:11 -06:00
Classic298 8cd2157564 Perf: precompile katex unicode regex (#22196)
* perf: pre-compile KaTeX Unicode regex at module load time

The katexStart() function was creating a new RegExp with Unicode
property escapes (\p{Script=Han}, \p{Script=Hiragana}, etc.) on
every invocation. Unicode property escapes are extremely expensive
to compile as the regex engine must build character class tables
covering tens of thousands of code points.

Since marked calls the start() function at every character position
while scanning source text, this meant hundreds of regex compilations
per marked.lexer() call, and lexer runs ~60 times/sec during streaming.
Profiling showed KaTeX regex consuming 87% (320ms/365ms) of total
markdown rendering time.

Changes:
- Pre-compile SURROUNDING_CHARS_REGEX once at module load time
- Use .test() instead of .match() to avoid array allocations
- Fix delimiter search to find earliest match, not last match

* perf: replace katexStart with single-pass character scan

The katexStart() function was the dominant cost in marked's lexer,
consuming 55-58% of total markdown rendering time per profiling.

It was called at every character position by marked and each call:
- Looped through 3-5 delimiters, each doing indexOf() on the full
  remaining source (3-5 x O(n) string scans per call)
- Ran the complex ruleReg regex with Unicode lookaheads for validation
- On failed validation, created substrings and looped again

Replace with a single linear character scan using charCodeAt that:
- Checks only for $ (charCode 36) or backslash (charCode 92)
- Filters backslash hits by next character to avoid false positives
- Preserves the surrounding-character validation
- Returns immediately on first valid candidate
- Lets the tokenizer handle full validation (it already does this)

This reduces start() from O(n * delimiters * retries) to O(n) with
a very small constant factor per call.

* Update katex-extension.ts
2026-03-05 16:02:00 -06:00
Timothy Jaeryang Baek aaa49bdd6d refac 2026-03-05 14:52:50 -06:00
Timothy Jaeryang Baek 8da02c669e refac 2026-03-05 14:47:48 -06:00
Timothy Jaeryang Baek 828656b35f feat: auto-refresh FileNav on write_file, replace_file_content, and run_command
Backend emits terminal events for write_file, replace_file_content,
and run_command. Frontend showFileNavDir subscriber uses startsWith
path matching to smartly refresh only when the event is relevant:
- write_file/replace_file_content: refresh if path is in current view
- run_command: always refresh (uses root '/' which matches everything)
- Also adds copy-to-clipboard button and code preview full-height fix
2026-03-05 14:41:18 -06:00
Timothy Jaeryang Baek 3b97c8d89b refac 2026-03-05 13:55:02 -06:00
Timothy Jaeryang Baek f5ea1ce250 feat: add copy-to-clipboard button next to download in file toolbar 2026-03-05 13:53:19 -06:00
Timothy Jaeryang Baek a181b4a731 feat: add SQLite database browser in FileNav
- New SqliteView component with table tabs, paginated data view
  (100 rows/page), SQL query editor (Cmd+Enter), NULL/BLOB formatting,
  sticky column headers, and dark mode
- Supports .db, .sqlite, .sqlite3, .db3 extensions
- Uses sql.js WASM served locally from /sql.js/sql-wasm.wasm
- Also fixes display_file handling when another file is already open
2026-03-05 13:34:21 -06:00
Timothy Jaeryang Baek 114f709337 refac 2026-03-04 17:14:12 -06:00
Timothy Jaeryang Baek a6fb5a0460 refac 2026-03-04 17:09:02 -06:00
Timothy Jaeryang Baek 7ef181bc13 refac 2026-03-04 16:52:01 -06:00
Timothy Jaeryang Baek 49a2e5bf57 feat: show refresh button when viewing files, not just directories
- Move refresh button out of directory-only block in FileNavToolbar
- When viewing a file, refresh reloads that file's content
- When in directory view, refresh reloads the listing (unchanged)
2026-03-04 16:48:01 -06:00
Classic298 4403c7b6c2 feat: Timeout for event_call events (#22222)
* Update main.py

* Update env.py

* Update main.py

* Update env.py
2026-03-04 16:39:53 -06:00
Timothy Jaeryang Baek b081e33c0a feat: add Jupyter Notebook (.ipynb) preview in FileNav
- New NotebookView component renders markdown cells (marked+DOMPurify),
  code cells (Shiki-highlighted with execution count gutter), and
  outputs (text, HTML tables, base64 images, error tracebacks)
- ANSI escape codes stripped from error output
- Source toggle shows raw JSON
- Dark mode support throughout
2026-03-04 16:14:26 -06:00
Timothy Jaeryang Baek f4c38e6001 feat: add JSON collapsible tree view, SVG rendered preview, and source toggle
- New JsonTreeView component with recursive collapsible nodes,
  auto-expand depth, and GitHub-themed dark mode colors
- JSON/JSONC/JSON5 files show tree view by default, toggle to
  Shiki-highlighted source
- SVG files show rendered preview (DOMPurify-sanitized) by default,
  toggle to Shiki-highlighted XML source
- SVG removed from IMAGE_EXTS to enable text-based preview
- YAML/TOML already covered by Shiki bundled languages
2026-03-04 16:10:15 -06:00
Timothy Jaeryang Baek c40f26946f feat: add Shiki syntax highlighting, video, and audio previews in FileNav
- Add Shiki-powered syntax highlighting for code files with dual
  light/dark themes (github-light/github-dark), line numbers, and
  source/preview toggle
- Add native <video> player for mp4, webm, mov, ogv, avi, mkv
- Add native <audio> player for mp3, wav, ogg, flac, m4a, aac, opus
- New utility: src/lib/utils/codeHighlight.ts with extension-to-lang
  mapping using Shiki's bundled language registry
2026-03-04 16:04:47 -06:00
Timothy Jaeryang Baek 627b063b88 refac 2026-03-04 16:01:24 -06:00
Timothy Jaeryang Baek f962bae983 feat: improve XLSX preview + add code syntax highlighting
XLSX QoL:
- Custom table renderer (excelToTable.ts) with column letters,
  row numbers, right-aligned numbers, empty cell handling
- Monospace font, sticky headers + row nums, cell cursor
- Sheet tabs moved to bottom bar (like PPTX navigation)
- Unified styles between FileNav and FileItemModal

Code highlighting:
- Shiki-based syntax highlighting for code files in FileNav
- Line numbers, dark/light theme support
- Source/Preview toggle for code files
2026-03-04 15:59:55 -06:00
Timothy Jaeryang Baek e08341dab3 enh: ot ports 2026-03-04 15:51:03 -06:00
Timothy Jaeryang Baek 890949abe6 feat: add DOCX/XLSX/PPTX file preview
- DOCX: mammoth converts to semantic HTML (prose preview)
- XLSX: xlsx library extended to FileNav with sheet tabs at bottom
- PPTX: custom canvas renderer produces PNG images per slide
  with panzoom zoom/pan and slide navigation

Changes:
- New: src/lib/utils/pptxToHtml.ts (canvas-based PPTX renderer)
- FileNav.svelte: office format detection, blob download, conversion
- FilePreview.svelte: office rendering branches, sheet tabs, slide viewer
- FileItemModal.svelte: DOCX/PPTX preview tabs
- package.json: added mammoth dependency
2026-03-04 15:50:37 -06:00
Shirasawa 6e43861c0c feat: prioritize in-group members in sorting (#22211) 2026-03-04 15:03:20 -06:00
Eliot GODARD ad275351b6 i18n(fr-FR): complete French translation pass (#22200)
Adds and harmonizes French translations across the entire UI:
- Translate admin pages (Images, connections, models, etc.)
- Harmonize API key/URL field translations
- Fix "successfully" translations consistency
- Add missing translations (feedback, file, model selector)
- Fix typos and improve existing translations
2026-03-04 13:57:30 -06:00
Shirasawa 7d45459a47 fix: keep save button spinner inline (#22227) 2026-03-04 13:56:49 -06:00
Shirasawa 5af24b3ebe fix: Implement archive chat handler in Chat page navbar (#22229) 2026-03-04 13:54:21 -06:00
Shirasawa a36692b4a2 Merge pull request #22231 from ShirasawaSama/patch-10
fix: add missing beautifulsoup4 to backend requirements
2026-03-04 13:53:50 -06:00
Timothy Jaeryang Baek ca2aaf0321 fix: ot terminal 2026-03-02 19:09:13 -06:00
148 changed files with 7581 additions and 1704 deletions
+3 -1
View File
@@ -88,9 +88,11 @@ This is to ensure large feature PRs are discussed with the community first, befo
🚨 DO NOT DELETE THE TEXT BELOW 🚨
Keep the "Contributor License Agreement" confirmation text intact.
Deleting it will trigger the CLA-Bot to INVALIDATE your PR.
Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA.
-->
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
- [ ] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
+8 -19
View File
@@ -27,28 +27,17 @@ jobs:
echo "::set-output name=version::$VERSION"
- name: Extract latest CHANGELOG entry
id: changelog
run: |
CHANGELOG_CONTENT=$(awk 'BEGIN {print_section=0;} /^## \[/ {if (print_section == 0) {print_section=1;} else {exit;}} print_section {print;}' CHANGELOG.md)
CHANGELOG_ESCAPED=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/%0A/g')
echo "Extracted latest release notes from CHANGELOG.md:"
echo -e "$CHANGELOG_CONTENT"
echo "::set-output name=content::$CHANGELOG_ESCAPED"
VERSION="${{ steps.get_version.outputs.version }}"
awk "/^## \[${VERSION}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md > /tmp/release-notes.md
- name: Create GitHub release
uses: actions/github-script@v8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const changelog = `${{ steps.changelog.outputs.content }}`;
const release = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${{ steps.get_version.outputs.version }}`,
name: `v${{ steps.get_version.outputs.version }}`,
body: changelog,
})
console.log(`Created release ${release.data.html_url}`)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "v${{ steps.get_version.outputs.version }}" \
--title "v${{ steps.get_version.outputs.version }}" \
--notes-file /tmp/release-notes.md
- name: Upload package to GitHub release
uses: actions/upload-artifact@v4
-64
View File
@@ -1,64 +0,0 @@
name: Deploy to HuggingFace Spaces
on:
push:
branches:
- dev
- main
workflow_dispatch:
jobs:
check-secret:
runs-on: ubuntu-latest
outputs:
token-set: ${{ steps.check-key.outputs.defined }}
steps:
- id: check-key
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
if: "${{ env.HF_TOKEN != '' }}"
run: echo "defined=true" >> $GITHUB_OUTPUT
deploy:
runs-on: ubuntu-latest
needs: [check-secret]
if: needs.check-secret.outputs.token-set == 'true'
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
lfs: true
- name: Remove git history
run: rm -rf .git
- name: Prepend YAML front matter to README.md
run: |
echo "---" > temp_readme.md
echo "title: Open WebUI" >> temp_readme.md
echo "emoji: 🐳" >> temp_readme.md
echo "colorFrom: purple" >> temp_readme.md
echo "colorTo: gray" >> temp_readme.md
echo "sdk: docker" >> temp_readme.md
echo "app_port: 8080" >> temp_readme.md
echo "---" >> temp_readme.md
cat README.md >> temp_readme.md
mv temp_readme.md README.md
- name: Configure git
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Set up Git and push to Space
run: |
git init --initial-branch=main
git lfs install
git lfs track "*.ttf"
git lfs track "*.jpg"
rm demo.png
rm banner.png
git add .
git commit -m "GitHub deploy: ${{ github.sha }}"
git push --force https://open-webui:${HF_TOKEN}@huggingface.co/spaces/open-webui/open-webui main
+79
View File
@@ -5,6 +5,85 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.9] - 2026-03-07
### Added
- ▶️ **Open Terminal notebook cell execution.** Users can now run Jupyter Notebook code cells directly in the Open Terminal file navigator, execute entire notebooks with a single click, edit and modify cells before running, and control the kernel - bringing full interactive notebook execution to the browser. [Commit](https://github.com/open-webui/open-webui/commit/4b3ed3e802d6f2ec8ee7caf358af810b7d09f789)
- 🗃️ **Open Terminal SQLite browser.** Users can now browse SQLite database files directly in the Open Terminal file navigator, viewing tables and running queries without downloading them first. [Commit](https://github.com/open-webui/open-webui/commit/a181b4a731a9ec7856be08d0b045a454d1341cf4)
- 📉 **Open Terminal Mermaid diagram rendering.** Markdown files with Mermaid code blocks are now rendered as diagrams directly in the Open Terminal file navigator, making it easier to visualize flowcharts and other diagrams. [Commit](https://github.com/open-webui/open-webui/commit/aaa49bdd6d6e5c10e8be554039d3cac673008fc2)
- 📓 **Open Terminal Jupyter Notebook previews.** Users can now preview Jupyter Notebook files directly in the Open Terminal file navigator, making it easier to view notebook content without downloading them first. [Commit](https://github.com/open-webui/open-webui/commit/b081e33c0a37585a1ee60b6e0e1ea03457f1e5f4)
- 🔃 **Open Terminal auto-refresh.** The Open Terminal file navigator now automatically refreshes when the model writes or modifies files, keeping the view in sync without manual refresh. [Commit](https://github.com/open-webui/open-webui/commit/828656b35f04bf486609183799cf8aa2e9850a76)
- 📎 **Open Terminal file copy button.** Users can now copy file contents directly to clipboard in the Open Terminal file navigator with a single click, making it easier to quickly grab file content without downloading. [Commit](https://github.com/open-webui/open-webui/commit/f5ea1ce250cb02fbc583c6cb3f52a923912d0178)
- 💻 **Code syntax highlighting and XLSX improvements in Open Terminal.** Code files now display with syntax highlighting in the Open Terminal file navigator, and XLSX spreadsheets now show column headers and row numbers for easier navigation. [Commit](https://github.com/open-webui/open-webui/commit/f962bae98306ea9264967b78b803397f4821f9b0)
- 🌳 **Open Terminal JSON tree view.** JSON, JSONC, JSONL, and JSON5 files now display as interactive collapsible tree views in the Open Terminal file navigator, and SVG files render as preview images with syntax highlighting support. [Commit](https://github.com/open-webui/open-webui/commit/f4c38e6001dd9d4853ed923e0bc5e790c4fd9941)
- 🛜 **Open Terminal port viewing.** Users can now view listening ports in the Open Terminal file navigator and open proxy connections to them directly from the UI. [Commit](https://github.com/open-webui/open-webui/commit/e08341dab3bb10e26a64eb44cbebd2d507087b03)
- 🎬 **Open Terminal video previews.** Users can now preview video and audio files directly in the Open Terminal file navigator, making it easier to view media without downloading them first. [Commit](https://github.com/open-webui/open-webui/commit/c40f26946f2eaeb1587a1f8b0c643b4a5121fc06)
- ✏️ **Open Terminal HTML editing.** Users can now edit HTML source files in Open Terminal with CodeMirror editor, and the save button is properly hidden in preview mode. [Commit](https://github.com/open-webui/open-webui/commit/7806cd5aef9fb0505b2c642ef70599a403cf14ba)
- 📄 **Open Terminal DOCX preview.** Word documents generated or modified by the AI can now be viewed directly in the file navigator with formatted text, tables, and images rendered inline — no need to download and open in a separate application. [Commit](https://github.com/open-webui/open-webui/commit/890949abe6b01d201355a86c50317e20da07dd34)
- 📊 **Open Terminal XLSX preview.** Excel spreadsheets in the file navigator now render as interactive tables with column headers and row numbers, making it easy to verify data the AI has generated or processed. [Commit](https://github.com/open-webui/open-webui/commit/890949abe6b01d201355a86c50317e20da07dd34)
- 📽️ **Open Terminal PPTX preview.** PowerPoint presentations created by the AI can now be viewed slide-by-slide directly in the file navigator, enabling quick review and iteration without leaving the browser. [Commit](https://github.com/open-webui/open-webui/commit/890949abe6b01d201355a86c50317e20da07dd34)
- 📁 **Pyodide file system support.** Users can now upload files for Python code execution in the code interpreter. Uploaded files are available in the `/mnt/uploads/` directory, and code can write output files there for download. The file system persists across code executions within the same session. The code interpreter now also informs models that pip install is not available in the Pyodide environment, guiding them to use alternative approaches with available modules. [#3583](https://github.com/open-webui/open-webui/issues/3583), [Commit](https://github.com/open-webui/open-webui/commit/ce0ca894fea8a2904bc6f832ff186d5fe53dd0b9), [Commit](https://github.com/open-webui/open-webui/commit/989938856fdb4b4afa584ae2d18c88d5be614ae2)
- 🧰 **Tool files access.** Tools can now access the files from the current chat context via the files property in their metadata, enabling more powerful tool integrations. [Commit](https://github.com/open-webui/open-webui/commit/35bc8310772c222fd8a466f7d00113a84e0402d0)
- ⚡ **Chat performance.** Chat messages now load and display significantly faster thanks to optimized markdown rendering, eliminating delays when viewing messages with mathematical expressions. [#22196](https://github.com/open-webui/open-webui/pull/22196), [#20878](https://github.com/open-webui/open-webui/discussions/20878)
- 📜 **Message list performance.** Improved message list rendering performance by optimizing array operations, reducing complexity from O(n²) to O(n). [#22280](https://github.com/open-webui/open-webui/pull/22280)
- 🧵 **Streaming markdown performance.** Improved chat responsiveness during streaming by skipping unnecessary markdown re-parsing when the content hasn't changed, eliminating wasted processing during model pauses. [#22183](https://github.com/open-webui/open-webui/pull/22183)
- 🏃 **Chat streaming performance.** Chat streaming is now faster for users not using the voice call feature by skipping unnecessary text parsing that was running on every token. [#22195](https://github.com/open-webui/open-webui/pull/22195)
- 🔖 **Source list performance.** Source lists in chat now render faster thanks to optimized computation that avoids unnecessary recalculations, including moving sourceIds computation to a reactive variable. [#22279](https://github.com/open-webui/open-webui/pull/22279), [Commit](https://github.com/open-webui/open-webui/commit/88af78c), [Commit](https://github.com/open-webui/open-webui/commit/339ed1d72e100c89d8eb26de761dfefe842ef90c)
- 💨 **Chat message tree operations.** Chat message tree operations are now significantly faster, improving overall chat responsiveness. [#22194](https://github.com/open-webui/open-webui/pull/22194)
- 🚀 **Initial page load speed.** Page load is now significantly faster thanks to deferred loading of the syntax highlighting library, reducing the initial JavaScript bundle by several megabytes. [#22304](https://github.com/open-webui/open-webui/pull/22304)
- 🗓️ **Action priority query optimization.** Improved performance of action priority resolution by fixing an N+1 query pattern, reducing database round-trips when loading model actions. [#22301](https://github.com/open-webui/open-webui/pull/22301)
- 🔑 **API key middleware optimization.** The API key restriction middleware was converted to a pure ASGI middleware for improved streaming performance, removing per-chunk call overhead. [#22188](https://github.com/open-webui/open-webui/pull/22188)
- 🏎️ **Model list loading performance.** Model lists now load significantly faster thanks to optimized custom model matching that uses dictionary lookups instead of nested loops. [#22299](https://github.com/open-webui/open-webui/pull/22299), [Commit](https://github.com/open-webui/open-webui/commit/29160741a3defa8768a43100cb6e63c56400279c), [Commit](https://github.com/open-webui/open-webui/commit/03c6caac1fc8625f85cf1164f5a977be8005c1bc)
- ⏱️ **Event call timeout configuration.** Administrators can now configure the WebSocket event call timeout via the WEBSOCKET_EVENT_CALLER_TIMEOUT environment variable, giving users more time to respond to event_call forms instead of timing out after 60 seconds. [#22222](https://github.com/open-webui/open-webui/pull/22222), [#22220](https://github.com/open-webui/open-webui/issues/22220)
- 🔁 **File refresh button visibility.** The refresh button in the chat file navigator now appears when viewing files as well as directories, allowing users to refresh the file view at any time. [Commit](https://github.com/open-webui/open-webui/commit/49a2e5bf573415dae6d4c7e5bd635e499c8de77a)
- 📂 **Nested folders support.** Users can now create subfolders within parent folders, improving organization of chats. A new "Create Subfolder" option is available in the folder context menu. [#22073](https://github.com/open-webui/open-webui/pull/22073), [Commit](https://github.com/open-webui/open-webui/commit/8913f37c3d8fde7dea6d54a550357f1d495b3941)
- 🔔 **Banner loading on navigation.** Admin-configured banners now load when navigating to the homepage, not just on page refresh, ensuring users see new banners immediately. [#22340](https://github.com/open-webui/open-webui/pull/22340), [#22180](https://github.com/open-webui/open-webui/issues/22180)
- 📡 **System metrics via OpenTelemetry.** Administrators can now monitor Python runtime and system metrics including CPU, memory, garbage collection, and thread counts through the existing OpenTelemetry pipeline. [#22265](https://github.com/open-webui/open-webui/pull/22265)
- 🔄 **General improvements.** Various improvements were implemented across the application to enhance performance, stability, and security.
- 🌐 Translations for French, Finnish, Turkish, German, Simplified Chinese, and Traditional Chinese were enhanced and expanded.
- 🔍 **Web search tool guidance.** The web search tool description was updated to encourage direct usage without first checking knowledge bases, making it clearer for users who want to search the web immediately. [#22264](https://github.com/open-webui/open-webui/pull/22264)
### Fixed
- 🗄️ **Migration memory usage.** Database migration on large deployments now processes messages in batches instead of loading everything into memory, preventing out-of-memory errors during upgrades. [#21542](https://github.com/open-webui/open-webui/pull/21542), [#21539](https://github.com/open-webui/open-webui/discussions/21539)
- 🔒 **SQLCipher connection stability.** Fixed a crash that occurred when using database encryption with SQLCipher by changing the default connection pool behavior, ensuring stable operation during multi-threaded operations like user signup. [#22273](https://github.com/open-webui/open-webui/pull/22273), [#22258](https://github.com/open-webui/open-webui/issues/22258)
- 🛑 **Stop sequence error.** Fixed a bug where setting stop sequences on a model caused the chat to fail with a split error, preventing any responses from being returned. The fix handles both string and array formats for stop tokens. [#22251](https://github.com/open-webui/open-webui/issues/22251), [Commit](https://github.com/open-webui/open-webui/commit/c7d1d1e390a79c6c86d4bfe439fd7de6f5fb060f)
- 🔐 **Microsoft OAuth refresh token fix.** Fixed a bug where Microsoft OAuth refresh token requests failed with error AADSTS90009 by adding support for the required scope parameter. Users can now stay logged in reliably with Microsoft OAuth. [#22359](https://github.com/open-webui/open-webui/pull/22359)
- 🛠️ **Parameterless tool calls.** Fixed parameterless tool calls failing during streaming by correcting the default arguments initialization, eliminating unnecessary model retries. [#22189](https://github.com/open-webui/open-webui/pull/22189)
- 🔧 **Tool call streaming fixes.** Fixed two bugs where streaming tool calls failed silently for models like GPT-5: function names were incorrectly duplicated when sent in multiple delta chunks, and arguments containing multiple JSON objects were not properly split. Tools now execute correctly instead of failing without explanation. [#22177](https://github.com/open-webui/open-webui/issues/22177), [Commit](https://github.com/open-webui/open-webui/commit/d7efdcce2b1cdbe1637a469294bf9d52dbacab53), [Commit](https://github.com/open-webui/open-webui/commit/459a60a24240eab33441ed50f4f68cc27e65a037)
- 🔗 **Tool server URL trailing slash.** Fixed tool server connection failures when URLs have trailing slashes by stripping them before path concatenation. Previously, URLs like "http://host:8080/v1/" + "/openapi.json" produced double-slash URLs that some servers rejected. [#22116](https://github.com/open-webui/open-webui/pull/22116), [#21917](https://github.com/open-webui/open-webui/issues/21917)
- 🛡️ **Citation parser error handling.** Fixed crashes when tools return error strings instead of expected data structures by adding type guards to the citation parser. The system now returns an empty source list instead of crashing with AttributeError. [#22118](https://github.com/open-webui/open-webui/pull/22118)
- 🧠 **Artifacts memory leak.** Fixed a memory leak where Svelte store subscriptions in the Artifacts component were not properly cleaned up when the component unmounted, causing memory to accumulate over time. [#22303](https://github.com/open-webui/open-webui/pull/22303)
- ♾️ **Artifacts reactive loop fix.** Fixed an infinite reactive loop in chat when artifacts are present by moving the animation frame logic outside the reactive block, preventing continuous re-rendering and CPU usage. [#22238](https://github.com/open-webui/open-webui/pull/22238), [Commit](https://github.com/open-webui/open-webui/commit/626fcff417afba642f4f71e0498267a21435c524)
- 🔀 **Artifact navigation.** Artifact navigation via arrow buttons now works correctly; the selected artifact is no longer reset when content updates. [#22239](https://github.com/open-webui/open-webui/pull/22239)
- 🧩 **Artifact thinking block fix.** Fixed a bug where HTML preview rendered code blocks inside thinking blocks for certain models like Mistral and Z.ai, causing stray code with ">" symbols to appear before the actual artifact. The fix strips thinking blocks before extracting code for artifact rendering. [#22267](https://github.com/open-webui/open-webui/issues/22267), [Commit](https://github.com/open-webui/open-webui/commit/35bc8310772c222fd8a466f7d00113a84e0402d0)
- 💬 **Floating Quick Actions availability.** Fixed an issue where the "Ask" and "Explain" Floating Quick Actions were missing when selecting text in chats that used a model that is no longer available. [#22149](https://github.com/open-webui/open-webui/pull/22149), [#22139](https://github.com/open-webui/open-webui/issues/22139)
- 💡 **Follow-up suggestions.** Fixed follow-up suggestions not appearing by correcting contradictory format instructions in the prompt template, ensuring the LLM returns the correct JSON object format. [#22212](https://github.com/open-webui/open-webui/pull/22212)
- 🔊 **TTS thinking content.** Fixed TTS playback reading think tags instead of skipping them by handling edge cases where code blocks inside thinking content prevented proper tag removal. [#22237](https://github.com/open-webui/open-webui/pull/22237), [#22197](https://github.com/open-webui/open-webui/issues/22197)
- 🎨 **Button spinner alignment.** Button spinners across multiple modals now align correctly and stay on the same line as the button text, fixing layout issues when loading states are displayed. [#22227](https://github.com/open-webui/open-webui/pull/22227)
- 📶 **Terminal keepalive.** Terminal connections now stay active without being closed by idle timeouts from proxies or load balancers, and spurious disconnection messages no longer appear. [Commit](https://github.com/open-webui/open-webui/commit/ca2aaf0321c219d041e92e2c0c842a4e424732ef)
- 📥 **Chat archive handler.** The archive button in the chat navbar now actually archives the chat and refreshes the chat list, instead of doing nothing. [#22229](https://github.com/open-webui/open-webui/pull/22229)
- 🐍 **BeautifulSoup4 dependency.** Added the missing BeautifulSoup4 package to backend requirements, fixing failures when using features that depend on HTML parsing. [#22231](https://github.com/open-webui/open-webui/pull/22231)
- 👥 **Group users default sort.** Group members in the admin panel now sort by last active time by default instead of creation date, making it easier to find active users. [#22211](https://github.com/open-webui/open-webui/pull/22211)
- 🔓 **Tool access permissions.** Users can now change tool and skill access permissions from private to public without errors. [#22325](https://github.com/open-webui/open-webui/pull/22325), [#22324](https://github.com/open-webui/open-webui/issues/22324)
- 🖥️ **Open Terminal permission fix.** Open Terminal is now visible without requiring "Allow Speech to Text" permission, fixing an issue where users without microphone access couldn't access the terminal feature. [#22374](https://github.com/open-webui/open-webui/issues/22374), [Commit](https://github.com/open-webui/open-webui/commit/70a31a9a57bdd0690ac270f31ebd1b46e8fdfa98)
- 📌 **Stale pinned models cleanup.** Pinned models that are deleted or hidden are now automatically unpinned, keeping your pinned models list up to date. [Commit](https://github.com/open-webui/open-webui/commit/af4500e5040c8343d339cd88dd1d2fb6138c7a72)
- 📏 **OpenTelemetry metric descriptions.** Fixed conflicting metric instrument descriptions that caused warnings in the OpenTelemetry collector, resulting in cleaner telemetry logs for administrators. [#22293](https://github.com/open-webui/open-webui/pull/22293)
- 🔢 **Non-streaming token tracking.** Token usage from non-streaming chat responses is now correctly saved to the database, fixing missing token counts in the Admin Panel analytics. Previously, non-streaming responses saved NULL usage data, causing messages to be excluded from token aggregation queries. [#22166](https://github.com/open-webui/open-webui/pull/22166)
- ⌨️ **Inline code typing.** Fixed a bug where typing inline code with backticks incorrectly deleted the character immediately before the opening backtick, so text formatted as inline code now correctly produces the full word instead of missing the last character. [#20417](https://github.com/open-webui/open-webui/issues/20417), [Commit](https://github.com/open-webui/open-webui/commit/e303c3da3b174da9e92a79b174f85ba574ca06ef)
- 📝 **Variable input newlines.** Fixed a bug where variables containing newlines were not displayed correctly in chat messages, and input values from Windows systems are now properly normalized to use standard line endings. [#21447](https://github.com/open-webui/open-webui/issues/21447), [Commit](https://github.com/open-webui/open-webui/commit/7b2f597b30c77ef300d1966e1c6a3edfdb0c465d)
- 📷 **Android photo capture.** Fixed an issue where the first photo taken in chat appeared completely black on some Android devices by using an alternative canvas export method. [#22317](https://github.com/open-webui/open-webui/pull/22317)
- 🪟 **Open Terminal Windows path fix.** Fixed a bug where navigating back to parent directories on Windows added an incorrect leading slash, causing directory loads to fail. Paths are now properly normalized for Windows drive letters. [#22352](https://github.com/open-webui/open-webui/issues/22352), [Commit](https://github.com/open-webui/open-webui/commit/044fd1bd15cae06a5c56a321ca79d8362942f66a)
- 🖼️ **Chat overview profile image sizing.** Fixed a bug where profile images in the chat overview could shrink incorrectly in tight spaces. The images now maintain their proper size with the flex-shrink-0 property. [#22261](https://github.com/open-webui/open-webui/pull/22261)
- 📨 **Queued messages display.** Fixed an issue where queued messages could be cut off or hidden. The queued messages area now scrolls properly when content exceeds the visible area, showing up to 25% of the viewport height. [#22176](https://github.com/open-webui/open-webui/pull/22176)
- 🖌️ **Image generation in temporary chats.** Generated images now display correctly in temporary chat mode when using builtin image generation tools. Previously, images were not shown because the code was overwriting the image list with a null database response. [#22330](https://github.com/open-webui/open-webui/pull/22330), [#22309](https://github.com/open-webui/open-webui/issues/22309)
- 🤖 **Ollama model unload fix.** Fixed a bug where unloading a model from Ollama via the Open WebUI proxy failed with a "Field required" error for the prompt field. The proxy now correctly allows omitting the prompt when using keep_alive: 0 to unload models. [#22260](https://github.com/open-webui/open-webui/issues/22260), [Commit](https://github.com/open-webui/open-webui/commit/95b65ff751f91131b633cb128ff2decdd87c4a85)
- 🏷️ **Banner type dropdown fix.** Fixed a bug where selecting a banner type required two clicks to register, as the first selection was being swallowed due to DOM structure changes. The dropdown now works correctly on the first click. [#22378](https://github.com/open-webui/open-webui/pull/22378)
- 📈 **Analytics URL encoding fix.** Fixed a bug where the Analytics page failed to load data for models with slashes in their ID, such as "anthropic/claude-opus-4.6". The frontend now properly URL-encodes forward slashes, allowing model analytics to load correctly. [#22380](https://github.com/open-webui/open-webui/issues/22380), [#22382](https://github.com/open-webui/open-webui/pull/22382)
- 📋 **Analytics chat list duplicate fix.** Fixed a bug where the Analytics page chat list threw an "each_key_duplicate" Svelte error when chat IDs were duplicated during pagination. The fix adds deterministic ordering to prevent duplicate entries. [#22383](https://github.com/open-webui/open-webui/pull/22383)
- 📂 **Folder knowledge base native tool call fix.** Fixed a bug where folders with attached knowledge bases were querying the knowledge base twice when using native tool call mode. The fix now correctly separates knowledge files from regular attachments, letting the builtin query_knowledge_files tool handle knowledge searches instead of duplicating RAG queries. [#22236](https://github.com/open-webui/open-webui/issues/22236), [Commit](https://github.com/open-webui/open-webui/commit/967b1137dcb7a52615f17d086ee89095bb9b60f3), [Commit](https://github.com/open-webui/open-webui/commit/80b5896b70d07ea868e2010b187430d43c9808f0)
## [0.8.8] - 2026-03-02
### Added
+35 -13
View File
@@ -339,6 +339,12 @@ ENABLE_OAUTH_SIGNUP = PersistentConfig(
os.environ.get("ENABLE_OAUTH_SIGNUP", "False").lower() == "true",
)
OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE = PersistentConfig(
"OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE",
"oauth.refresh_token_include_scope",
os.environ.get("OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE", "False").lower() == "true",
)
OAUTH_MERGE_ACCOUNTS_BY_EMAIL = PersistentConfig(
"OAUTH_MERGE_ACCOUNTS_BY_EMAIL",
@@ -1960,7 +1966,7 @@ Suggest 3-5 relevant follow-up questions or prompts that the user might naturall
- Only suggest follow-ups that make sense given the chat content and do not repeat what was already covered.
- If the conversation is very short or not specific, suggest more general (but relevant) follow-ups the user might ask.
- Use the conversation's primary language; default to English if multilingual.
- Response must be a JSON array of strings, no extra text or formatting.
- Response must be a JSON object with a "follow_ups" key containing an array of strings, no extra text or formatting.
### Output:
JSON format: { "follow_ups": ["Question 1?", "Question 2?", "Question 3?"] }
### Chat History:
@@ -2290,20 +2296,36 @@ CODE_INTERPRETER_BLOCKED_MODULES = [
]
DEFAULT_CODE_INTERPRETER_PROMPT = """
#### Tools Available
#### Code Interpreter
1. **Code Interpreter**: `<code_interpreter type="code" lang="python"></code_interpreter>`
- You have access to a Python shell that runs directly in the user's browser, enabling fast execution of code for analysis, calculations, or problem-solving. Use it in this response.
- The Python code you write can incorporate a wide array of libraries, handle data manipulation or visualization, perform API calls for web-related tasks, or tackle virtually any computational challenge. Use this flexibility to **think outside the box, craft elegant solutions, and harness Python's full potential**.
- To use it, **you must enclose your code within `<code_interpreter type="code" lang="python">` XML tags** and stop right away. If you don't, the code won't execute.
- When writing code in the code_interpreter XML tag, Do NOT use the triple backticks code block for markdown formatting, example: ```py # python code ``` will cause an error because it is markdown formatting, it is not python code.
- When coding, **always aim to print meaningful outputs** (e.g., results, tables, summaries, or visuals) to better interpret and verify the findings. Avoid relying on implicit outputs; prioritize explicit and clear print statements so the results are effectively communicated to the user.
- After obtaining the printed output, **always provide a concise analysis, interpretation, or next steps to help the user understand the findings or refine the outcome further.**
- If the results are unclear, unexpected, or require validation, refine the code and execute it again as needed. Always aim to deliver meaningful insights from the results, iterating if necessary.
- **If a link to an image, audio, or any file is provided in markdown format in the output, ALWAYS regurgitate word for word, explicitly display it as part of the response to ensure the user can access it easily, do NOT change the link.**
- All responses should be communicated in the chat's primary language, ensuring seamless understanding. If the chat is multilingual, default to English for clarity.
You have access to a Python code interpreter via: `<code_interpreter type="code" lang="python"></code_interpreter>`
Ensure that the tools are effectively utilized to achieve the highest-quality analysis for the user."""
- The Python shell runs directly in the user's browser for fast execution of analysis, calculations, or problem-solving. Use it in this response.
- You can use a wide array of libraries for data manipulation, visualization, API calls, or any computational task. Think outside the box and harness Python's full potential.
- **You must enclose your code within `<code_interpreter type="code" lang="python">` XML tags** and stop right away. If you don't, the code won't execute.
- Do NOT use triple backticks (```py ... ```) inside the XML tags — that is markdown formatting, not executable Python code.
- **Always print meaningful outputs** (results, tables, summaries, visuals). Avoid implicit outputs; use explicit print statements.
- After obtaining output, **provide a concise analysis, interpretation, or next steps** to help the user understand the findings.
- If results are unclear or unexpected, refine the code and re-execute. Iterate until you deliver meaningful insights.
- **If a link to an image, audio, or any file appears in the output, display it exactly as-is** in your response so the user can access it. Do not modify the link.
- Respond in the chat's primary language. Default to English if multilingual.
Ensure the code interpreter is effectively utilized to achieve the highest-quality analysis for the user."""
# Appended to the code interpreter prompt only when engine is pyodide (not jupyter)
CODE_INTERPRETER_PYODIDE_PROMPT = """
##### Pyodide Environment
- This Python environment runs via Pyodide in the browser. **Do not install packages** — `pip install`, `subprocess`, and `micropip.install()` are not available.
- If a required library is unavailable, use an alternative approach with available modules. Do not attempt to install anything.
##### Persistent File System
- User-uploaded files are available at `/mnt/uploads/`. When the user asks you to work with their files, read from this directory.
- You can also write output files to `/mnt/uploads/` so the user can access and download them from the file browser.
- The file system persists across code executions within the same session.
- Use `import os; os.listdir('/mnt/uploads')` to discover available files."""
####################################
+10
View File
@@ -788,6 +788,16 @@ try:
except ValueError:
WEBSOCKET_SERVER_PING_INTERVAL = 25
WEBSOCKET_EVENT_CALLER_TIMEOUT = os.environ.get("WEBSOCKET_EVENT_CALLER_TIMEOUT", "")
if WEBSOCKET_EVENT_CALLER_TIMEOUT == "":
WEBSOCKET_EVENT_CALLER_TIMEOUT = None
else:
try:
WEBSOCKET_EVENT_CALLER_TIMEOUT = int(WEBSOCKET_EVENT_CALLER_TIMEOUT)
except ValueError:
WEBSOCKET_EVENT_CALLER_TIMEOUT = 300
REQUESTS_VERIFY = os.environ.get("REQUESTS_VERIFY", "True").lower() == "true"
+24 -5
View File
@@ -102,11 +102,30 @@ if SQLALCHEMY_DATABASE_URL.startswith("sqlite+sqlcipher://"):
conn.execute(f"PRAGMA key = '{database_password}'")
return conn
engine = create_engine(
"sqlite://", # Dummy URL since we're using creator
creator=create_sqlcipher_connection,
echo=False,
)
# The dummy "sqlite://" URL would cause SQLAlchemy to auto-select
# SingletonThreadPool, which non-deterministically closes in-use
# connections when thread count exceeds pool_size, leading to segfaults
# in the native sqlcipher3 C library. Use NullPool by default for safety,
# or QueuePool if DATABASE_POOL_SIZE is explicitly configured.
if isinstance(DATABASE_POOL_SIZE, int) and DATABASE_POOL_SIZE > 0:
engine = create_engine(
"sqlite://",
creator=create_sqlcipher_connection,
pool_size=DATABASE_POOL_SIZE,
max_overflow=DATABASE_POOL_MAX_OVERFLOW,
pool_timeout=DATABASE_POOL_TIMEOUT,
pool_recycle=DATABASE_POOL_RECYCLE,
pool_pre_ping=True,
poolclass=QueuePool,
echo=False,
)
else:
engine = create_engine(
"sqlite://",
creator=create_sqlcipher_connection,
poolclass=NullPool,
echo=False,
)
log.info("Connected to encrypted SQLite database using SQLCipher")
+40 -33
View File
@@ -1398,46 +1398,52 @@ app.add_middleware(RedirectMiddleware)
app.add_middleware(SecurityHeadersMiddleware)
class APIKeyRestrictionMiddleware(BaseHTTPMiddleware):
async def dispatch(self, request: Request, call_next):
auth_header = request.headers.get("Authorization")
token = None
class APIKeyRestrictionMiddleware:
def __init__(self, app):
self.app = app
if auth_header:
parts = auth_header.split(" ", 1)
if len(parts) == 2:
token = parts[1]
async def __call__(self, scope, receive, send):
if scope["type"] == "http":
request = Request(scope)
auth_header = request.headers.get("Authorization")
token = None
# Only apply restrictions if an sk- API key is used
if token and token.startswith("sk-"):
# Check if restrictions are enabled
if request.app.state.config.ENABLE_API_KEYS_ENDPOINT_RESTRICTIONS:
allowed_paths = [
path.strip()
for path in str(
request.app.state.config.API_KEYS_ALLOWED_ENDPOINTS
).split(",")
if path.strip()
]
if auth_header:
parts = auth_header.split(" ", 1)
if len(parts) == 2:
token = parts[1]
request_path = request.url.path
# Only apply restrictions if an sk- API key is used
if token and token.startswith("sk-"):
# Check if restrictions are enabled
if app.state.config.ENABLE_API_KEYS_ENDPOINT_RESTRICTIONS:
allowed_paths = [
path.strip()
for path in str(
app.state.config.API_KEYS_ALLOWED_ENDPOINTS
).split(",")
if path.strip()
]
# Match exact path or prefix path
is_allowed = any(
request_path == allowed or request_path.startswith(allowed + "/")
for allowed in allowed_paths
)
request_path = request.url.path
if not is_allowed:
return JSONResponse(
status_code=status.HTTP_403_FORBIDDEN,
content={
"detail": "API key not allowed to access this endpoint."
},
# Match exact path or prefix path
is_allowed = any(
request_path == allowed
or request_path.startswith(allowed + "/")
for allowed in allowed_paths
)
response = await call_next(request)
return response
if not is_allowed:
await JSONResponse(
status_code=status.HTTP_403_FORBIDDEN,
content={
"detail": "API key not allowed to access this endpoint."
},
)(scope, receive, send)
return
await self.app(scope, receive, send)
app.add_middleware(APIKeyRestrictionMiddleware)
@@ -2187,6 +2193,7 @@ async def get_app_config(request: Request):
"user_count": user_count,
"code": {
"engine": app.state.config.CODE_EXECUTION_ENGINE,
"interpreter_engine": app.state.config.CODE_INTERPRETER_ENGINE,
},
"audio": {
"tts": {
@@ -21,6 +21,39 @@ down_revision: Union[str, None] = "374d2f66af06"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
BATCH_SIZE = 5000
def _flush_batch(conn, table, batch):
"""
Insert a batch of messages, falling back to row-by-row on error.
Tries a single bulk insert first (fast path). If that fails (e.g. due to
a duplicate key), falls back to individual inserts wrapped in savepoints
so the rest of the batch can still succeed.
"""
savepoint = conn.begin_nested()
try:
conn.execute(sa.insert(table), batch)
savepoint.commit()
return len(batch), 0
except Exception:
savepoint.rollback()
# Batch failed - insert one-by-one to isolate the bad row(s)
inserted = 0
failed = 0
for msg in batch:
sp = conn.begin_nested()
try:
conn.execute(sa.insert(table).values(**msg))
sp.commit()
inserted += 1
except Exception as e:
sp.rollback()
failed += 1
log.warning(f"Failed to insert message {msg['id']}: {e}")
return inserted, failed
def upgrade() -> None:
# Step 1: Create table
@@ -88,18 +121,21 @@ def upgrade() -> None:
sa.column("updated_at", sa.BigInteger()),
)
# Fetch all chats (excluding shared chats which have user_id starting with 'shared-')
chats = conn.execute(
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat).where(
~chat_table.c.user_id.like("shared-%")
)
).fetchall()
# Stream rows instead of loading all into memory:
# - yield_per: fetches rows in chunks via cursor.fetchmany() (all backends)
# - stream_results: enables server-side cursors on PostgreSQL (no-op on SQLite)
result = conn.execute(
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat)
.where(~chat_table.c.user_id.like("shared-%"))
.execution_options(yield_per=1000, stream_results=True)
)
now = int(time.time())
messages_inserted = 0
messages_failed = 0
messages_batch = []
total_inserted = 0
total_failed = 0
for chat_row in chats:
for chat_row in result:
chat_id = chat_row[0]
user_id = chat_row[1]
chat_data = chat_row[2]
@@ -139,39 +175,49 @@ def upgrade() -> None:
if timestamp < 1577836800 or timestamp > now + 86400:
timestamp = now
# Use savepoint to allow individual insert failures without aborting transaction
savepoint = conn.begin_nested()
try:
conn.execute(
sa.insert(chat_message_table).values(
id=f"{chat_id}-{message_id}",
chat_id=chat_id,
user_id=user_id,
role=role,
parent_id=message.get("parentId"),
content=message.get("content"),
output=message.get("output"),
model_id=message.get("model"),
files=message.get("files"),
sources=message.get("sources"),
embeds=message.get("embeds"),
done=message.get("done", True),
status_history=message.get("statusHistory"),
error=message.get("error"),
created_at=timestamp,
updated_at=timestamp,
)
messages_batch.append(
{
"id": f"{chat_id}-{message_id}",
"chat_id": chat_id,
"user_id": user_id,
"role": role,
"parent_id": message.get("parentId"),
"content": message.get("content"),
"output": message.get("output"),
"model_id": message.get("model"),
"files": message.get("files"),
"sources": message.get("sources"),
"embeds": message.get("embeds"),
"done": message.get("done", True),
"status_history": message.get("statusHistory"),
"error": message.get("error"),
"usage": message.get("usage"),
"created_at": timestamp,
"updated_at": timestamp,
}
)
# Flush batch when full
if len(messages_batch) >= BATCH_SIZE:
inserted, failed = _flush_batch(
conn, chat_message_table, messages_batch
)
savepoint.commit()
messages_inserted += 1
except Exception as e:
savepoint.rollback()
messages_failed += 1
log.warning(f"Failed to insert message {message_id}: {e}")
continue
total_inserted += inserted
total_failed += failed
if total_inserted % 50000 < BATCH_SIZE:
log.info(
f"Migration progress: {total_inserted} messages inserted..."
)
messages_batch.clear()
# Flush remaining messages
if messages_batch:
inserted, failed = _flush_batch(conn, chat_message_table, messages_batch)
total_inserted += inserted
total_failed += failed
log.info(
f"Backfilled {messages_inserted} messages into chat_message table ({messages_failed} failed)"
f"Backfilled {total_inserted} messages into chat_message table ({total_failed} failed)"
)
+3 -1
View File
@@ -292,9 +292,11 @@ class ChatMessageTable:
query = query.filter(ChatMessage.created_at <= end_date)
# Group by chat_id and order by most recent message in each chat
# Secondary sort on chat_id ensures deterministic pagination
# (prevents duplicates across pages when timestamps tie)
chat_ids = (
query.group_by(ChatMessage.chat_id)
.order_by(func.max(ChatMessage.created_at).desc())
.order_by(func.max(ChatMessage.created_at).desc(), ChatMessage.chat_id)
.offset(skip)
.limit(limit)
.all()
+20 -16
View File
@@ -734,13 +734,13 @@ class ChatTable:
raise ValueError("Invalid order_by field")
if direction.lower() == "asc":
query = query.order_by(getattr(Chat, order_by).asc())
query = query.order_by(getattr(Chat, order_by).asc(), Chat.id)
elif direction.lower() == "desc":
query = query.order_by(getattr(Chat, order_by).desc())
query = query.order_by(getattr(Chat, order_by).desc(), Chat.id)
else:
raise ValueError("Invalid direction for ordering")
else:
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
query = query.with_entities(
Chat.id, Chat.title, Chat.updated_at, Chat.created_at
@@ -793,13 +793,13 @@ class ChatTable:
raise ValueError("Invalid order_by field")
if direction.lower() == "asc":
query = query.order_by(getattr(Chat, order_by).asc())
query = query.order_by(getattr(Chat, order_by).asc(), Chat.id)
elif direction.lower() == "desc":
query = query.order_by(getattr(Chat, order_by).desc())
query = query.order_by(getattr(Chat, order_by).desc(), Chat.id)
else:
raise ValueError("Invalid direction for ordering")
else:
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
# Select only the columns needed for SharedChatResponse
# to avoid loading the heavy chat JSON blob
@@ -854,13 +854,13 @@ class ChatTable:
if order_by and direction and getattr(Chat, order_by):
if direction.lower() == "asc":
query = query.order_by(getattr(Chat, order_by).asc())
query = query.order_by(getattr(Chat, order_by).asc(), Chat.id)
elif direction.lower() == "desc":
query = query.order_by(getattr(Chat, order_by).desc())
query = query.order_by(getattr(Chat, order_by).desc(), Chat.id)
else:
raise ValueError("Invalid direction for ordering")
else:
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
if skip:
query = query.offset(skip)
@@ -892,7 +892,7 @@ class ChatTable:
if not include_archived:
query = query.filter_by(archived=False)
query = query.order_by(Chat.updated_at.desc()).with_entities(
query = query.order_by(Chat.updated_at.desc(), Chat.id).with_entities(
Chat.id, Chat.title, Chat.updated_at, Chat.created_at
)
@@ -1039,14 +1039,18 @@ class ChatTable:
if order_by and direction:
if hasattr(Chat, order_by):
if direction.lower() == "asc":
query = query.order_by(getattr(Chat, order_by).asc())
query = query.order_by(
getattr(Chat, order_by).asc(), Chat.id
)
elif direction.lower() == "desc":
query = query.order_by(getattr(Chat, order_by).desc())
query = query.order_by(
getattr(Chat, order_by).desc(), Chat.id
)
else:
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
else:
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
total = query.count()
@@ -1188,7 +1192,7 @@ class ChatTable:
if folder_ids:
query = query.filter(Chat.folder_id.in_(folder_ids))
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
# Check if the database dialect is either 'sqlite' or 'postgresql'
dialect_name = db.bind.dialect.name
@@ -1309,7 +1313,7 @@ class ChatTable:
query = query.filter(or_(Chat.pinned == False, Chat.pinned == None))
query = query.filter_by(archived=False)
query = query.order_by(Chat.updated_at.desc())
query = query.order_by(Chat.updated_at.desc(), Chat.id)
if skip:
query = query.offset(skip)
+1
View File
@@ -71,6 +71,7 @@ class FolderForm(BaseModel):
name: str
data: Optional[dict] = None
meta: Optional[dict] = None
parent_id: Optional[str] = None
model_config = ConfigDict(extra="allow")
+22
View File
@@ -308,6 +308,28 @@ class FunctionsTable:
log.exception(f"Error getting function valves by id {id}: {e}")
return None
def get_function_valves_by_ids(
self, ids: list[str], db: Optional[Session] = None
) -> dict[str, dict]:
"""
Batch fetch valves for multiple functions in a single query.
Returns a dict mapping function_id -> valves dict.
Functions without valves are mapped to {}.
"""
if not ids:
return {}
try:
with get_db_context(db) as db:
functions = (
db.query(Function.id, Function.valves)
.filter(Function.id.in_(ids))
.all()
)
return {f.id: (f.valves if f.valves else {}) for f in functions}
except Exception as e:
log.exception(f"Error batch-fetching function valves: {e}")
return {}
def update_function_valves_by_id(
self, id: str, valves: dict, db: Optional[Session] = None
) -> Optional[FunctionValves]:
+2 -2
View File
@@ -278,7 +278,7 @@ class ModelChatsResponse(BaseModel):
total: int
@router.get("/models/{model_id}/chats", response_model=ModelChatsResponse)
@router.get("/models/{model_id:path}/chats", response_model=ModelChatsResponse)
async def get_model_chats(
model_id: str,
start_date: Optional[int] = Query(None),
@@ -367,7 +367,7 @@ class ModelOverviewResponse(BaseModel):
tags: list[TagEntry]
@router.get("/models/{model_id}/overview", response_model=ModelOverviewResponse)
@router.get("/models/{model_id:path}/overview", response_model=ModelOverviewResponse)
async def get_model_overview(
model_id: str,
days: int = Query(30, description="Number of days of history (0 for all)"),
+7 -3
View File
@@ -119,7 +119,7 @@ def create_folder(
db: Session = Depends(get_session),
):
folder = Folders.get_folder_by_parent_id_and_user_id_and_name(
None, user.id, form_data.name, db=db
form_data.parent_id, user.id, form_data.name, db=db
)
if folder:
@@ -129,7 +129,9 @@ def create_folder(
)
try:
folder = Folders.insert_new_folder(user.id, form_data, db=db)
folder = Folders.insert_new_folder(
user.id, form_data, form_data.parent_id, db=db
)
return folder
except Exception as e:
log.exception(e)
@@ -317,7 +319,9 @@ async def delete_folder_by_id(
folder = folders.pop()
if folder:
try:
folder_ids = Folders.delete_folder_by_id_and_user_id(id, user.id, db=db)
folder_ids = Folders.delete_folder_by_id_and_user_id(
folder.id, user.id, db=db
)
for folder_id in folder_ids:
if delete_contents:
+1 -1
View File
@@ -1176,7 +1176,7 @@ async def embeddings(
class GenerateCompletionForm(BaseModel):
model: str
prompt: str
prompt: Optional[str] = None
suffix: Optional[str] = None
images: Optional[list[str]] = None
format: Optional[Union[dict, str]] = None
+27 -24
View File
@@ -729,10 +729,10 @@ class ConfigForm(BaseModel):
CHUNK_OVERLAP: Optional[int] = None
# File upload settings
FILE_MAX_SIZE: Optional[int] = None
FILE_MAX_COUNT: Optional[int] = None
FILE_IMAGE_COMPRESSION_WIDTH: Optional[int] = None
FILE_IMAGE_COMPRESSION_HEIGHT: Optional[int] = None
FILE_MAX_SIZE: Optional[Union[int, str]] = None
FILE_MAX_COUNT: Optional[Union[int, str]] = None
FILE_IMAGE_COMPRESSION_WIDTH: Optional[Union[int, str]] = None
FILE_IMAGE_COMPRESSION_HEIGHT: Optional[Union[int, str]] = None
ALLOWED_FILE_EXTENSIONS: Optional[List[str]] = None
# Integration settings
@@ -1055,26 +1055,29 @@ async def update_rag_config(
)
# File upload settings
request.app.state.config.FILE_MAX_SIZE = (
form_data.FILE_MAX_SIZE
if form_data.FILE_MAX_SIZE is not None
else request.app.state.config.FILE_MAX_SIZE
)
request.app.state.config.FILE_MAX_COUNT = (
form_data.FILE_MAX_COUNT
if form_data.FILE_MAX_COUNT is not None
else request.app.state.config.FILE_MAX_COUNT
)
request.app.state.config.FILE_IMAGE_COMPRESSION_WIDTH = (
form_data.FILE_IMAGE_COMPRESSION_WIDTH
if form_data.FILE_IMAGE_COMPRESSION_WIDTH is not None
else request.app.state.config.FILE_IMAGE_COMPRESSION_WIDTH
)
request.app.state.config.FILE_IMAGE_COMPRESSION_HEIGHT = (
form_data.FILE_IMAGE_COMPRESSION_HEIGHT
if form_data.FILE_IMAGE_COMPRESSION_HEIGHT is not None
else request.app.state.config.FILE_IMAGE_COMPRESSION_HEIGHT
)
# Empty string means "clear to None" (unlimited/no compression),
# None means "don't change", int means "set to this value"
if form_data.FILE_MAX_SIZE is not None:
request.app.state.config.FILE_MAX_SIZE = (
None if form_data.FILE_MAX_SIZE == "" else form_data.FILE_MAX_SIZE
)
if form_data.FILE_MAX_COUNT is not None:
request.app.state.config.FILE_MAX_COUNT = (
None if form_data.FILE_MAX_COUNT == "" else form_data.FILE_MAX_COUNT
)
if form_data.FILE_IMAGE_COMPRESSION_WIDTH is not None:
request.app.state.config.FILE_IMAGE_COMPRESSION_WIDTH = (
None
if form_data.FILE_IMAGE_COMPRESSION_WIDTH == ""
else form_data.FILE_IMAGE_COMPRESSION_WIDTH
)
if form_data.FILE_IMAGE_COMPRESSION_HEIGHT is not None:
request.app.state.config.FILE_IMAGE_COMPRESSION_HEIGHT = (
None
if form_data.FILE_IMAGE_COMPRESSION_HEIGHT == ""
else form_data.FILE_IMAGE_COMPRESSION_HEIGHT
)
request.app.state.config.ALLOWED_FILE_EXTENSIONS = (
form_data.ALLOWED_FILE_EXTENSIONS
if form_data.ALLOWED_FILE_EXTENSIONS is not None
+1 -1
View File
@@ -19,7 +19,7 @@ from open_webui.models.skills import (
)
from open_webui.models.access_grants import AccessGrants
from open_webui.utils.auth import get_admin_user, get_verified_user
from open_webui.utils.access_control import has_access, has_permission
from open_webui.utils.access_control import has_permission, filter_allowed_access_grants
from open_webui.config import BYPASS_ADMIN_ACCESS_CONTROL
from open_webui.constants import ERROR_MESSAGES
+1 -1
View File
@@ -30,7 +30,7 @@ from open_webui.utils.plugin import (
)
from open_webui.utils.tools import get_tool_specs
from open_webui.utils.auth import get_admin_user, get_verified_user
from open_webui.utils.access_control import has_access, has_permission
from open_webui.utils.access_control import has_permission, filter_allowed_access_grants
from open_webui.utils.tools import get_tool_servers
from open_webui.config import CACHE_DIR, BYPASS_ADMIN_ACCESS_CONTROL
+2
View File
@@ -37,6 +37,7 @@ from open_webui.env import (
WEBSOCKET_SERVER_PING_INTERVAL,
WEBSOCKET_SERVER_LOGGING,
WEBSOCKET_SERVER_ENGINEIO_LOGGING,
WEBSOCKET_EVENT_CALLER_TIMEOUT,
)
from open_webui.utils.auth import decode_token
from open_webui.socket.utils import RedisDict, RedisLock, YdocManager
@@ -918,6 +919,7 @@ def get_event_call(request_info):
"data": event_data,
},
to=request_info["session_id"],
timeout=WEBSOCKET_EVENT_CALLER_TIMEOUT,
)
return response
+10 -4
View File
@@ -155,8 +155,7 @@ async def search_web(
) -> str:
"""
Search the public web for information. Best for current events, external references,
or topics not covered in internal documents. If knowledge base tools are available,
consider checking those first for internal information.
or topics not covered in internal documents.
:param query: The search query to look up
:param count: Number of results to return (default: 5)
@@ -250,11 +249,13 @@ async def generate_image(
# Persist files to DB if chat context is available
if __chat_id__ and __message_id__ and images:
image_files = Chats.add_message_files_by_id_and_message_id(
db_files = Chats.add_message_files_by_id_and_message_id(
__chat_id__,
__message_id__,
image_files,
)
if db_files is not None:
image_files = db_files
# Emit the images to the UI if event emitter is available
if __event_emitter__ and image_files:
@@ -315,11 +316,13 @@ async def edit_image(
# Persist files to DB if chat context is available
if __chat_id__ and __message_id__ and images:
image_files = Chats.add_message_files_by_id_and_message_id(
db_files = Chats.add_message_files_by_id_and_message_id(
__chat_id__,
__message_id__,
image_files,
)
if db_files is not None:
image_files = db_files
# Emit the images to the UI if event emitter is available
if __event_emitter__ and image_files:
@@ -426,6 +429,9 @@ async def execute_code(
"session_id": (
__metadata__.get("session_id") if __metadata__ else None
),
"files": (
__metadata__.get("files", []) if __metadata__ else []
),
},
}
)
+235 -89
View File
@@ -1,3 +1,4 @@
import copy
import time
import logging
import sys
@@ -119,6 +120,7 @@ from open_webui.config import (
DEFAULT_VOICE_MODE_PROMPT_TEMPLATE,
DEFAULT_TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE,
DEFAULT_CODE_INTERPRETER_PROMPT,
CODE_INTERPRETER_PYODIDE_PROMPT,
CODE_INTERPRETER_BLOCKED_MODULES,
)
from open_webui.env import (
@@ -160,6 +162,55 @@ def output_id(prefix: str) -> str:
return f"{prefix}_{uuid4().hex[:24]}"
def _split_tool_calls(
tool_calls: list[dict],
) -> list[dict]:
"""Expand tool calls whose arguments contain multiple back-to-back JSON objects.
Some models (e.g. GPT-5.4) send multiple complete JSON argument objects
under the same tool call index, producing concatenated invalid JSON like:
'{"query":"A","count":5}{"query":"B","count":5}'
Each such tool call is split into separate entries so each gets executed
independently. Single-object arguments pass through unchanged.
"""
def split_json_objects(raw: str) -> list[str]:
decoder = json.JSONDecoder()
results = []
position = 0
while position < len(raw):
while position < len(raw) and raw[position].isspace():
position += 1
if position >= len(raw):
break
try:
_, end = decoder.raw_decode(raw, position)
results.append(raw[position:end].strip())
position = end
except json.JSONDecodeError:
return [raw]
return results or [raw]
expanded = []
for tool_call in tool_calls:
arguments = tool_call.get("function", {}).get("arguments", "")
split_arguments = split_json_objects(arguments)
if len(split_arguments) <= 1:
expanded.append(tool_call)
else:
for argument in split_arguments:
cloned = copy.deepcopy(tool_call)
cloned["id"] = f"call_{uuid4().hex[:24]}"
cloned["function"]["arguments"] = argument
expanded.append(cloned)
return expanded
def get_citation_source_from_tool_result(
tool_name: str, tool_params: dict, tool_result: str, tool_id: str = ""
) -> list[dict]:
@@ -173,6 +224,9 @@ def get_citation_source_from_tool_result(
Returns a list of sources (usually one, but query_knowledge_files may return multiple).
"""
_EXPECTS_LIST = {"search_web", "query_knowledge_files"}
_EXPECTS_DICT = {"view_knowledge_file"}
try:
try:
tool_result = json.loads(tool_result)
@@ -181,6 +235,12 @@ def get_citation_source_from_tool_result(
if isinstance(tool_result, dict) and "error" in tool_result:
return []
# Validate tool_result type based on what the branch expects
if tool_name in _EXPECTS_LIST and not isinstance(tool_result, list):
return []
elif tool_name in _EXPECTS_DICT and not isinstance(tool_result, dict):
return []
if tool_name == "search_web":
# Parse JSON array: [{"title": "...", "link": "...", "snippet": "..."}]
results = tool_result
@@ -830,6 +890,32 @@ def handle_responses_streaming_event(
return current_output, None
def get_source_context(
sources: list, source_ids: dict = None, include_content: bool = True
) -> str:
"""
Build <source> tag context string from citation sources.
"""
context_string = ""
if source_ids is None:
source_ids = {}
for source in sources:
for doc, meta in zip(source.get("document", []), source.get("metadata", [])):
source_id = (
meta.get("source") or source.get("source", {}).get("id") or "N/A"
)
if source_id not in source_ids:
source_ids[source_id] = len(source_ids) + 1
src_name = source.get("source", {}).get("name")
body = doc if include_content else ""
context_string += (
f'<source id="{source_ids[source_id]}"'
+ (f' name="{src_name}"' if src_name else "")
+ f">{body}</source>\n"
)
return context_string
def apply_source_context_to_messages(
request: Request,
messages: list,
@@ -848,39 +934,21 @@ def apply_source_context_to_messages(
if not sources or not user_message:
return messages
context_string = ""
citation_idx = {}
context = get_source_context(sources, include_content=include_content)
for source in sources:
for doc, meta in zip(source.get("document", []), source.get("metadata", [])):
src_id = meta.get("source") or source.get("source", {}).get("id") or "N/A"
if src_id not in citation_idx:
citation_idx[src_id] = len(citation_idx) + 1
src_name = source.get("source", {}).get("name")
body = doc if include_content else ""
context_string += (
f'<source id="{citation_idx[src_id]}"'
+ (f' name="{src_name}"' if src_name else "")
+ f">{body}</source>\n"
)
context_string = context_string.strip()
if not context_string:
context = context.strip()
if not context:
return messages
if RAG_SYSTEM_CONTEXT:
return add_or_update_system_message(
rag_template(
request.app.state.config.RAG_TEMPLATE, context_string, user_message
),
rag_template(request.app.state.config.RAG_TEMPLATE, context, user_message),
messages,
append=True,
)
else:
return add_or_update_user_message(
rag_template(
request.app.state.config.RAG_TEMPLATE, context_string, user_message
),
rag_template(request.app.state.config.RAG_TEMPLATE, context, user_message),
messages,
append=False,
)
@@ -1053,16 +1121,16 @@ async def terminal_event_handler(
"""Emit terminal:* events for Open Terminal tools.
- display_file → emits 'terminal:display_file' to open the file preview.
- write_file → emits 'terminal:write_file' to silently refresh the file browser.
- write_file / replace_file_content → emits 'terminal:write_file' to refresh.
- run_command → emits 'terminal:run_command' with cwd to refresh if relevant.
"""
if not event_emitter:
return
path = tool_function_params.get("path", "")
if not path:
return
if tool_function_name == "display_file":
path = tool_function_params.get("path", "")
if not path:
return
# Only emit if the file actually exists
parsed = tool_result
if isinstance(parsed, str):
@@ -1079,13 +1147,23 @@ async def terminal_event_handler(
"data": {"path": path},
}
)
elif tool_function_name == "write_file":
elif tool_function_name in ("write_file", "replace_file_content"):
path = tool_function_params.get("path", "")
if not path:
return
await event_emitter(
{
"type": f"terminal:{tool_function_name}",
"data": {"path": path},
}
)
elif tool_function_name == "run_command":
await event_emitter(
{
"type": "terminal:run_command",
"data": {},
}
)
async def chat_completion_tools_handler(
@@ -2171,10 +2249,15 @@ async def process_chat_payload(request, form_data, user, metadata, model):
folder.data["system_prompt"], form_data, metadata, user
)
if "files" in folder.data:
form_data["files"] = [
*folder.data["files"],
*form_data.get("files", []),
]
if metadata.get("params", {}).get("function_calling") != "native":
form_data["files"] = [
*folder.data["files"],
*form_data.get("files", []),
]
else:
# Native FC: skip RAG injection, builtin tools
# will read folder knowledge from metadata.
metadata["folder_knowledge"] = folder.data["files"]
# Model "Knowledge" handling
user_message = get_last_user_message(form_data["messages"])
@@ -2284,18 +2367,35 @@ async def process_chat_payload(request, form_data, user, metadata, model):
)
if "code_interpreter" in features and features["code_interpreter"]:
engine = getattr(
request.app.state.config, "CODE_INTERPRETER_ENGINE", "pyodide"
)
# Skip XML-tag prompt injection when native FC is enabled —
# execute_code will be injected as a builtin tool instead
if metadata.get("params", {}).get("function_calling") != "native":
prompt = (
request.app.state.config.CODE_INTERPRETER_PROMPT_TEMPLATE
if request.app.state.config.CODE_INTERPRETER_PROMPT_TEMPLATE != ""
else DEFAULT_CODE_INTERPRETER_PROMPT
)
# Append filesystem awareness only for pyodide engine
if engine != "jupyter":
prompt += CODE_INTERPRETER_PYODIDE_PROMPT
form_data["messages"] = add_or_update_user_message(
(
request.app.state.config.CODE_INTERPRETER_PROMPT_TEMPLATE
if request.app.state.config.CODE_INTERPRETER_PROMPT_TEMPLATE
!= ""
else DEFAULT_CODE_INTERPRETER_PROMPT
),
prompt,
form_data["messages"],
)
else:
# Native FC: tool docstring can't be dynamic, so inject
# filesystem context into messages for pyodide engine
if engine != "jupyter":
form_data["messages"] = add_or_update_user_message(
CODE_INTERPRETER_PYODIDE_PROMPT,
form_data["messages"],
)
tool_ids = form_data.pop("tool_ids", None)
terminal_id = form_data.pop("terminal_id", None)
@@ -2645,6 +2745,16 @@ async def process_chat_payload(request, form_data, user, metadata, model):
except Exception as e:
log.exception(e)
# Save the pre-RAG message state so the native tool call loop can
# restore to the true original (before file-source injection) rather
# than a snapshot that already has the RAG template baked in.
system_message = get_system_message(form_data["messages"])
metadata["system_prompt"] = (
get_content_from_message(system_message) if system_message else None
)
metadata["user_prompt"] = get_last_user_message(form_data["messages"])
metadata["sources"] = sources[:] if sources else []
# If context is not empty, insert it into the messages
if sources and prompt:
form_data["messages"] = apply_source_context_to_messages(
@@ -3083,6 +3193,8 @@ async def non_streaming_chat_response_handler(response, ctx):
)
# Save message in the database
usage = normalize_usage(response_data.get("usage", {}) or {})
Chats.upsert_message_to_chat_by_id_and_message_id(
metadata["chat_id"],
metadata["message_id"],
@@ -3090,6 +3202,7 @@ async def non_streaming_chat_response_handler(response, ctx):
"role": "assistant",
"content": content,
"output": response_output,
**({"usage": usage} if usage else {}),
},
)
@@ -3719,7 +3832,7 @@ async def streaming_chat_response_handler(response, ctx):
if delta_name:
current_response_tool_call[
"function"
]["name"] += delta_name
]["name"] = delta_name
if delta_arguments:
current_response_tool_call[
@@ -3767,14 +3880,17 @@ async def streaming_chat_response_handler(response, ctx):
delta.get("images", []), request, metadata, user
)
if image_urls:
image_file_list = [
{"type": "image", "url": url}
for url in image_urls
]
message_files = Chats.add_message_files_by_id_and_message_id(
metadata["chat_id"],
metadata["message_id"],
[
{"type": "image", "url": url}
for url in image_urls
],
image_file_list,
)
if message_files is None:
message_files = image_file_list
await event_emitter(
{
@@ -4079,7 +4195,7 @@ async def streaming_chat_response_handler(response, ctx):
reasoning_item["status"] = "completed"
if response_tool_calls:
tool_calls.append(response_tool_calls)
tool_calls.append(_split_tool_calls(response_tool_calls))
if response.background:
await response.background()
@@ -4096,16 +4212,17 @@ async def streaming_chat_response_handler(response, ctx):
model.get("info", {}).get("meta", {}).get("capabilities") or {}
).get("citations", True)
# Save original system message so we can restore it before
# re-applying source context (prevents duplication when
# RAG_SYSTEM_CONTEXT is enabled and the template is appended
# to the system message on each iteration).
original_system_message = get_system_message(form_data["messages"])
original_system_content = (
get_content_from_message(original_system_message)
if original_system_message
else None
)
# Use the pre-RAG system content captured before the
# initial file-source injection in process_chat_payload.
# This ensures restore truly undoes the RAG template.
original_system_content = metadata.get("system_prompt")
if original_system_content is None:
original_system_message = get_system_message(form_data["messages"])
original_system_content = (
get_content_from_message(original_system_message)
if original_system_message
else None
)
while (
len(tool_calls) > 0
@@ -4153,25 +4270,26 @@ async def streaming_chat_response_handler(response, ctx):
tool_args = tool_call.get("function", {}).get("arguments", "{}")
tool_function_params = {}
try:
# json.loads cannot be used because some models do not produce valid JSON
tool_function_params = ast.literal_eval(tool_args)
except Exception as e:
log.debug(e)
# Fallback to JSON parsing
if tool_args and tool_args.strip():
try:
tool_function_params = json.loads(tool_args)
# json.loads cannot be used because some models do not produce valid JSON
tool_function_params = ast.literal_eval(tool_args)
except Exception as e:
log.error(
f"Error parsing tool call arguments: {tool_args}"
)
results.append(
{
"tool_call_id": tool_call_id,
"content": f"Error: Tool call arguments could not be parsed. The model generated malformed or incomplete JSON for `{tool_function_name}`. Please try again.",
}
)
continue
log.debug(e)
# Fallback to JSON parsing
try:
tool_function_params = json.loads(tool_args)
except Exception as e:
log.error(
f"Error parsing tool call arguments: {tool_args}"
)
results.append(
{
"tool_call_id": tool_call_id,
"content": f"Error: Tool call arguments could not be parsed. The model generated malformed or incomplete JSON for `{tool_function_name}`. Please try again.",
}
)
continue
# Ensure arguments are valid JSON for downstream LLM integrations
log.debug(
@@ -4352,34 +4470,61 @@ async def streaming_chat_response_handler(response, ctx):
}
)
# Emit citation sources and apply source context to messages
# Emit citation sources to the frontend for display
if citations_enabled:
for source in tool_call_sources:
await event_emitter({"type": "source", "data": source})
# Apply source context to messages for model.
# Use include_content=False to avoid duplicating content
# that is already in the tool result message.
# Apply tool source context to messages for the model.
# Restoring to pre-RAG original prevents duplicating
# the RAG template across file and tool sources.
all_tool_call_sources.extend(tool_call_sources)
if all_tool_call_sources and user_message:
# Restore original messages before re-applying to
# avoid recursive nesting (user message) and
# duplication (system message with RAG_SYSTEM_CONTEXT).
set_last_user_message_content(
user_message, form_data["messages"]
# Restore pre-RAG message state before re-applying
# to prevent RAG template duplication.
original_user_message = (
metadata.get("user_prompt") or user_message
)
if original_system_content is not None:
replace_system_message_content(
original_system_content,
form_data["messages"],
)
form_data["messages"] = apply_source_context_to_messages(
request,
set_last_user_message_content(
original_user_message,
form_data["messages"],
)
replace_system_message_content(
original_system_content or "",
form_data["messages"],
)
# Build context: file sources with content,
# tool sources as citation markers only.
source_ids = {}
source_context = get_source_context(
metadata.get("sources", []), source_ids
) + get_source_context(
all_tool_call_sources,
user_message,
source_ids,
include_content=False,
)
source_context = source_context.strip()
if source_context:
rag_content = rag_template(
request.app.state.config.RAG_TEMPLATE,
source_context,
user_message,
)
if RAG_SYSTEM_CONTEXT:
form_data["messages"] = (
add_or_update_system_message(
rag_content,
form_data["messages"],
append=True,
)
)
else:
form_data["messages"] = add_or_update_user_message(
rag_content,
form_data["messages"],
append=False,
)
tool_call_sources.clear()
await event_emitter(
@@ -4482,6 +4627,7 @@ async def streaming_chat_response_handler(response, ctx):
"session_id": metadata.get(
"session_id", None
),
"files": metadata.get("files", []),
},
}
)
+52 -47
View File
@@ -149,63 +149,64 @@ async def get_all_models(request, refresh: bool = False, user: UserModel = None)
]
custom_models = Models.get_all_models()
# Single O(1) lookup: Ollama base names first, then exact IDs (exact wins).
base_model_lookup = {}
for model in models:
if model.get("owned_by") == "ollama":
base_model_lookup.setdefault(model["id"].split(":")[0], model)
base_model_lookup[model["id"]] = model
existing_ids = {m["id"] for m in models}
for custom_model in custom_models:
if custom_model.base_model_id is None:
# Applied directly to a base model
for model in models:
if custom_model.id == model["id"] or (
model.get("owned_by") == "ollama"
and custom_model.id
== model["id"].split(":")[
0
] # Ollama may return model ids in different formats (e.g., 'llama3' vs. 'llama3:7b')
):
if custom_model.is_active:
model["name"] = custom_model.name
model["info"] = custom_model.model_dump()
# Override applied directly to a base model (shares the same ID)
model = base_model_lookup.get(custom_model.id)
# Set action_ids and filter_ids
action_ids = []
filter_ids = []
if model:
if custom_model.is_active:
model["name"] = custom_model.name
model["info"] = custom_model.model_dump()
if "info" in model:
if "meta" in model["info"]:
action_ids.extend(
model["info"]["meta"].get("actionIds", [])
)
filter_ids.extend(
model["info"]["meta"].get("filterIds", [])
)
action_ids = []
filter_ids = []
if "params" in model["info"]:
# Remove params to avoid exposing sensitive info
del model["info"]["params"]
if "info" in model:
if "meta" in model["info"]:
action_ids.extend(
model["info"]["meta"].get("actionIds", [])
)
filter_ids.extend(
model["info"]["meta"].get("filterIds", [])
)
model["action_ids"] = action_ids
model["filter_ids"] = filter_ids
else:
models.remove(model)
if "params" in model["info"]:
del model["info"]["params"]
model["action_ids"] = action_ids
model["filter_ids"] = filter_ids
else:
models.remove(model)
elif custom_model.is_active:
if custom_model.id in existing_ids:
continue
elif custom_model.is_active and (
custom_model.id not in [model["id"] for model in models]
):
# Custom model based on a base model
owned_by = "openai"
connection_type = None
pipe = None
for m in models:
if (
custom_model.base_model_id == m["id"]
or custom_model.base_model_id == m["id"].split(":")[0]
):
owned_by = m.get("owned_by", "unknown")
if "pipe" in m:
pipe = m["pipe"]
connection_type = m.get("connection_type", None)
break
base_model = base_model_lookup.get(custom_model.base_model_id)
if base_model is None:
base_model = base_model_lookup.get(
custom_model.base_model_id.split(":")[0]
)
if base_model:
owned_by = base_model.get("owned_by", "unknown")
if "pipe" in base_model:
pipe = base_model["pipe"]
connection_type = base_model.get("connection_type", None)
model = {
"id": f"{custom_model.id}",
@@ -331,11 +332,15 @@ async def get_all_models(request, refresh: bool = False, user: UserModel = None)
elif meta.get(key) is None:
meta[key] = copy.deepcopy(value)
# Batch-fetch all function valves in one query to avoid N+1 DB hits
# inside get_action_priority (previously called per action × per model).
all_function_valves = Functions.get_function_valves_by_ids(list(all_function_ids))
def get_action_priority(action_id):
try:
function_module = request.app.state.FUNCTIONS.get(action_id)
if function_module and hasattr(function_module, "Valves"):
valves_db = Functions.get_function_valves_by_id(action_id)
valves_db = all_function_valves.get(action_id)
valves = function_module.Valves(**(valves_db if valves_db else {}))
return getattr(valves, "priority", 0)
except Exception:
+22
View File
@@ -36,6 +36,7 @@ from open_webui.models.groups import Groups, GroupModel, GroupUpdateForm, GroupF
from open_webui.config import (
DEFAULT_USER_ROLE,
ENABLE_OAUTH_SIGNUP,
OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE,
OAUTH_MERGE_ACCOUNTS_BY_EMAIL,
OAUTH_PROVIDERS,
ENABLE_OAUTH_ROLE_MANAGEMENT,
@@ -113,6 +114,9 @@ log = logging.getLogger(__name__)
auth_manager_config = AppConfig()
auth_manager_config.DEFAULT_USER_ROLE = DEFAULT_USER_ROLE
auth_manager_config.ENABLE_OAUTH_SIGNUP = ENABLE_OAUTH_SIGNUP
auth_manager_config.OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE = (
OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE
)
auth_manager_config.OAUTH_MERGE_ACCOUNTS_BY_EMAIL = OAUTH_MERGE_ACCOUNTS_BY_EMAIL
auth_manager_config.ENABLE_OAUTH_ROLE_MANAGEMENT = ENABLE_OAUTH_ROLE_MANAGEMENT
auth_manager_config.ENABLE_OAUTH_GROUP_MANAGEMENT = ENABLE_OAUTH_GROUP_MANAGEMENT
@@ -787,6 +791,16 @@ class OAuthClientManager:
if hasattr(client, "client_secret") and client.client_secret:
refresh_data["client_secret"] = client.client_secret
# Add scope if available in client kwargs (some providers require it on refresh)
if (
hasattr(client, "client_kwargs")
and client.client_kwargs.get("scope")
and getattr(
self.app.state.config, "OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE", False
)
):
refresh_data["scope"] = client.client_kwargs["scope"]
# Make refresh request
async with aiohttp.ClientSession(trust_env=True) as session_http:
async with session_http.post(
@@ -1081,6 +1095,14 @@ class OAuthManager:
if hasattr(client, "client_secret") and client.client_secret:
refresh_data["client_secret"] = client.client_secret
# Add scope if available in client kwargs (some providers require it on refresh)
if (
hasattr(client, "client_kwargs")
and client.client_kwargs.get("scope")
and auth_manager_config.OAUTH_REFRESH_TOKEN_INCLUDE_SCOPE
):
refresh_data["scope"] = client.client_kwargs["scope"]
# Make refresh request
async with aiohttp.ClientSession(trust_env=True) as session_http:
async with session_http.post(
@@ -20,6 +20,7 @@ from opentelemetry.instrumentation.redis import RedisInstrumentor
from opentelemetry.instrumentation.requests import RequestsInstrumentor
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
from opentelemetry.instrumentation.aiohttp_client import AioHttpClientInstrumentor
from opentelemetry.instrumentation.system_metrics import SystemMetricsInstrumentor
from opentelemetry.trace import Span, StatusCode
from redis import Redis
from redis.cluster import RedisCluster
@@ -204,6 +205,7 @@ class Instrumentor(BaseInstrumentor):
request_hook=aiohttp_request_hook,
response_hook=aiohttp_response_hook,
)
SystemMetricsInstrumentor().instrument()
def _uninstrument(self, **kwargs):
if getattr(self, "instrumentors", None) is None:
@@ -120,12 +120,12 @@ def setup_metrics(app: FastAPI, resource: Resource) -> None:
# Instruments
request_counter = meter.create_counter(
name="http.server.requests",
description="Total HTTP requests",
description="Counts the total number of inbound HTTP requests.",
unit="1",
)
duration_histogram = meter.create_histogram(
name="http.server.duration",
description="HTTP request duration",
description="Measures the duration of inbound HTTP requests.",
unit="ms",
)
+8 -2
View File
@@ -432,6 +432,10 @@ def get_builtin_tools(
# If model has attached knowledge (any type), only provide query_knowledge_files
# Otherwise, provide all KB browsing tools
model_knowledge = model.get("info", {}).get("meta", {}).get("knowledge", [])
# Merge folder-attached knowledge so builtin tools can search it
folder_knowledge = extra_params.get("__metadata__", {}).get("folder_knowledge")
if folder_knowledge:
model_knowledge = list(model_knowledge or []) + list(folder_knowledge)
if is_builtin_tool_enabled("knowledge"):
if model_knowledge:
# Model has attached knowledge - only allow semantic search within it
@@ -1186,7 +1190,7 @@ async def get_tool_servers_data(servers: List[Dict[str, Any]]) -> List[Dict[str,
{
"id": str(id),
"idx": idx,
"url": server.get("url"),
"url": (server.get("url") or "").rstrip("/"),
"openapi": openapi_data,
"info": response.get("info"),
"specs": response.get("specs"),
@@ -1250,7 +1254,7 @@ async def execute_tool_server(
if params[param_name] is not None:
query_params[param_name] = params[param_name]
final_url = f"{url}{route_path}"
final_url = f"{url.rstrip('/')}{route_path}"
for key, value in path_params.items():
final_url = final_url.replace(f"{{{key}}}", str(value))
@@ -1320,6 +1324,8 @@ def get_tool_server_url(url: Optional[str], path: str) -> str:
if "://" in path:
# If it contains "://", it's a full URL
return path
if url:
url = url.rstrip("/")
if not path.startswith("/"):
# Ensure the path starts with a slash
path = f"/{path}"
+10 -9
View File
@@ -1,8 +1,8 @@
# Minimal requirements for backend to run
# WIP: use this as a reference to build a minimal docker image
fastapi==0.128.5
uvicorn[standard]==0.40.0
fastapi==0.135.1
uvicorn[standard]==0.41.0
pydantic==2.12.5
python-multipart==0.0.22
itsdangerous==2.2.0
@@ -13,7 +13,7 @@ cryptography
bcrypt==5.0.0
argon2-cffi==25.1.0
PyJWT[crypto]==2.11.0
authlib==1.6.7
authlib==1.6.9
requests==2.32.5
aiohttp==3.13.2 # do not update to 3.13.3 - broken
@@ -25,12 +25,12 @@ Brotli==1.1.0
httpx[socks,http2,zstd,cli,brotli]==0.28.1
starsessions[redis]==2.2.1
sqlalchemy==2.0.46
alembic==1.18.3
sqlalchemy==2.0.48
alembic==1.18.4
peewee==3.19.0
peewee-migrate==1.14.3
pycrdt==0.12.46
pycrdt==0.12.47
redis
APScheduler==3.11.2
@@ -42,14 +42,15 @@ asgiref==3.11.1
mcp==1.26.0
openai
langchain==1.2.9
langchain==1.2.10
langchain-community==0.4.1
langchain-classic==1.0.1
langchain-text-splitters==1.1.0
langchain-text-splitters==1.1.1
fake-useragent==2.2.0
chromadb==1.4.1
chromadb==1.5.2
black==26.1.0
pydub
chardet==5.2.0
beautifulsoup4
+40 -39
View File
@@ -1,5 +1,5 @@
fastapi==0.128.5
uvicorn[standard]==0.40.0
fastapi==0.135.1
uvicorn[standard]==0.41.0
pydantic==2.12.5
python-multipart==0.0.22
itsdangerous==2.2.0
@@ -10,7 +10,7 @@ cryptography
bcrypt==5.0.0
argon2-cffi==25.1.0
PyJWT[crypto]==2.11.0
authlib==1.6.7
authlib==1.6.9
requests==2.32.5
aiohttp==3.13.2 # do not update to 3.13.3 - broken
@@ -23,17 +23,17 @@ httpx[socks,http2,zstd,cli,brotli]==0.28.1
starsessions[redis]==2.2.1
python-mimeparse==2.0.0
sqlalchemy==2.0.46
alembic==1.18.3
sqlalchemy==2.0.48
alembic==1.18.4
peewee==3.19.0
peewee-migrate==1.14.3
pycrdt==0.12.46
pycrdt==0.12.47
redis
APScheduler==3.11.2
RestrictedPython==8.1
pytz==2025.2
pytz==2026.1.post1
loguru==0.7.3
asgiref==3.11.1
@@ -44,37 +44,38 @@ mcp==1.26.0
openai
anthropic
google-genai==1.62.0
google-genai==1.66.0
langchain==1.2.9
langchain==1.2.10
langchain-community==0.4.1
langchain-classic==1.0.1
langchain-text-splitters==1.1.0
langchain-text-splitters==1.1.1
fake-useragent==2.2.0
chromadb==1.4.1
weaviate-client==4.19.2
chromadb==1.5.2
weaviate-client==4.20.3
opensearch-py==3.1.0
transformers==5.1.0
sentence-transformers==5.2.2
transformers==5.3.0
sentence-transformers==5.2.3
accelerate
pyarrow==20.0.0 # fix: pin pyarrow version to 20 for rpi compatibility #15897
einops==0.8.2
ftfy==6.3.1
chardet==5.2.0
pypdf==6.7.0
fpdf2==2.8.5
pymdown-extensions==10.20.1
pypdf==6.7.5
fpdf2==2.8.7
pymdown-extensions==10.21
docx2txt==0.9
python-pptx==1.0.2
unstructured==0.18.31
msoffcrypto-tool==6.0.0
nltk==3.9.2
Markdown==3.10.1
nltk==3.9.3
Markdown==3.10.2
beautifulsoup4
pypandoc==1.16.2
pandas==3.0.0
pandas==3.0.1
openpyxl==3.1.5
pyxlsb==1.0.10
xlrd==2.0.2
@@ -83,12 +84,12 @@ psutil
sentencepiece
soundfile==0.13.1
pillow==12.1.0
pillow==12.1.1
opencv-python-headless==4.13.0.92
rapidocr-onnxruntime==1.4.4
rank-bm25==0.2.2
onnxruntime==1.24.1
onnxruntime==1.24.3
faster-whisper==1.2.1
black==26.1.0
@@ -96,10 +97,10 @@ youtube-transcript-api==1.2.4
pytube==15.0.0
pydub
ddgs==9.10.0
ddgs==9.11.2
azure-ai-documentintelligence==1.0.2
azure-identity==1.25.1
azure-identity==1.25.2
azure-storage-blob==12.28.0
azure-search-documents==11.6.0
@@ -117,10 +118,10 @@ psycopg2-binary==2.9.11
pgvector==0.4.2
PyMySQL==1.1.2
boto3==1.42.44
boto3==1.42.62
pymilvus==2.6.8
qdrant-client==1.16.2
pymilvus==2.6.9
qdrant-client==1.17.0
playwright==1.58.0 # Caution: version must match docker-compose.playwright.yaml - Update the docker-compose.yaml if necessary
elasticsearch==9.3.0
pinecone==6.0.2
@@ -140,17 +141,17 @@ pytest-docker~=3.2.5
ldap3==2.9.1
## Firecrawl
firecrawl-py==4.14.0
firecrawl-py==4.18.0
## Trace
opentelemetry-api==1.39.1
opentelemetry-sdk==1.39.1
opentelemetry-exporter-otlp==1.39.1
opentelemetry-instrumentation==0.60b1
opentelemetry-instrumentation-fastapi==0.60b1
opentelemetry-instrumentation-sqlalchemy==0.60b1
opentelemetry-instrumentation-redis==0.60b1
opentelemetry-instrumentation-requests==0.60b1
opentelemetry-instrumentation-logging==0.60b1
opentelemetry-instrumentation-httpx==0.60b1
opentelemetry-instrumentation-aiohttp-client==0.60b1
opentelemetry-api==1.40.0
opentelemetry-sdk==1.40.0
opentelemetry-exporter-otlp==1.40.0
opentelemetry-instrumentation==0.61b0
opentelemetry-instrumentation-fastapi==0.61b0
opentelemetry-instrumentation-sqlalchemy==0.61b0
opentelemetry-instrumentation-redis==0.61b0
opentelemetry-instrumentation-requests==0.61b0
opentelemetry-instrumentation-logging==0.61b0
opentelemetry-instrumentation-httpx==0.61b0
opentelemetry-instrumentation-aiohttp-client==0.61b0
+545 -19
View File
@@ -1,12 +1,12 @@
{
"name": "open-webui",
"version": "0.8.8",
"version": "0.8.9",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-webui",
"version": "0.8.8",
"version": "0.8.9",
"dependencies": {
"@azure/msal-browser": "^4.5.0",
"@codemirror/lang-javascript": "^6.2.2",
@@ -22,6 +22,7 @@
"@sveltejs/svelte-virtual-list": "^3.0.1",
"@tiptap/core": "^3.0.7",
"@tiptap/extension-bubble-menu": "^2.26.1",
"@tiptap/extension-code": "^3.0.7",
"@tiptap/extension-code-block-lowlight": "^3.0.7",
"@tiptap/extension-drag-handle": "^3.4.5",
"@tiptap/extension-file-handler": "^3.0.7",
@@ -66,6 +67,7 @@
"idb": "^7.1.1",
"js-sha256": "^0.10.1",
"jspdf": "^4.0.0",
"jszip": "^3.10.1",
"katex": "^0.16.22",
"kokoro-js": "^1.1.1",
"leaflet": "^1.9.4",
@@ -89,8 +91,10 @@
"prosemirror-tables": "^1.7.1",
"prosemirror-view": "^1.34.3",
"pyodide": "^0.28.2",
"shiki": "^4.0.1",
"socket.io-client": "^4.2.0",
"sortablejs": "^1.15.6",
"sql.js": "^1.14.1",
"svelte-sonner": "^0.3.19",
"tippy.js": "^6.3.7",
"turndown": "^7.2.0",
@@ -2678,6 +2682,106 @@
"win32"
]
},
"node_modules/@shikijs/core": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.0.1.tgz",
"integrity": "sha512-vWvqi9JNgz1dRL9Nvog5wtx7RuNkf7MEPl2mU/cyUUxJeH1CAr3t+81h8zO8zs7DK6cKLMoU9TvukWIDjP4Lzg==",
"license": "MIT",
"dependencies": {
"@shikijs/primitive": "4.0.1",
"@shikijs/types": "4.0.1",
"@shikijs/vscode-textmate": "^10.0.2",
"@types/hast": "^3.0.4",
"hast-util-to-html": "^9.0.5"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/engine-javascript": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.0.1.tgz",
"integrity": "sha512-DJK9NiwtGYqMuKCRO4Ip0FKNDQpmaiS+K5bFjJ7DWFn4zHueDWgaUG8kAofkrnXF6zPPYYQY7J5FYVW9MbZyBg==",
"license": "MIT",
"dependencies": {
"@shikijs/types": "4.0.1",
"@shikijs/vscode-textmate": "^10.0.2",
"oniguruma-to-es": "^4.3.4"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/engine-oniguruma": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.0.1.tgz",
"integrity": "sha512-oCWdCTDch3J8Kc0OZJ98KuUPC02O1VqIE3W/e2uvrHqTxYRR21RGEJMtchrgrxhsoJJCzmIciKsqG+q/yD+Cxg==",
"license": "MIT",
"dependencies": {
"@shikijs/types": "4.0.1",
"@shikijs/vscode-textmate": "^10.0.2"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/langs": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.0.1.tgz",
"integrity": "sha512-v/mluaybWdnGJR4GqAR6zh8qAZohW9k+cGYT28Y7M8+jLbC0l4yG085O1A+WkseHTn+awd+P3UBymb2+MXFc8w==",
"license": "MIT",
"dependencies": {
"@shikijs/types": "4.0.1"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/primitive": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.0.1.tgz",
"integrity": "sha512-ns0hHZc5eWZuvuIEJz2pTx3Qecz0aRVYumVQJ8JgWY2tq/dH8WxdcVM49Fc2NsHEILNIT6vfdW9MF26RANWiTA==",
"license": "MIT",
"dependencies": {
"@shikijs/types": "4.0.1",
"@shikijs/vscode-textmate": "^10.0.2",
"@types/hast": "^3.0.4"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/themes": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.0.1.tgz",
"integrity": "sha512-FW41C/D6j/yKQkzVdjrRPiJCtgeDaYRJFEyCKFCINuRJRj9WcmubhP4KQHPZ4+9eT87jruSrYPyoblNRyDFzvA==",
"license": "MIT",
"dependencies": {
"@shikijs/types": "4.0.1"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/types": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.0.1.tgz",
"integrity": "sha512-EaygPEn57+jJ76mw+nTLvIpJMAcMPokFbrF8lufsZP7Ukk+ToJYEcswN1G0e49nUZAq7aCQtoeW219A8HK1ZOw==",
"license": "MIT",
"dependencies": {
"@shikijs/vscode-textmate": "^10.0.2",
"@types/hast": "^3.0.4"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@shikijs/vscode-textmate": {
"version": "10.0.2",
"resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz",
"integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==",
"license": "MIT"
},
"node_modules/@sinclair/typebox": {
"version": "0.27.8",
"resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",
@@ -3266,9 +3370,9 @@
}
},
"node_modules/@tiptap/extension-collaboration": {
"version": "3.20.0",
"resolved": "https://registry.npmjs.org/@tiptap/extension-collaboration/-/extension-collaboration-3.20.0.tgz",
"integrity": "sha512-JItmI4U0i4kqorO114u24hM9k945IdaQ6Uc2DEtPBFFuS8cepJf2zw+ulAT1kAx6ZRiNvNpT9M7w+J0mWRn+Sg==",
"version": "3.20.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-collaboration/-/extension-collaboration-3.20.1.tgz",
"integrity": "sha512-JnwLvyzrutBffHp6YPnf0XyTnhAgqZ9D8JSUKFp0edvai+dxsb+UMlawesBrgAuoQXw3B8YZUo2VFDVdKas1xQ==",
"license": "MIT",
"peer": true,
"funding": {
@@ -3276,8 +3380,8 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/core": "^3.20.0",
"@tiptap/pm": "^3.20.0",
"@tiptap/core": "^3.20.1",
"@tiptap/pm": "^3.20.1",
"@tiptap/y-tiptap": "^3.0.2",
"yjs": "^13"
}
@@ -3525,9 +3629,9 @@
}
},
"node_modules/@tiptap/extension-node-range": {
"version": "3.20.0",
"resolved": "https://registry.npmjs.org/@tiptap/extension-node-range/-/extension-node-range-3.20.0.tgz",
"integrity": "sha512-XeKKTV88VuJ4Mh0Rxvc/PPzG76cb44sE+rB4u0J/ms63R/WFTm6yJQlCgUVGnGeHleSlrWuZY8gGSuoljmQzqg==",
"version": "3.20.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-node-range/-/extension-node-range-3.20.1.tgz",
"integrity": "sha512-+W/mQJxlkXMcwldWUqwdoR0eniJ1S9cVJoAy2Lkis0NhILZDWVNGKl9J4WFoCOXn8Myr17IllIxRYvAXJJ4FHQ==",
"license": "MIT",
"peer": true,
"funding": {
@@ -3535,8 +3639,8 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/core": "^3.20.0",
"@tiptap/pm": "^3.20.0"
"@tiptap/core": "^3.20.1",
"@tiptap/pm": "^3.20.1"
}
},
"node_modules/@tiptap/extension-ordered-list": {
@@ -3606,9 +3710,9 @@
}
},
"node_modules/@tiptap/extension-text-style": {
"version": "3.20.0",
"resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-3.20.0.tgz",
"integrity": "sha512-zyWW1a6W+kaXAn3wv2svJ1XuVMapujftvH7Xn2Q3QmKKiDkO+NiFkrGe8BhMopu8Im51nO3NylIgVA0X1mS1rQ==",
"version": "3.20.1",
"resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-3.20.1.tgz",
"integrity": "sha512-3LQU92zX6tzl47EBskkAKeJXd6EWwYmBDE7jbd7InJqnt9NMAcj4DtXtXpI+e6Un5+8yzNjVA+fI5+5cFS3dSg==",
"license": "MIT",
"peer": true,
"funding": {
@@ -3616,7 +3720,7 @@
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/core": "^3.20.0"
"@tiptap/core": "^3.20.1"
}
},
"node_modules/@tiptap/extension-typography": {
@@ -4059,6 +4163,15 @@
"@types/mdurl": "^2"
}
},
"node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
"integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
"license": "MIT",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/@types/mdurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz",
@@ -4122,9 +4235,10 @@
"optional": true
},
"node_modules/@types/unist": {
"version": "2.0.10",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz",
"integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA=="
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
"license": "MIT"
},
"node_modules/@types/yauzl": {
"version": "2.10.3",
@@ -5191,6 +5305,16 @@
"integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==",
"dev": true
},
"node_modules/ccount": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
"integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/cfb": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz",
@@ -5239,6 +5363,26 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/character-entities-html4": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
"integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/character-entities-legacy": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
"integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/chart.js": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.5.0.tgz",
@@ -5761,6 +5905,16 @@
"node": ">= 0.8"
}
},
"node_modules/comma-separated-tokens": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
"integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/commander": {
"version": "12.1.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
@@ -8068,6 +8222,42 @@
"node": ">= 0.4"
}
},
"node_modules/hast-util-to-html": {
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz",
"integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==",
"license": "MIT",
"dependencies": {
"@types/hast": "^3.0.0",
"@types/unist": "^3.0.0",
"ccount": "^2.0.0",
"comma-separated-tokens": "^2.0.0",
"hast-util-whitespace": "^3.0.0",
"html-void-elements": "^3.0.0",
"mdast-util-to-hast": "^13.0.0",
"property-information": "^7.0.0",
"space-separated-tokens": "^2.0.0",
"stringify-entities": "^4.0.0",
"zwitch": "^2.0.4"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/hast-util-whitespace": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
"integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
"license": "MIT",
"dependencies": {
"@types/hast": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/heic2any": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/heic2any/-/heic2any-0.0.4.tgz",
@@ -8144,6 +8334,16 @@
"resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",
"integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ=="
},
"node_modules/html-void-elements": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz",
"integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/html2canvas": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz",
@@ -9589,6 +9789,27 @@
"node": ">= 0.4"
}
},
"node_modules/mdast-util-to-hast": {
"version": "13.2.1",
"resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",
"integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",
"license": "MIT",
"dependencies": {
"@types/hast": "^3.0.0",
"@types/mdast": "^4.0.0",
"@ungap/structured-clone": "^1.0.0",
"devlop": "^1.0.0",
"micromark-util-sanitize-uri": "^2.0.0",
"trim-lines": "^3.0.0",
"unist-util-position": "^5.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/mdurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
@@ -9661,6 +9882,95 @@
"uuid": "dist/esm/bin/uuid"
}
},
"node_modules/micromark-util-character": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
"integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/unifiedjs"
},
{
"type": "OpenCollective",
"url": "https://opencollective.com/unified"
}
],
"license": "MIT",
"dependencies": {
"micromark-util-symbol": "^2.0.0",
"micromark-util-types": "^2.0.0"
}
},
"node_modules/micromark-util-encode": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
"integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/unifiedjs"
},
{
"type": "OpenCollective",
"url": "https://opencollective.com/unified"
}
],
"license": "MIT"
},
"node_modules/micromark-util-sanitize-uri": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",
"integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/unifiedjs"
},
{
"type": "OpenCollective",
"url": "https://opencollective.com/unified"
}
],
"license": "MIT",
"dependencies": {
"micromark-util-character": "^2.0.0",
"micromark-util-encode": "^2.0.0",
"micromark-util-symbol": "^2.0.0"
}
},
"node_modules/micromark-util-symbol": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",
"integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/unifiedjs"
},
{
"type": "OpenCollective",
"url": "https://opencollective.com/unified"
}
],
"license": "MIT"
},
"node_modules/micromark-util-types": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",
"integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",
"funding": [
{
"type": "GitHub Sponsors",
"url": "https://github.com/sponsors/unifiedjs"
},
{
"type": "OpenCollective",
"url": "https://opencollective.com/unified"
}
],
"license": "MIT"
},
"node_modules/micromatch": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
@@ -9976,6 +10286,23 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/oniguruma-parser": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.1.tgz",
"integrity": "sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==",
"license": "MIT"
},
"node_modules/oniguruma-to-es": {
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.4.tgz",
"integrity": "sha512-3VhUGN3w2eYxnTzHn+ikMI+fp/96KoRSVK9/kMTcFqj1NRDh2IhQCKvYxDnWePKRXY/AqH+Fuiyb7VHSzBjHfA==",
"license": "MIT",
"dependencies": {
"oniguruma-parser": "^0.12.1",
"regex": "^6.0.1",
"regex-recursion": "^6.0.2"
}
},
"node_modules/onnxruntime-common": {
"version": "1.20.1",
"resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.20.1.tgz",
@@ -10621,6 +10948,16 @@
"node": "10.* || >= 12.*"
}
},
"node_modules/property-information": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",
"integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/prosemirror-changeset": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.3.1.tgz",
@@ -11073,6 +11410,30 @@
"node": ">=8.10.0"
}
},
"node_modules/regex": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz",
"integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==",
"license": "MIT",
"dependencies": {
"regex-utilities": "^2.3.0"
}
},
"node_modules/regex-recursion": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz",
"integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==",
"license": "MIT",
"dependencies": {
"regex-utilities": "^2.3.0"
}
},
"node_modules/regex-utilities": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz",
"integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==",
"license": "MIT"
},
"node_modules/remove-trailing-separator": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
@@ -11843,6 +12204,25 @@
"node": ">=8"
}
},
"node_modules/shiki": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/shiki/-/shiki-4.0.1.tgz",
"integrity": "sha512-EkAEhDTN5WhpoQFXFw79OHIrSAfHhlImeCdSyg4u4XvrpxKEmdo/9x/HWSowujAnUrFsGOwWiE58a6GVentMnQ==",
"license": "MIT",
"dependencies": {
"@shikijs/core": "4.0.1",
"@shikijs/engine-javascript": "4.0.1",
"@shikijs/engine-oniguruma": "4.0.1",
"@shikijs/langs": "4.0.1",
"@shikijs/themes": "4.0.1",
"@shikijs/types": "4.0.1",
"@shikijs/vscode-textmate": "^10.0.2",
"@types/hast": "^3.0.4"
},
"engines": {
"node": ">=20"
}
},
"node_modules/side-channel": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
@@ -11969,12 +12349,28 @@
"node": ">=0.10.0"
}
},
"node_modules/space-separated-tokens": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
"integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/sprintf-js": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
"integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
"dev": true
},
"node_modules/sql.js": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/sql.js/-/sql.js-1.14.1.tgz",
"integrity": "sha512-gcj8zBWU5cFsi9WUP+4bFNXAyF1iRpA3LLyS/DP5xlrNzGmPIizUeBggKa8DbDwdqaKwUcTEnChtd2grWo/x/A==",
"license": "MIT"
},
"node_modules/ssf": {
"version": "0.11.2",
"resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz",
@@ -12129,6 +12525,20 @@
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/stringify-entities": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
"integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",
"license": "MIT",
"dependencies": {
"character-entities-html4": "^2.0.0",
"character-entities-legacy": "^3.0.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/strip-ansi": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
@@ -12662,6 +13072,16 @@
"node": ">= 4.0.0"
}
},
"node_modules/trim-lines": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
"integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/ts-api-utils": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
@@ -12818,6 +13238,74 @@
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
},
"node_modules/unist-util-is": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
"integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-position": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
"integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-stringify-position": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
"integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-visit": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",
"integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0",
"unist-util-visit-parents": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/unist-util-visit-parents": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
"integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-is": "^6.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/universalify": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
@@ -13327,6 +13815,34 @@
"integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",
"dev": true
},
"node_modules/vfile": {
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
"integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0",
"vfile-message": "^4.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/vfile-message": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
"integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
"license": "MIT",
"dependencies": {
"@types/unist": "^3.0.0",
"unist-util-stringify-position": "^4.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/vinyl": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz",
@@ -14608,6 +15124,16 @@
"resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.4.tgz",
"integrity": "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==",
"license": "MIT"
},
"node_modules/zwitch": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
"integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
}
}
}
}
+5 -1
View File
@@ -1,6 +1,6 @@
{
"name": "open-webui",
"version": "0.8.8",
"version": "0.8.9",
"private": true,
"scripts": {
"dev": "npm run pyodide:fetch && vite dev --host",
@@ -66,6 +66,7 @@
"@sveltejs/svelte-virtual-list": "^3.0.1",
"@tiptap/core": "^3.0.7",
"@tiptap/extension-bubble-menu": "^2.26.1",
"@tiptap/extension-code": "^3.0.7",
"@tiptap/extension-code-block-lowlight": "^3.0.7",
"@tiptap/extension-drag-handle": "^3.4.5",
"@tiptap/extension-file-handler": "^3.0.7",
@@ -110,6 +111,7 @@
"idb": "^7.1.1",
"js-sha256": "^0.10.1",
"jspdf": "^4.0.0",
"jszip": "^3.10.1",
"katex": "^0.16.22",
"kokoro-js": "^1.1.1",
"leaflet": "^1.9.4",
@@ -133,8 +135,10 @@
"prosemirror-tables": "^1.7.1",
"prosemirror-view": "^1.34.3",
"pyodide": "^0.28.2",
"shiki": "^4.0.1",
"socket.io-client": "^4.2.0",
"sortablejs": "^1.15.6",
"sql.js": "^1.14.1",
"svelte-sonner": "^0.3.19",
"tippy.js": "^6.3.7",
"turndown": "^7.2.0",
+28 -28
View File
@@ -6,8 +6,8 @@ authors = [
]
license = { file = "LICENSE" }
dependencies = [
"fastapi==0.128.5",
"uvicorn[standard]==0.40.0",
"fastapi==0.135.1",
"uvicorn[standard]==0.41.0",
"pydantic==2.12.5",
"python-multipart==0.0.22",
"itsdangerous==2.2.0",
@@ -18,7 +18,7 @@ dependencies = [
"bcrypt==5.0.0",
"argon2-cffi==25.1.0",
"PyJWT[crypto]==2.11.0",
"authlib==1.6.7",
"authlib==1.6.9",
"requests==2.32.5",
"aiohttp==3.13.2", # do not update to 3.13.3 - broken
@@ -31,15 +31,15 @@ dependencies = [
"starsessions[redis]==2.2.1",
"python-mimeparse==2.0.0",
"sqlalchemy==2.0.46",
"alembic==1.18.3",
"sqlalchemy==2.0.48",
"alembic==1.18.4",
"peewee==3.19.0",
"peewee-migrate==1.14.3",
"pycrdt==0.12.46",
"pycrdt==0.12.47",
"redis",
"pytz==2025.2",
"pytz==2026.1.post1",
"APScheduler==3.11.2",
"RestrictedPython==8.1",
@@ -51,38 +51,38 @@ dependencies = [
"openai",
"anthropic",
"google-genai==1.62.0",
"google-genai==1.66.0",
"langchain==1.2.9",
"langchain==1.2.10",
"langchain-community==0.4.1",
"langchain-classic==1.0.1",
"langchain-text-splitters==1.1.0",
"langchain-text-splitters==1.1.1",
"fake-useragent==2.2.0",
"chromadb==1.4.1",
"chromadb==1.5.2",
"opensearch-py==3.1.0",
"PyMySQL==1.1.2",
"boto3==1.42.44",
"boto3==1.42.62",
"transformers==5.1.0",
"sentence-transformers==5.2.2",
"transformers==5.3.0",
"sentence-transformers==5.2.3",
"accelerate",
"pyarrow==20.0.0", # fix: pin pyarrow version to 20 for rpi compatibility #15897
"einops==0.8.2",
"ftfy==6.3.1",
"chardet==5.2.0",
"pypdf==6.7.0",
"fpdf2==2.8.5",
"pymdown-extensions==10.20.1",
"pypdf==6.7.5",
"fpdf2==2.8.7",
"pymdown-extensions==10.21",
"docx2txt==0.9",
"python-pptx==1.0.2",
"unstructured==0.18.31",
"msoffcrypto-tool==6.0.0",
"nltk==3.9.2",
"Markdown==3.10.1",
"nltk==3.9.3",
"Markdown==3.10.2",
"pypandoc==1.16.2",
"pandas==3.0.0",
"pandas==3.0.1",
"openpyxl==3.1.5",
"pyxlsb==1.0.10",
"xlrd==2.0.2",
@@ -92,12 +92,12 @@ dependencies = [
"soundfile==0.13.1",
"azure-ai-documentintelligence==1.0.2",
"pillow==12.1.0",
"pillow==12.1.1",
"opencv-python-headless==4.13.0.92",
"rapidocr-onnxruntime==1.4.4",
"rank-bm25==0.2.2",
"onnxruntime==1.24.1",
"onnxruntime==1.24.3",
"faster-whisper==1.2.1",
"black==26.1.0",
@@ -105,7 +105,7 @@ dependencies = [
"pytube==15.0.0",
"pydub",
"ddgs==9.10.0",
"ddgs==9.11.2",
"google-api-python-client",
"google-auth-httplib2",
@@ -114,7 +114,7 @@ dependencies = [
"googleapis-common-protos==1.72.0",
"google-cloud-storage==3.9.0",
"azure-identity==1.25.1",
"azure-identity==1.25.2",
"azure-storage-blob==12.28.0",
"ldap3==2.9.1",
@@ -150,15 +150,15 @@ all = [
"playwright==1.58.0", # Caution: version must match docker-compose.playwright.yaml - Update the docker-compose.yaml if necessary
"elasticsearch==9.3.0",
"qdrant-client==1.16.2",
"qdrant-client==1.17.0",
"weaviate-client==4.19.2",
"pymilvus==2.6.8",
"weaviate-client==4.20.3",
"pymilvus==2.6.9",
"pinecone==6.0.2",
"oracledb==3.4.2",
"colbert-ai==0.2.22",
"firecrawl-py==4.14.0",
"firecrawl-py==4.18.0",
"azure-search-documents==11.6.0",
]
+1
View File
@@ -4,6 +4,7 @@ type FolderForm = {
name?: string;
data?: Record<string, any>;
meta?: Record<string, any>;
parent_id?: string | null;
};
export const createNewFolder = async (token: string, folderForm: FolderForm) => {
+101
View File
@@ -5,6 +5,12 @@ export type FileEntry = {
modified?: number;
};
export type ListeningPort = {
port: number;
pid: number | null;
process: string | null;
};
export type TerminalFeatures = {
terminal?: boolean;
};
@@ -235,3 +241,98 @@ export const moveEntry = async (
});
return res;
};
export const getListeningPorts = async (
baseUrl: string,
apiKey: string
): Promise<ListeningPort[]> => {
const url = `${baseUrl.replace(/\/$/, '')}/ports`;
const res = await fetch(url, {
headers: { Authorization: `Bearer ${apiKey}` }
}).catch(() => null);
if (!res || !res.ok) return [];
const json = await res.json().catch(() => null);
return json?.ports ?? [];
};
export const getPortProxyUrl = (baseUrl: string, port: number, path: string = ''): string => {
return `${baseUrl.replace(/\/$/, '')}/proxy/${port}/${path}`;
};
// ---------------------------------------------------------------------------
// Notebook execution
// ---------------------------------------------------------------------------
export const createNotebookSession = async (
baseUrl: string,
apiKey: string,
path: string
): Promise<{ id: string; kernel: string; status: string } | { error: string }> => {
const url = `${baseUrl.replace(/\/$/, '')}/notebooks`;
const res = await fetch(url, {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({ path })
})
.then(async (res) => {
if (!res.ok) {
const body = await res.json().catch(() => ({}));
return { error: body?.detail ?? `HTTP ${res.status}` };
}
return res.json();
})
.catch((err) => {
console.error('open-terminal createNotebookSession error:', err);
return { error: 'Connection failed' };
});
return res;
};
export const executeNotebookCell = async (
baseUrl: string,
apiKey: string,
sessionId: string,
cellIndex: number,
source?: string
): Promise<{ status: string; execution_count?: number; outputs: any[] } | { error: string }> => {
const url = `${baseUrl.replace(/\/$/, '')}/notebooks/${sessionId}/execute`;
const body: Record<string, any> = { cell_index: cellIndex };
if (source !== undefined) body.source = source;
const res = await fetch(url, {
method: 'POST',
headers: {
Authorization: `Bearer ${apiKey}`,
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
})
.then(async (res) => {
if (!res.ok) {
const body = await res.json().catch(() => ({}));
return { error: body?.detail ?? `HTTP ${res.status}` };
}
return res.json();
})
.catch((err) => {
console.error('open-terminal executeNotebookCell error:', err);
return { error: 'Connection failed' };
});
return res;
};
export const stopNotebookSession = async (
baseUrl: string,
apiKey: string,
sessionId: string
): Promise<boolean> => {
const url = `${baseUrl.replace(/\/$/, '')}/notebooks/${sessionId}`;
const res = await fetch(url, {
method: 'DELETE',
headers: { Authorization: `Bearer ${apiKey}` }
}).catch(() => null);
return res?.ok ?? false;
};
+3 -3
View File
@@ -699,7 +699,7 @@
{/if}
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -708,9 +708,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
+3 -3
View File
@@ -898,7 +898,7 @@
{/if}
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -907,9 +907,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
+3 -3
View File
@@ -104,7 +104,7 @@
<div class="flex justify-end pt-3 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -113,9 +113,9 @@
{$i18n.t('Import')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -67,7 +67,8 @@
>
<option disabled selected value="">{$i18n.t('Select a engine')}</option>
{#each engines as engine}
<option value={engine}>{engine}</option>
<option value={engine}>{engine}{engine === 'jupyter' ? ' (Legacy)' : ''}</option
>
{/each}
</select>
</div>
@@ -193,7 +194,9 @@
>
<option disabled selected value="">{$i18n.t('Select a engine')}</option>
{#each engines as engine}
<option value={engine}>{engine}</option>
<option value={engine}
>{engine}{engine === 'jupyter' ? ' (Legacy)' : ''}</option
>
{/each}
</select>
</div>
@@ -221,6 +221,12 @@
const res = await updateRAGConfig(localStorage.token, {
...RAGConfig,
// Convert null (from cleared number inputs) to empty string so the backend
// can distinguish "clear this field" from "don't change this field"
FILE_MAX_SIZE: RAGConfig.FILE_MAX_SIZE ?? '',
FILE_MAX_COUNT: RAGConfig.FILE_MAX_COUNT ?? '',
FILE_IMAGE_COMPRESSION_WIDTH: RAGConfig.FILE_IMAGE_COMPRESSION_WIDTH ?? '',
FILE_IMAGE_COMPRESSION_HEIGHT: RAGConfig.FILE_IMAGE_COMPRESSION_HEIGHT ?? '',
ALLOWED_FILE_EXTENSIONS: RAGConfig.ALLOWED_FILE_EXTENSIONS.split(',')
.map((ext) => ext.trim())
.filter((ext) => ext !== ''),
@@ -1270,7 +1270,7 @@
<div class="flex justify-end pt-3 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -1279,9 +1279,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -64,9 +64,7 @@
bind:value={banner.type}
required
>
{#if banner.type == ''}
<option value="" selected disabled class="text-gray-900">{$i18n.t('Type')}</option>
{/if}
<option value="" disabled hidden class="text-gray-900">{$i18n.t('Type')}</option>
<option value="info" class="text-gray-900">{$i18n.t('Info')}</option>
<option value="warning" class="text-gray-900">{$i18n.t('Warning')}</option>
<option value="error" class="text-gray-900">{$i18n.t('Error')}</option>
@@ -436,7 +436,7 @@
</Tooltip>
</div>
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -445,9 +445,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -219,7 +219,7 @@
{#if ['general', 'permissions'].includes(selectedTab)}
<div class="flex justify-end pt-3 text-sm font-medium gap-1.5">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -228,9 +228,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -31,7 +31,7 @@
let query = '';
let searchDebounceTimer: ReturnType<typeof setTimeout>;
let orderBy = 'created_at'; // default sort key
let orderBy = groupId ? `group_id:${groupId}` : 'last_active_at'; // default sort key
let direction = 'desc'; // default sort order
let page = 1;
@@ -285,7 +285,7 @@
<div class="flex justify-end pt-3 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -294,9 +294,9 @@
{$i18n.t('Save')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -160,7 +160,7 @@
<div class="flex justify-end text-sm font-medium gap-1.5">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex flex-row space-x-1 items-center {isSaving
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {isSaving
? 'cursor-not-allowed'
: ''}"
type="submit"
@@ -168,9 +168,9 @@
>
{$i18n.t('Save')}
{#if isSaving}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
+14 -6
View File
@@ -90,24 +90,32 @@
};
onMount(() => {
artifactCode.subscribe((value) => {
const unsubscribeArtifactCode = artifactCode.subscribe((value) => {
if (contents) {
const codeIdx = contents.findIndex((content) => content.content.includes(value));
selectedContentIdx = codeIdx !== -1 ? codeIdx : 0;
}
});
artifactContents.subscribe((value) => {
contents = value;
console.log('Artifact contents updated:', contents);
const unsubscribeArtifactContents = artifactContents.subscribe((value) => {
const newContents = value ?? [];
console.log('Artifact contents updated:', newContents);
if (contents.length === 0) {
if (newContents.length === 0) {
showControls.set(false);
showArtifacts.set(false);
selectedContentIdx = 0;
} else if (newContents.length > contents.length) {
selectedContentIdx = newContents.length - 1;
}
selectedContentIdx = contents ? contents.length - 1 : 0;
contents = newContents;
});
return () => {
unsubscribeArtifactCode();
unsubscribeArtifactContents();
};
});
</script>
+118 -70
View File
@@ -65,6 +65,7 @@
import { AudioQueue } from '$lib/utils/audio';
import {
archiveChatById,
createNewChat,
getAllTags,
getChatById,
@@ -104,6 +105,7 @@
import Tooltip from '../common/Tooltip.svelte';
import Sidebar from '../icons/Sidebar.svelte';
import Image from '../common/Image.svelte';
import { getBanners } from '$lib/apis/configs';
export let chatIdProp = '';
@@ -405,11 +407,14 @@
};
const terminalEventHandler = (type: string, data: any) => {
if (!data?.path) return;
if (type === 'terminal:display_file') {
if (!data?.path) return;
displayFileHandler(data.path, { showControls, showFileNavPath });
} else if (type === 'terminal:write_file') {
} else if (type === 'terminal:write_file' || type === 'terminal:replace_file_content') {
if (!data?.path) return;
showFileNavDir.set(data.path);
} else if (type === 'terminal:run_command') {
showFileNavDir.set('/');
}
};
@@ -644,6 +649,13 @@
if (p.url.pathname === '/') {
await tick();
initNewChat();
// Re-fetch banners on navigation to homepage so newly configured banners appear
try {
banners.set(await getBanners(localStorage.token).catch(() => []));
} catch (e) {
console.error('Failed to refresh banners:', e);
}
}
stopAudio();
@@ -922,15 +934,19 @@
}
};
$: if (history) {
cancelAnimationFrame(contentsRAF);
contentsRAF = requestAnimationFrame(() => {
getContents();
contentsRAF = null;
});
} else {
artifactContents.set([]);
}
const onHistoryChange = (history) => {
if (history) {
cancelAnimationFrame(contentsRAF);
contentsRAF = requestAnimationFrame(() => {
getContents();
contentsRAF = null;
});
} else {
artifactContents.set([]);
}
};
$: onHistoryChange(history);
const getContents = () => {
const messages = history ? createMessagesList(history, history.currentId) : [];
@@ -1561,27 +1577,29 @@
navigator.vibrate(5);
}
// Emit chat event for TTS
const messageContentParts = getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
);
messageContentParts.pop();
// dispatch only last sentence and make sure it hasn't been dispatched before
if (
messageContentParts.length > 0 &&
messageContentParts[messageContentParts.length - 1] !== message.lastSentence
) {
message.lastSentence = messageContentParts[messageContentParts.length - 1];
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: {
id: message.id,
content: messageContentParts[messageContentParts.length - 1]
}
})
// Emit chat event for TTS (only when call overlay is active)
if ($showCallOverlay) {
const messageContentParts = getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
);
messageContentParts.pop();
// dispatch only last sentence and make sure it hasn't been dispatched before
if (
messageContentParts.length > 0 &&
messageContentParts[messageContentParts.length - 1] !== message.lastSentence
) {
message.lastSentence = messageContentParts[messageContentParts.length - 1];
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: {
id: message.id,
content: messageContentParts[messageContentParts.length - 1]
}
})
);
}
}
}
}
@@ -1595,27 +1613,29 @@
navigator.vibrate(5);
}
// Emit chat event for TTS
const messageContentParts = getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
);
messageContentParts.pop();
// dispatch only last sentence and make sure it hasn't been dispatched before
if (
messageContentParts.length > 0 &&
messageContentParts[messageContentParts.length - 1] !== message.lastSentence
) {
message.lastSentence = messageContentParts[messageContentParts.length - 1];
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: {
id: message.id,
content: messageContentParts[messageContentParts.length - 1]
}
})
// Emit chat event for TTS (only when call overlay is active)
if ($showCallOverlay) {
const messageContentParts = getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
);
messageContentParts.pop();
// dispatch only last sentence and make sure it hasn't been dispatched before
if (
messageContentParts.length > 0 &&
messageContentParts[messageContentParts.length - 1] !== message.lastSentence
) {
message.lastSentence = messageContentParts[messageContentParts.length - 1];
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: {
id: message.id,
content: messageContentParts[messageContentParts.length - 1]
}
})
);
}
}
}
@@ -1642,18 +1662,20 @@
document.getElementById(`speak-button-${message.id}`)?.click();
}
// Emit chat event for TTS
let lastMessageContentPart =
getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
)?.at(-1) ?? '';
if (lastMessageContentPart) {
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: { id: message.id, content: lastMessageContentPart }
})
);
// Emit chat event for TTS (only when call overlay is active)
if ($showCallOverlay) {
let lastMessageContentPart =
getMessageContentParts(
removeAllDetails(message.content),
$config?.audio?.tts?.split_on ?? 'punctuation'
)?.at(-1) ?? '';
if (lastMessageContentPart) {
eventTarget.dispatchEvent(
new CustomEvent('chat', {
detail: { id: message.id, content: lastMessageContentPart }
})
);
}
}
eventTarget.dispatchEvent(
new CustomEvent('chat:finish', {
@@ -1991,6 +2013,17 @@
return features;
};
const getStopTokens = () => {
const stop = params?.stop ?? $settings?.params?.stop;
if (!stop) return undefined;
const tokens = Array.isArray(stop) ? stop : stop.split(',').map((s) => s.trim());
return tokens
.filter(Boolean)
.map((token) => decodeURIComponent(JSON.parse(`"${token.replace(/"/g, '\\"')}"`)));
};
const sendMessageSocket = async (model, _messages, _history, responseMessageId, _chatId) => {
const responseMessage = _history.messages[responseMessageId];
const userMessage = _history.messages[responseMessage.parentId];
@@ -2152,12 +2185,7 @@
params: {
...$settings?.params,
...params,
stop:
(params?.stop ?? $settings?.params?.stop ?? undefined)
? (params?.stop.split(',').map((token) => token.trim()) ?? $settings.params.stop).map(
(str) => decodeURIComponent(JSON.parse('"' + str.replace(/\"/g, '\\"') + '"'))
)
: undefined
stop: getStopTokens()
},
files: (files?.length ?? 0) > 0 ? files : undefined,
@@ -2585,6 +2613,25 @@
toast.error($i18n.t('Failed to move chat'));
}
};
const archiveChatHandler = async (id: string) => {
try {
await archiveChatById(localStorage.token, id);
currentChatPage.set(1);
initNewChat();
await goto('/');
getChatList(localStorage.token, $currentChatPage).then((chats) => {
chats.set(chats);
});
getPinnedChatList(localStorage.token).then((pinnedChats) => {
pinnedChats.set(pinnedChats);
});
toast.success($i18n.t('Chat archived.'));
} catch (error) {
console.error('Error archiving chat:', error);
toast.error($i18n.t('Failed to archive chat.'));
}
};
</script>
<svelte:head>
@@ -2667,7 +2714,7 @@
bind:selectedModels
shareEnabled={!!history.currentId}
{initNewChat}
archiveChatHandler={() => {}}
{archiveChatHandler}
{moveChatHandler}
onSaveTempChat={async () => {
try {
@@ -2877,6 +2924,7 @@
{stopResponse}
{showMessage}
{eventTarget}
{codeInterpreterEnabled}
/>
</PaneGroup>
</div>
+17 -4
View File
@@ -10,6 +10,7 @@
import { onDestroy, onMount, tick, getContext } from 'svelte';
import {
config,
terminalServers,
mobile,
showControls,
@@ -31,6 +32,7 @@
import Artifacts from './Artifacts.svelte';
import Embeds from './ChatControls/Embeds.svelte';
import FileNav from './FileNav.svelte';
import PyodideFileNav from './PyodideFileNav.svelte';
import Overview from './Overview.svelte';
const i18n = getContext('i18n');
@@ -50,6 +52,8 @@
export let files;
export let modelId;
export let codeInterpreterEnabled = false;
export let pane: Pane | null = null;
let largeScreen = false;
@@ -67,7 +71,9 @@
$: hasMessages = history?.messages && Object.keys(history.messages).length > 0;
$: showControlsTab = $user?.role === 'admin' || ($user?.permissions?.chat?.controls ?? true);
$: showFilesTab = !!$selectedTerminalId;
$: showFilesTab =
!!$selectedTerminalId ||
(codeInterpreterEnabled && $config?.code?.interpreter_engine !== 'jupyter');
$: showOverviewTab = hasMessages;
// Tab fallback: if active tab becomes hidden, switch to next available
@@ -342,7 +348,7 @@
? 'h-full'
: activeTab === 'controls'
? 'overflow-y-auto px-3 pt-1'
: 'overflow-y-auto'}"
: ''}"
>
{#if activeTab === 'overview'}
<Overview
@@ -355,6 +361,8 @@
/>
{:else if activeTab === 'files' && $selectedTerminalId}
<FileNav onAttach={handleTerminalAttach} />
{:else if activeTab === 'files' && codeInterpreterEnabled}
<PyodideFileNav />
{:else}
<Controls embed={true} {models} bind:chatFiles bind:params />
{/if}
@@ -401,7 +409,10 @@
<div
class="w-full {specialPanel && !$showCallOverlay
? ' '
: 'bg-white dark:shadow-lg dark:bg-gray-850'} z-40 pointer-events-auto overflow-y-auto scrollbar-hidden"
: 'bg-white dark:shadow-lg dark:bg-gray-850'} z-40 pointer-events-auto {activeTab ===
'files'
? ''
: 'overflow-y-auto'} scrollbar-hidden"
id="controls-container"
>
{#if $showCallOverlay}
@@ -483,7 +494,7 @@
? 'h-full'
: activeTab === 'controls'
? 'overflow-y-auto px-3 pt-1'
: 'overflow-y-auto'}"
: ''}"
>
{#if activeTab === 'overview'}
<Overview
@@ -501,6 +512,8 @@
/>
{:else if activeTab === 'files' && $selectedTerminalId}
<FileNav onAttach={handleTerminalAttach} overlay={dragged} />
{:else if activeTab === 'files' && codeInterpreterEnabled}
<PyodideFileNav overlay={dragged} />
{:else}
<Controls embed={true} {models} bind:chatFiles bind:params />
{/if}
+249 -34
View File
@@ -26,6 +26,7 @@
setCwd,
type FileEntry
} from '$lib/apis/terminal';
import { isCodeFile } from '$lib/utils/codeHighlight';
import Folder from '../icons/Folder.svelte';
import Document from '../icons/Document.svelte';
import PenAlt from '../icons/PenAlt.svelte';
@@ -37,6 +38,7 @@
import FileNavToolbar from './FileNav/FileNavToolbar.svelte';
import FilePreview from './FileNav/FilePreview.svelte';
import FileEntryRow from './FileNav/FileEntryRow.svelte';
import PortList from './FileNav/PortList.svelte';
import XTerminal from './XTerminal.svelte';
const i18n = getContext('i18n');
@@ -89,10 +91,21 @@
let selectedFile: string | null = null;
let fileContent: string | null = null;
let fileImageUrl: string | null = null;
let fileVideoUrl: string | null = null;
let fileAudioUrl: string | null = null;
let filePdfData: ArrayBuffer | null = null;
let fileSqliteData: ArrayBuffer | null = null;
let fileLoading = false;
let filePreviewRef: FilePreview;
// ── Office preview state ────────────────────────────────────────────
let fileOfficeHtml: string | null = null;
let fileOfficeSlides: string[] | null = null;
let currentSlide = 0;
let excelSheetNames: string[] = [];
let selectedExcelSheet = '';
let excelWorkbook: import('xlsx').WorkBook | null = null;
// ── File preview toolbar state (bound from FilePreview) ─────────────
let editing = false;
let showRaw = false;
@@ -101,12 +114,19 @@
const MD_EXTS = new Set(['md', 'markdown', 'mdx']);
const CSV_EXTS = new Set(['csv', 'tsv']);
const HTML_EXTS = new Set(['html', 'htm']);
const OFFICE_EXTS = new Set(['docx', 'xlsx', 'pptx']);
const getFileExt = (path: string | null) => path?.split('.').pop()?.toLowerCase() ?? '';
$: isMarkdown = MD_EXTS.has(getFileExt(selectedFile));
$: isCsv = CSV_EXTS.has(getFileExt(selectedFile));
$: isHtml = HTML_EXTS.has(getFileExt(selectedFile));
$: isTextFile = fileContent !== null && fileImageUrl === null && filePdfData === null;
$: isJson = ['json', 'jsonc', 'jsonl', 'json5'].includes(getFileExt(selectedFile));
$: isSvg = getFileExt(selectedFile) === 'svg';
$: isNotebook = getFileExt(selectedFile) === 'ipynb';
$: isCode = isCodeFile(selectedFile);
$: isOfficeFile = OFFICE_EXTS.has(getFileExt(selectedFile));
$: isTextFile =
fileContent !== null && fileImageUrl === null && filePdfData === null && !isOfficeFile;
// ── Upload / folder creation ─────────────────────────────────────────
let isDragOver = false;
@@ -157,7 +177,8 @@
const config = await getTerminalConfig(terminal.url, terminal.key);
terminalEnabled = config?.features?.terminal !== false;
const cwd = await getCwd(terminal.url, terminal.key);
const rawCwd = await getCwd(terminal.url, terminal.key);
const cwd = rawCwd ? normalizePath(rawCwd) : null;
const dir = cwd ? (cwd.endsWith('/') ? cwd : cwd + '/') : '/';
savedPath = dir;
loadDir(dir);
@@ -166,22 +187,33 @@
}
// ── Helpers ──────────────────────────────────────────────────────────
const IMAGE_EXTS = new Set(['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'bmp', 'ico', 'avif']);
const IMAGE_EXTS = new Set(['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'ico', 'avif']);
const VIDEO_EXTS = new Set(['mp4', 'webm', 'mov', 'ogv', 'avi', 'mkv']);
const AUDIO_EXTS = new Set(['mp3', 'wav', 'ogg', 'oga', 'flac', 'm4a', 'aac', 'wma', 'opus']);
const SQLITE_EXTS = new Set(['db', 'sqlite', 'sqlite3', 'db3']);
const isImage = (path: string) => IMAGE_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
const isVideo = (path: string) => VIDEO_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
const isAudio = (path: string) => AUDIO_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
const isSqlite = (path: string) => SQLITE_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
const isPdf = (path: string) => path.split('.').pop()?.toLowerCase() === 'pdf';
const isOffice = (path: string) => OFFICE_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
const buildBreadcrumbs = (path: string) =>
path
.split('/')
.filter(Boolean)
.reduce(
(acc, part) => {
const prev = acc[acc.length - 1];
acc.push({ label: part, path: `${prev.path}${part}/` });
return acc;
},
[{ label: '/', path: '/' }]
);
/** Normalize Windows backslashes to forward slashes. */
const normalizePath = (p: string) => p.replace(/\\/g, '/');
const buildBreadcrumbs = (path: string) => {
const parts = path.split('/').filter(Boolean);
const isDrive = /^[A-Za-z]:$/.test(parts[0] ?? '');
const root = isDrive ? { label: parts[0], path: `${parts[0]}/` } : { label: '/', path: '/' };
return (isDrive ? parts.slice(1) : parts).reduce(
(acc, part) => {
const prev = acc[acc.length - 1];
acc.push({ label: part, path: `${prev.path}${part}/` });
return acc;
},
[root]
);
};
// ── File preview management ──────────────────────────────────────────
const clearFilePreview = () => {
@@ -191,7 +223,22 @@
URL.revokeObjectURL(fileImageUrl);
fileImageUrl = null;
}
if (fileVideoUrl) {
URL.revokeObjectURL(fileVideoUrl);
fileVideoUrl = null;
}
if (fileAudioUrl) {
URL.revokeObjectURL(fileAudioUrl);
fileAudioUrl = null;
}
filePdfData = null;
fileSqliteData = null;
fileOfficeHtml = null;
fileOfficeSlides = null;
currentSlide = 0;
excelSheetNames = [];
selectedExcelSheet = '';
excelWorkbook = null;
};
// ── Directory operations ─────────────────────────────────────────────
@@ -241,9 +288,51 @@
if (isImage(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) fileImageUrl = URL.createObjectURL(result.blob);
} else if (isVideo(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) fileVideoUrl = URL.createObjectURL(result.blob);
} else if (isAudio(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) fileAudioUrl = URL.createObjectURL(result.blob);
} else if (isPdf(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) filePdfData = await result.blob.arrayBuffer();
} else if (isSqlite(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) fileSqliteData = await result.blob.arrayBuffer();
} else if (isOffice(filePath)) {
const result = await downloadFileBlob(terminal.url, terminal.key, filePath);
if (result) {
const ext = getFileExt(filePath);
const arrayBuffer = await result.blob.arrayBuffer();
try {
if (ext === 'docx') {
const mammoth = await import('mammoth');
const res = await mammoth.convertToHtml({ arrayBuffer });
const DOMPurify = (await import('dompurify')).default;
fileOfficeHtml = DOMPurify.sanitize(res.value);
} else if (ext === 'xlsx') {
const XLSX = await import('xlsx');
const wb = XLSX.read(new Uint8Array(arrayBuffer), { type: 'array' });
excelWorkbook = wb;
excelSheetNames = wb.SheetNames;
if (excelSheetNames.length > 0) {
selectedExcelSheet = excelSheetNames[0];
const { excelToTable } = await import('$lib/utils/excelToTable');
const result = await excelToTable(wb.Sheets[selectedExcelSheet]);
fileOfficeHtml = result.html;
}
} else if (ext === 'pptx') {
const { pptxToImages } = await import('$lib/utils/pptxToHtml');
const result = await pptxToImages(arrayBuffer);
fileOfficeSlides = result.images;
currentSlide = 0;
}
} catch (e) {
console.error('Failed to render Office file:', e);
fileContent = `Error previewing file: ${e instanceof Error ? e.message : 'Unknown error'}`;
}
}
} else {
fileContent = await readFile(terminal.url, terminal.key, filePath);
}
@@ -402,40 +491,49 @@
if (!filePath || !selectedTerminal) return;
handledDisplayFile = true;
showFileNavPath.set(null);
filePath = normalizePath(filePath);
const lastSlash = filePath.lastIndexOf('/');
const dir = lastSlash > 0 ? filePath.substring(0, lastSlash + 1) : '/';
const fileName = filePath.substring(lastSlash + 1);
if (dir !== currentPath) {
await loadDir(dir);
}
// Always reload directory to ensure entries are fresh
await loadDir(dir);
await tick();
const entry = entries.find((e) => e.name === fileName);
if (entry) await openEntry(entry);
if (entry) {
await openEntry(entry);
} else {
// File may not be in listing; open it directly
await openEntry({ name: fileName, type: 'file', size: 0 });
}
});
const unsubFileNavDir = showFileNavDir.subscribe(async (filePath) => {
if (!filePath || !selectedTerminal) return;
showFileNavDir.set(null);
filePath = normalizePath(filePath);
const lastSlash = filePath.lastIndexOf('/');
const dir = lastSlash > 0 ? filePath.substring(0, lastSlash + 1) : '/';
if (dir === currentPath) {
await loadDir(currentPath);
}
if (filePath === selectedFile) {
const fileName = filePath.substring(lastSlash + 1);
const entry = entries.find((e) => e.name === fileName);
if (entry) await openEntry(entry);
if (selectedFile) {
if (selectedFile === filePath || currentPath.startsWith(dir)) {
const fileName = selectedFile.split('/').pop() ?? '';
await openEntry({ name: fileName, type: 'file', size: 0 });
}
} else {
if (currentPath.startsWith(dir) || dir.startsWith(currentPath)) {
await loadDir(currentPath);
}
}
});
if (!handledDisplayFile) {
if (savedPath === '/') {
const cwd = await getCwd(terminal.url, terminal.key);
const rawCwd = await getCwd(terminal.url, terminal.key);
const cwd = rawCwd ? normalizePath(rawCwd) : null;
if (cwd) savedPath = cwd.endsWith('/') ? cwd : cwd + '/';
}
loadDir(savedPath);
@@ -461,6 +559,8 @@
document.addEventListener('visibilitychange', onVisibilityChange);
return () => {
unsubFileNav();
unsubFileNavDir();
window.removeEventListener('keydown', onKeyDown);
window.removeEventListener('keyup', onKeyUp);
window.removeEventListener('blur', onBlur);
@@ -470,6 +570,8 @@
onDestroy(() => {
if (fileImageUrl) URL.revokeObjectURL(fileImageUrl);
if (fileVideoUrl) URL.revokeObjectURL(fileVideoUrl);
if (fileAudioUrl) URL.revokeObjectURL(fileAudioUrl);
});
</script>
@@ -496,7 +598,7 @@
{:else}
<div
bind:this={containerEl}
class="flex flex-col h-full min-h-0 relative"
class="flex flex-col h-full min-h-0 min-w-0 relative"
on:dragover={handleDragOver}
on:dragleave={() => (isDragOver = false)}
on:drop={handleDrop}
@@ -530,13 +632,20 @@
{selectedFile}
{loading}
onNavigate={loadDir}
onRefresh={() => loadDir(currentPath)}
onRefresh={() => {
if (selectedFile) {
const fileName = selectedFile.split('/').pop() ?? '';
openEntry({ name: fileName, type: 'file', size: 0 });
} else {
loadDir(currentPath);
}
}}
onNewFolder={startNewFolder}
onNewFile={startNewFile}
onUploadFiles={handleUploadFiles}
onMove={handleMove}
>
{#if fileImageUrl !== null}
{#if fileImageUrl !== null || (fileOfficeSlides !== null && fileOfficeSlides.length > 0)}
<Tooltip content={$i18n.t('Reset view')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
@@ -558,7 +667,7 @@
</button>
</Tooltip>
{/if}
{#if (isMarkdown || isCsv || isHtml) && fileContent !== null && !editing}
{#if (isMarkdown || isCsv || isHtml || isJson || isSvg || isNotebook) && fileContent !== null && !editing}
<Tooltip content={showRaw ? $i18n.t('Preview') : $i18n.t('Source')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
@@ -608,7 +717,61 @@
</Tooltip>
{/if}
{#if isTextFile}
{#if editing}
{#if isHtml && showRaw}
<Tooltip content={$i18n.t('Save')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={() => filePreviewRef?.saveCodeFile()}
disabled={saving}
aria-label={$i18n.t('Save')}
>
{#if saving}
<Spinner className="size-3.5" />
{:else}
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5"
>
<path
fill-rule="evenodd"
d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z"
clip-rule="evenodd"
/>
</svg>
{/if}
</button>
</Tooltip>
{:else if isHtml}
<!-- HTML preview mode: no edit/save buttons -->
{:else if isCode}
<Tooltip content={$i18n.t('Save')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={() => filePreviewRef?.saveCodeFile()}
disabled={saving}
aria-label={$i18n.t('Save')}
>
{#if saving}
<Spinner className="size-3.5" />
{:else}
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5"
>
<path
fill-rule="evenodd"
d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z"
clip-rule="evenodd"
/>
</svg>
{/if}
</button>
</Tooltip>
{:else if editing}
<Tooltip content={$i18n.t('Cancel')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
@@ -664,6 +827,34 @@
</Tooltip>
{/if}
{/if}
{#if fileContent !== null}
<Tooltip content={$i18n.t('Copy')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={async () => {
await navigator.clipboard.writeText(fileContent ?? '');
toast.success($i18n.t('Copied to clipboard'));
}}
aria-label={$i18n.t('Copy')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
class="size-3.5"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9.75a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184"
/>
</svg>
</button>
</Tooltip>
{/if}
<Tooltip content={$i18n.t('Download')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
@@ -689,18 +880,35 @@
</FileNavToolbar>
<!-- Content -->
<div class="flex-1 overflow-y-auto min-h-0">
<div class="flex-1 overflow-y-auto min-h-0 min-w-0">
{#if selectedFile !== null}
<FilePreview
bind:this={filePreviewRef}
bind:editing
bind:showRaw
bind:saving
bind:currentSlide
{selectedFile}
{fileLoading}
{fileImageUrl}
{fileVideoUrl}
{fileAudioUrl}
{filePdfData}
{fileSqliteData}
{fileContent}
{fileOfficeHtml}
{fileOfficeSlides}
{excelSheetNames}
{selectedExcelSheet}
onSheetChange={async (sheet) => {
if (!excelWorkbook) return;
selectedExcelSheet = sheet;
const { excelToTable } = await import('$lib/utils/excelToTable');
const result = await excelToTable(excelWorkbook.Sheets[sheet]);
fileOfficeHtml = result.html;
}}
baseUrl={selectedTerminal?.url ?? ''}
apiKey={selectedTerminal?.key ?? ''}
{overlay}
onSave={async (content) => {
const terminal = selectedTerminal;
@@ -797,6 +1005,13 @@
{/if}
</div>
<!-- Port detection -->
{#if selectedTerminal && !selectedFile}
<div class="shrink-0 border-t border-gray-100 dark:border-gray-800">
<PortList baseUrl={selectedTerminal.url} apiKey={selectedTerminal.key} />
</div>
{/if}
<!-- Terminal bottom panel -->
{#if terminalEnabled}
<div class="shrink-0 border-t border-gray-100 dark:border-gray-800 bg-white dark:bg-gray-850">
@@ -0,0 +1,114 @@
<script lang="ts">
import '$lib/utils/codemirror';
import { basicSetup, EditorView } from 'codemirror';
import { keymap } from '@codemirror/view';
import { Compartment, EditorState, Prec } from '@codemirror/state';
import { indentWithTab } from '@codemirror/commands';
import { indentUnit } from '@codemirror/language';
import { languages } from '@codemirror/language-data';
import { oneDark } from '@codemirror/theme-one-dark';
import { onMount, onDestroy, createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
export let value = '';
export let lang = 'python';
let container: HTMLDivElement;
let editor: EditorView | null = null;
let editorTheme = new Compartment();
let editorLanguage = new Compartment();
const getLang = async () => {
const language = languages.find((l) => l.alias.includes(lang));
return await language?.load();
};
onMount(async () => {
const isDark = document.documentElement.classList.contains('dark');
const extensions = [
Prec.highest(
keymap.of([
{
key: 'Mod-Enter',
run: () => {
dispatch('run');
return true;
}
},
{
key: 'Escape',
run: () => {
dispatch('cancel');
return true;
}
}
])
),
basicSetup,
keymap.of([indentWithTab]),
indentUnit.of(' '),
EditorView.updateListener.of((e) => {
if (e.docChanged) {
value = e.state.doc.toString();
dispatch('change', value);
}
}),
editorTheme.of(isDark ? oneDark : []),
editorLanguage.of([]),
EditorView.theme({
'&': { fontSize: '0.75rem' },
'.cm-content': {
padding: '0.35rem 0',
fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace'
},
'.cm-gutters': { display: 'none' },
'.cm-focused': { outline: 'none' },
'.cm-scroller': { overflow: 'auto' }
})
];
editor = new EditorView({
state: EditorState.create({ doc: value, extensions }),
parent: container
});
const language = await getLang();
if (language && editor) {
editor.dispatch({ effects: editorLanguage.reconfigure(language) });
}
// Watch dark mode
const observer = new MutationObserver(() => {
const dark = document.documentElement.classList.contains('dark');
editor?.dispatch({ effects: editorTheme.reconfigure(dark ? oneDark : []) });
});
observer.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] });
editor.focus();
return () => {
observer.disconnect();
editor?.destroy();
editor = null;
};
});
onDestroy(() => {
editor?.destroy();
editor = null;
});
</script>
<div bind:this={container} class="nb-cm-editor" />
<style>
.nb-cm-editor {
width: 100%;
background: #fffef5;
}
:global(.dark) .nb-cm-editor {
background: transparent;
}
</style>
@@ -0,0 +1,139 @@
<script lang="ts">
import '$lib/utils/codemirror';
import { basicSetup, EditorView } from 'codemirror';
import { keymap } from '@codemirror/view';
import { Compartment, EditorState } from '@codemirror/state';
import { indentWithTab } from '@codemirror/commands';
import { indentUnit, LanguageDescription } from '@codemirror/language';
import { languages } from '@codemirror/language-data';
import { oneDark } from '@codemirror/theme-one-dark';
import { onMount, onDestroy } from 'svelte';
export let value = '';
export let filePath: string | null = null;
export let onSave: ((content: string) => Promise<void>) | null = null;
let container: HTMLDivElement;
let editor: EditorView | null = null;
let editorTheme = new Compartment();
let editorLanguage = new Compartment();
let internalValue = '';
/** Return the current editor content */
export const getValue = (): string => {
return editor?.state.doc.toString() ?? value;
};
/** Replace editor content */
export const setValue = (newValue: string) => {
if (!editor) return;
internalValue = newValue;
editor.dispatch({
changes: { from: 0, to: editor.state.doc.length, insert: newValue }
});
};
export const focus = () => {
editor?.focus();
};
const detectLanguage = async (path: string | null) => {
if (!path) return;
const match = LanguageDescription.matchFilename(languages, path);
if (match) {
const lang = await match.load();
if (lang && editor) {
editor.dispatch({ effects: editorLanguage.reconfigure(lang) });
}
}
};
// React to external value changes (e.g. switching files)
$: if (editor && value !== internalValue) {
internalValue = value;
editor.dispatch({
changes: { from: 0, to: editor.state.doc.length, insert: value }
});
}
// React to filePath changes for language detection
$: if (editor && filePath) {
detectLanguage(filePath);
}
onMount(() => {
const isDark = document.documentElement.classList.contains('dark');
internalValue = value;
const extensions = [
basicSetup,
keymap.of([
indentWithTab,
{
key: 'Mod-s',
run: () => {
if (onSave) {
onSave(editor?.state.doc.toString() ?? '');
}
return true;
}
}
]),
indentUnit.of(' '),
EditorView.updateListener.of((e) => {
if (e.docChanged) {
internalValue = e.state.doc.toString();
value = internalValue;
}
}),
editorTheme.of(isDark ? oneDark : []),
editorLanguage.of([]),
EditorView.theme({
'&': { fontSize: '0.75rem', height: '100%' },
'.cm-content': {
padding: '0.5rem 0',
fontFamily: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace'
},
'.cm-scroller': { overflow: 'auto' },
'.cm-focused': { outline: 'none' }
})
];
editor = new EditorView({
state: EditorState.create({ doc: value, extensions }),
parent: container
});
detectLanguage(filePath);
// Watch dark mode
const observer = new MutationObserver(() => {
const dark = document.documentElement.classList.contains('dark');
editor?.dispatch({ effects: editorTheme.reconfigure(dark ? oneDark : []) });
});
observer.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] });
return () => {
observer.disconnect();
editor?.destroy();
editor = null;
};
});
onDestroy(() => {
editor?.destroy();
editor = null;
});
</script>
<div bind:this={container} class="file-code-editor" />
<style>
.file-code-editor {
width: 100%;
height: 100%;
}
.file-code-editor :global(.cm-editor) {
height: 100%;
}
</style>
@@ -12,8 +12,8 @@
export let entry: FileEntry;
export let currentPath: string;
export let terminalUrl: string;
export let terminalKey: string;
export let terminalUrl: string = '';
export let terminalKey: string = '';
export let onOpen: (entry: FileEntry) => void = () => {};
export let onDownload: (path: string) => void = () => {};
@@ -81,27 +81,28 @@
{/if}
</div>
{#if !selectedFile}
<Tooltip content={$i18n.t('Refresh')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={onRefresh}
aria-label={$i18n.t('Refresh')}
<Tooltip content={$i18n.t('Refresh')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={onRefresh}
aria-label={$i18n.t('Refresh')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5 {loading ? 'animate-spin' : ''}"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5 {loading ? 'animate-spin' : ''}"
>
<path
fill-rule="evenodd"
d="M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.451a.75.75 0 0 0 0-1.5H4.5a.75.75 0 0 0-.75.75v3.75a.75.75 0 0 0 1.5 0v-2.127l.13.13a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm-10.624-2.85a5.5 5.5 0 0 1 9.201-2.465l.312.31H11.75a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 .75-.75V3.42a.75.75 0 0 0-1.5 0v2.126l-.13-.129A7 7 0 0 0 3.239 8.555a.75.75 0 0 0 1.449.39Z"
clip-rule="evenodd"
/>
</svg>
</button>
</Tooltip>
<path
fill-rule="evenodd"
d="M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.451a.75.75 0 0 0 0-1.5H4.5a.75.75 0 0 0-.75.75v3.75a.75.75 0 0 0 1.5 0v-2.127l.13.13a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm-10.624-2.85a5.5 5.5 0 0 1 9.201-2.465l.312.31H11.75a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 .75-.75V3.42a.75.75 0 0 0-1.5 0v2.126l-.13-.129A7 7 0 0 0 3.239 8.555a.75.75 0 0 0 1.449.39Z"
clip-rule="evenodd"
/>
</svg>
</button>
</Tooltip>
{#if !selectedFile}
<Tooltip content={$i18n.t('New Folder')}>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
@@ -4,19 +4,41 @@
import { marked } from 'marked';
import DOMPurify from 'dompurify';
import { settings } from '$lib/stores';
import { isCodeFile } from '$lib/utils/codeHighlight';
import { initMermaid, renderMermaidDiagram } from '$lib/utils';
import Spinner from '../../common/Spinner.svelte';
import PDFViewer from '../../common/PDFViewer.svelte';
import JsonTreeView from './JsonTreeView.svelte';
import NotebookView from './NotebookView.svelte';
import SqliteView from './SqliteView.svelte';
import FileCodeEditor from './FileCodeEditor.svelte';
let pdfViewerRef: PDFViewer;
let fileCodeEditorRef: FileCodeEditor;
const i18n = getContext('i18n');
export let selectedFile: string | null = null;
export let fileLoading = false;
export let fileImageUrl: string | null = null;
export let fileVideoUrl: string | null = null;
export let fileAudioUrl: string | null = null;
export let filePdfData: ArrayBuffer | null = null;
export let fileSqliteData: ArrayBuffer | null = null;
export let fileContent: string | null = null;
// Terminal connection for notebook execution
export let baseUrl: string = '';
export let apiKey: string = '';
// Office preview props
export let fileOfficeHtml: string | null = null;
export let fileOfficeSlides: string[] | null = null;
export let currentSlide = 0;
export let excelSheetNames: string[] = [];
export let selectedExcelSheet = '';
export let onSheetChange: ((sheet: string) => void) | null = null;
export let overlay = false;
export let onSave: ((content: string) => Promise<void>) | null = null;
@@ -56,22 +78,71 @@
editContent = '';
};
/** Save code file directly from CodeMirror */
export const saveCodeFile = async () => {
if (!onSave) return;
saving = true;
const content = fileCodeEditorRef?.getValue() ?? '';
await onSave(content);
saving = false;
};
$: isTextFile = fileContent !== null && fileImageUrl === null && filePdfData === null;
const MD_EXTS = new Set(['md', 'markdown', 'mdx']);
const CSV_EXTS = new Set(['csv', 'tsv']);
const HTML_EXTS = new Set(['html', 'htm']);
const JSON_EXTS = new Set(['json', 'jsonc', 'jsonl', 'json5']);
const getExt = (path: string | null) => path?.split('.').pop()?.toLowerCase() ?? '';
$: isMarkdown = MD_EXTS.has(getExt(selectedFile));
$: isCsv = CSV_EXTS.has(getExt(selectedFile));
$: isHtml = HTML_EXTS.has(getExt(selectedFile));
$: isJson = JSON_EXTS.has(getExt(selectedFile));
$: isSvg = getExt(selectedFile) === 'svg';
$: isNotebook = getExt(selectedFile) === 'ipynb';
$: isCode = isCodeFile(selectedFile);
$: csvDelimiter = getExt(selectedFile) === 'tsv' ? '\t' : ',';
$: renderedHtml =
isMarkdown && fileContent
? DOMPurify.sanitize(marked.parse(fileContent, { async: false }) as string)
: '';
let markdownEl: HTMLDivElement;
let mermaidInstance: any = null;
const renderMermaidBlocks = async (el: HTMLDivElement) => {
if (!el) return;
const codeEls = el.querySelectorAll('code.language-mermaid');
if (codeEls.length === 0) return;
if (!mermaidInstance) {
mermaidInstance = await initMermaid();
}
for (const codeEl of codeEls) {
const pre = codeEl.parentElement;
if (!pre || pre.tagName !== 'PRE' || pre.dataset.mermaidRendered) continue;
pre.dataset.mermaidRendered = 'true';
try {
const svg = await renderMermaidDiagram(mermaidInstance, codeEl.textContent ?? '');
if (svg) {
const wrapper = document.createElement('div');
wrapper.className = 'mermaid-diagram flex justify-center py-2';
wrapper.innerHTML = svg;
pre.replaceWith(wrapper);
}
} catch (e) {
console.error('Mermaid render error:', e);
}
}
};
$: if (renderedHtml && markdownEl) {
tick().then(() => renderMermaidBlocks(markdownEl));
}
// Simple CSV parser that handles quoted fields
const parseCsv = (text: string, delimiter: string): string[][] => {
const rows: string[][] = [];
@@ -115,6 +186,61 @@
$: csvHeader = csvRows.length > 0 ? csvRows[0] : [];
$: csvBody = csvRows.length > 1 ? csvRows.slice(1) : [];
// ── Shiki code highlighting (SVG only) ──────────────────────────────
let highlightedHtml: string | null = null;
let highlightingFile: string | null = null;
$: if (isSvg && fileContent !== null && selectedFile) {
const currentFile = selectedFile;
highlightingFile = currentFile;
import('shiki')
.then(({ codeToHtml }) =>
codeToHtml(fileContent!, {
lang: 'xml',
themes: { light: 'github-light', dark: 'github-dark' },
defaultColor: 'light'
})
)
.then((html) => {
if (highlightingFile === currentFile) highlightedHtml = html;
})
.catch(() => {
if (highlightingFile === currentFile) highlightedHtml = null;
});
} else {
highlightedHtml = null;
}
// ── JSON parsing ────────────────────────────────────────────────────
let parsedJson: unknown = undefined;
let jsonError: string | null = null;
$: if (isJson && fileContent !== null) {
try {
parsedJson = JSON.parse(fileContent);
jsonError = null;
} catch (e) {
parsedJson = undefined;
jsonError = e instanceof Error ? e.message : 'Invalid JSON';
}
} else {
parsedJson = undefined;
jsonError = null;
}
// ── Notebook parsing ─────────────────────────────────────────────────
let parsedNotebook: Record<string, unknown> | null = null;
$: if (isNotebook && fileContent !== null) {
try {
parsedNotebook = JSON.parse(fileContent);
} catch {
parsedNotebook = null;
}
} else {
parsedNotebook = null;
}
export let showRaw = false;
$: selectedFile, (showRaw = false); // reset to preview mode when switching files
@@ -124,7 +250,8 @@
pzInstance = panzoom(node, {
bounds: true,
boundsPadding: 0.1,
zoomSpeed: 0.065
zoomSpeed: 0.065,
zoomDoubleClickSpeed: 1
});
};
@@ -152,9 +279,9 @@
</script>
<div
class="flex-1 {fileImageUrl !== null
class="flex-1 {fileImageUrl !== null || (fileOfficeSlides !== null && fileOfficeSlides.length > 0)
? 'overflow-hidden'
: 'overflow-y-auto'} min-h-0 relative h-full"
: 'overflow-y-auto'} min-h-0 min-w-0 relative h-full"
>
<!-- File preview -->
{#if fileLoading}
@@ -168,8 +295,109 @@
draggable="false"
/>
</div>
{:else if fileVideoUrl !== null}
<div class="w-full h-full flex items-center justify-center bg-black">
<!-- svelte-ignore a11y-media-has-caption -->
<video src={fileVideoUrl} controls class="max-w-full max-h-full">
{$i18n.t('Your browser does not support the video tag.')}
</video>
</div>
{:else if fileAudioUrl !== null}
<div class="w-full h-full flex items-center justify-center p-6">
<audio src={fileAudioUrl} controls class="w-full max-w-md">
{$i18n.t('Your browser does not support the audio tag.')}
</audio>
</div>
{:else if filePdfData !== null}
<PDFViewer bind:this={pdfViewerRef} data={filePdfData} className="w-full h-full" />
{:else if fileSqliteData !== null}
<SqliteView data={fileSqliteData} />
{:else if fileOfficeHtml !== null}
<div class="flex flex-col h-full">
<div class="office-preview overflow-auto flex-1 min-h-0">
{@html fileOfficeHtml}
</div>
{#if excelSheetNames.length > 1}
<div
class="flex items-center gap-1 py-1.5 px-3 border-t border-gray-100 dark:border-gray-800 overflow-x-auto"
>
{#each excelSheetNames as sheet}
<button
class="shrink-0 px-3 py-1 text-xs rounded-md transition-colors
{selectedExcelSheet === sheet
? 'bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200 font-medium'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => onSheetChange?.(sheet)}
>
{sheet}
</button>
{/each}
</div>
{/if}
</div>
{:else if fileOfficeSlides !== null && fileOfficeSlides.length > 0}
<div class="flex flex-col h-full">
<div
class="w-full flex-1 min-h-0 flex items-center justify-center overflow-hidden"
use:initImagePanzoom
>
<img
src={fileOfficeSlides[currentSlide]}
alt="Slide {currentSlide + 1}"
class="max-w-full max-h-full object-contain p-3"
draggable="false"
/>
</div>
{#if fileOfficeSlides.length > 1}
<div
class="flex items-center justify-center gap-3 py-2 px-3 border-t border-gray-100 dark:border-gray-800 text-xs text-gray-500"
>
<button
class="p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={currentSlide === 0}
on:click={() => {
resetImageView();
currentSlide = Math.max(0, currentSlide - 1);
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-4"
>
<path
fill-rule="evenodd"
d="M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"
clip-rule="evenodd"
/>
</svg>
</button>
<span>{currentSlide + 1} / {fileOfficeSlides.length}</span>
<button
class="p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={currentSlide === fileOfficeSlides.length - 1}
on:click={() => {
resetImageView();
currentSlide = Math.min(fileOfficeSlides.length - 1, currentSlide + 1);
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-4"
>
<path
fill-rule="evenodd"
d="M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z"
clip-rule="evenodd"
/>
</svg>
</button>
</div>
{/if}
</div>
{:else if fileContent !== null}
{#if isHtml && !showRaw}
{#if overlay}
@@ -183,13 +411,22 @@
class="w-full h-full border-none bg-white"
title="HTML Preview"
/>
{:else if isHtml && showRaw}
<div class="h-full">
<FileCodeEditor
bind:this={fileCodeEditorRef}
value={fileContent ?? ''}
filePath={selectedFile}
{onSave}
/>
</div>
{:else if isMarkdown && !showRaw}
<div class="prose dark:prose-invert max-w-full text-sm p-3">
<div bind:this={markdownEl} class="prose dark:prose-invert max-w-full text-sm p-3">
{@html renderedHtml}
</div>
{:else if isCsv && !showRaw && csvRows.length > 0}
<div class="overflow-auto h-full px-3 pb-3">
<table class="csv-table w-full text-xs font-mono border-collapse">
<div class="absolute inset-0 overflow-auto px-3 pb-3">
<table class="csv-table text-xs font-mono border-collapse">
<thead>
<tr>
<th class="csv-row-num">#</th>
@@ -214,6 +451,40 @@
</tbody>
</table>
</div>
{:else if isNotebook && !showRaw && parsedNotebook}
<div class="overflow-auto h-full">
<NotebookView notebook={parsedNotebook} filePath={selectedFile ?? ''} {baseUrl} {apiKey} />
</div>
{:else if isJson && !showRaw && parsedJson !== undefined}
<div class="overflow-auto h-full">
<JsonTreeView data={parsedJson} />
</div>
{:else if isJson && !showRaw && jsonError}
<div class="p-3 text-xs">
<div class="text-red-500 mb-2">JSON parse error: {jsonError}</div>
<pre
class="text-xs font-mono text-gray-800 dark:text-gray-200 whitespace-pre-wrap break-all leading-relaxed">{fileContent}</pre>
</div>
{:else if isSvg && !showRaw && fileContent}
<div class="svg-preview w-full h-full flex items-center justify-center overflow-auto p-3">
{@html DOMPurify.sanitize(fileContent, {
USE_PROFILES: { svg: true, svgFilters: true },
ADD_TAGS: ['use']
})}
</div>
{:else if isCode && !showRaw}
<div class="h-full">
<FileCodeEditor
bind:this={fileCodeEditorRef}
value={fileContent ?? ''}
filePath={selectedFile}
{onSave}
/>
</div>
{:else if isSvg && highlightedHtml && !showRaw}
<div class="shiki-preview overflow-auto h-full text-xs">
{@html highlightedHtml}
</div>
{:else if editing}
<textarea
bind:this={editTextarea}
@@ -226,7 +497,7 @@
class="text-xs font-mono text-gray-800 dark:text-gray-200 whitespace-pre-wrap break-all leading-relaxed p-3">{fileContent}</pre>
{/if}
{:else}
<div class="text-sm text-gray-400 text-center pt-8">
<div class="text-xs text-gray-400 text-center pt-8">
{$i18n.t('Could not read file.')}
</div>
{/if}
@@ -284,4 +555,171 @@
:global(.dark) .csv-row-num {
color: #6b7280;
}
/* ── Office preview styles ──────────────────────────────────────── */
:global(.office-preview) {
font-size: 0.875rem;
line-height: 1.6;
color: #1f2937;
background: #fff;
border-radius: 4px;
}
:global(.dark .office-preview) {
color: #e5e7eb;
background: #1a1a2e;
}
:global(.office-preview table) {
border-collapse: collapse;
font-size: 0.75rem;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
line-height: 1.3;
}
:global(.office-preview table td),
:global(.office-preview table th) {
border: 1px solid rgba(200, 200, 200, 0.5);
padding: 4px 10px;
text-align: left;
white-space: nowrap;
user-select: text;
cursor: cell;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}
:global(.dark .office-preview table td),
:global(.dark .office-preview table th) {
border-color: rgba(80, 80, 80, 0.5);
}
/* Column letter headers */
:global(.office-preview table th.excel-col-hdr) {
position: sticky;
top: 0;
z-index: 2;
background: #f0f0f0;
color: #666;
font-weight: 500;
font-size: 0.65rem;
text-align: center;
padding: 3px 10px;
border-bottom: 2px solid rgba(180, 180, 180, 0.6);
}
:global(.dark .office-preview table th.excel-col-hdr) {
background: #2a2a3e;
color: #888;
border-bottom-color: rgba(100, 100, 100, 0.6);
}
/* Row number cells */
:global(.office-preview .excel-row-num) {
position: sticky;
left: 0;
z-index: 1;
background: #f0f0f0;
color: #999;
font-size: 0.6rem;
text-align: right !important;
padding: 4px 8px 4px 4px !important;
user-select: none;
width: 1px;
white-space: nowrap;
border-right: 2px solid rgba(180, 180, 180, 0.6) !important;
}
:global(.dark .office-preview .excel-row-num) {
background: #2a2a3e;
color: #666;
border-right-color: rgba(100, 100, 100, 0.6) !important;
}
/* Corner cell (intersection of row nums and col headers) */
:global(.office-preview thead .excel-row-num) {
z-index: 3;
}
/* Number cells right-aligned */
:global(.office-preview .excel-num) {
text-align: right;
font-variant-numeric: tabular-nums;
}
/* Row hover and selection */
:global(.office-preview table tbody tr:nth-child(even) td:not(.excel-row-num)) {
background: rgba(0, 0, 0, 0.015);
}
:global(.dark .office-preview table tbody tr:nth-child(even) td:not(.excel-row-num)) {
background: rgba(255, 255, 255, 0.02);
}
:global(.office-preview table tbody tr:hover td:not(.excel-row-num)) {
background: rgba(59, 130, 246, 0.06);
}
:global(.dark .office-preview table tbody tr:hover td:not(.excel-row-num)) {
background: rgba(59, 130, 246, 0.1);
}
:global(.office-preview table td:focus) {
outline: 2px solid rgba(59, 130, 246, 0.5);
outline-offset: -2px;
}
/* DOCX / generic office styles */
:global(.office-preview img) {
max-width: 100%;
height: auto;
}
:global(.office-preview h1) {
font-size: 1.5rem;
font-weight: 700;
margin: 0.75em 0 0.5em;
}
:global(.office-preview h2) {
font-size: 1.25rem;
font-weight: 600;
margin: 0.75em 0 0.5em;
}
:global(.office-preview h3) {
font-size: 1.1rem;
font-weight: 600;
margin: 0.5em 0 0.25em;
}
:global(.office-preview p) {
margin: 0.25em 0;
}
:global(.office-preview ul),
:global(.office-preview ol) {
padding-left: 1.5em;
margin: 0.5em 0;
}
/* ── Shiki code highlighting ─────────────────────────────────── */
.shiki-preview :global(pre.shiki) {
margin: 0;
padding: 0.75rem 1rem;
font-size: 0.75rem;
line-height: 1.6;
border-radius: 0;
overflow-x: auto;
min-height: 100%;
}
.shiki-preview :global(pre.shiki code) {
counter-reset: line;
}
.shiki-preview :global(pre.shiki code > .line) {
counter-increment: line;
display: inline-block;
width: 100%;
white-space: pre;
}
.shiki-preview :global(pre.shiki code > .line::before) {
content: counter(line);
display: inline-block;
width: 2.5em;
text-align: right;
margin-right: 1em;
color: #9ca3af;
user-select: none;
font-size: 0.65rem;
}
:global(.dark) .shiki-preview :global(pre.shiki code > .line::before) {
color: #4b5563;
}
/* Shiki dual-theme: swap CSS variables in dark mode */
:global(.dark) .shiki-preview :global(.shiki),
:global(.dark) .shiki-preview :global(.shiki span) {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
</style>
@@ -0,0 +1,153 @@
<script lang="ts">
export let data: unknown;
export let key: string | null = null;
export let root = true;
export let expandDepth = 2;
let depth = 0;
export { depth };
$: expanded = depth < expandDepth;
const toggle = () => {
expanded = !expanded;
};
$: type = Array.isArray(data) ? 'array' : data === null ? 'null' : typeof data;
$: isExpandable = type === 'object' || type === 'array';
$: entries = isExpandable && data !== null ? Object.entries(data as Record<string, unknown>) : [];
$: bracket = type === 'array' ? ['[', ']'] : ['{', '}'];
$: preview =
type === 'array'
? `[${(data as unknown[]).length}]`
: type === 'object'
? `{${entries.length}}`
: '';
</script>
{#if isExpandable}
<div class="json-node" class:json-root={root}>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<span class="json-toggle" on:click={toggle}>
<span class="json-arrow" class:json-expanded={expanded}>▶</span>
{#if key !== null}<span class="json-key">{key}</span><span class="json-colon">: </span>{/if}
{#if !expanded}<span class="json-preview">{bracket[0]} {preview} {bracket[1]}</span>{/if}
{#if expanded}<span class="json-bracket">{bracket[0]}</span>{/if}
</span>
{#if expanded}
<div class="json-children">
{#each entries as [k, v], i}
<div class="json-entry">
<svelte:self
data={v}
key={type === 'array' ? null : k}
root={false}
depth={depth + 1}
{expandDepth}
/>
{#if i < entries.length - 1}<span class="json-comma">,</span>{/if}
</div>
{/each}
</div>
<span class="json-bracket">{bracket[1]}</span>
{/if}
</div>
{:else}
<span class="json-leaf">
{#if key !== null}<span class="json-key">{key}</span><span class="json-colon">: </span>{/if}
{#if type === 'string'}
<span class="json-string">"{data}"</span>
{:else if type === 'number'}
<span class="json-number">{data}</span>
{:else if type === 'boolean'}
<span class="json-boolean">{data}</span>
{:else if type === 'null'}
<span class="json-null">null</span>
{:else}
<span>{String(data)}</span>
{/if}
</span>
{/if}
<style>
.json-root {
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
font-size: 0.75rem;
line-height: 1.6;
padding: 0.75rem 1rem;
}
.json-node {
/* keep structure visible */
}
.json-toggle {
cursor: pointer;
user-select: none;
}
.json-toggle:hover {
opacity: 0.7;
}
.json-arrow {
display: inline-block;
width: 1em;
font-size: 0.55em;
transition: transform 0.15s ease;
color: #9ca3af;
vertical-align: middle;
}
.json-expanded {
transform: rotate(90deg);
}
.json-children {
padding-left: 1.25em;
border-left: 1px solid rgba(128, 128, 128, 0.15);
margin-left: 0.35em;
}
.json-entry {
/* one entry per line */
}
.json-key {
color: #0550ae;
}
:global(.dark) .json-key {
color: #79c0ff;
}
.json-colon {
color: #6b7280;
}
.json-string {
color: #0a3069;
}
:global(.dark) .json-string {
color: #a5d6ff;
}
.json-number {
color: #0550ae;
}
:global(.dark) .json-number {
color: #79c0ff;
}
.json-boolean {
color: #cf222e;
}
:global(.dark) .json-boolean {
color: #ff7b72;
}
.json-null {
color: #6b7280;
font-style: italic;
}
.json-bracket {
color: #6b7280;
}
.json-comma {
color: #6b7280;
}
.json-preview {
color: #9ca3af;
font-size: 0.85em;
}
:global(.dark) .json-preview {
color: #6b7280;
}
</style>
@@ -0,0 +1,645 @@
<script lang="ts">
import { getContext, onMount, onDestroy } from 'svelte';
import { marked } from 'marked';
import DOMPurify from 'dompurify';
import { highlightCode } from '$lib/utils/codeHighlight';
import {
createNotebookSession,
executeNotebookCell,
stopNotebookSession
} from '$lib/apis/terminal';
import Spinner from '../../common/Spinner.svelte';
import Tooltip from '../../common/Tooltip.svelte';
import CellEditor from './CellEditor.svelte';
const i18n = getContext('i18n');
export let notebook: Record<string, unknown>;
export let filePath: string = '';
export let baseUrl: string = '';
export let apiKey: string = '';
interface NotebookCell {
cell_type: 'markdown' | 'code' | 'raw';
source: string[] | string;
outputs?: NotebookOutput[];
execution_count?: number | null;
}
interface NotebookOutput {
output_type: 'stream' | 'execute_result' | 'display_data' | 'error';
text?: string[] | string;
data?: Record<string, string[] | string>;
name?: string;
ename?: string;
evalue?: string;
traceback?: string[];
}
$: cells = (notebook?.cells as NotebookCell[]) ?? [];
$: lang = (notebook?.metadata as Record<string, unknown>)?.kernelspec
? ((notebook.metadata as Record<string, Record<string, string>>).kernelspec?.language ??
'python')
: 'python';
const toStr = (s: string[] | string | undefined): string =>
Array.isArray(s) ? s.join('') : (s ?? '');
// ── Syntax highlighting ──────────────────────────────────────────────
let highlightedCells: Record<number, string> = {};
const highlightCell = async (index: number, code: string, language: string) => {
try {
const { codeToHtml } = await import('shiki');
const html = await codeToHtml(code, {
lang: language,
themes: { light: 'github-light', dark: 'github-dark' },
defaultColor: 'light'
});
highlightedCells[index] = html;
highlightedCells = highlightedCells;
} catch {
// fallback handled in template
}
};
$: {
highlightedCells = {};
cells.forEach((cell, i) => {
if (cell.cell_type === 'code' && !editingCell[i]) {
highlightCell(i, toStr(cell.source), lang);
}
});
}
// ── Markdown / output helpers ────────────────────────────────────────
const renderMarkdown = (src: string): string =>
DOMPurify.sanitize(marked.parse(src, { async: false }) as string);
const stripAnsi = (s: string): string => s.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, '');
const getOutputImages = (output: NotebookOutput): string[] => {
if (!output.data) return [];
const images: string[] = [];
for (const [mime, content] of Object.entries(output.data)) {
if (mime.startsWith('image/')) {
const raw = Array.isArray(content) ? content.join('') : content;
images.push(raw.startsWith('data:') ? raw : `data:${mime};base64,${raw}`);
}
}
return images;
};
const getOutputHtml = (output: NotebookOutput): string | null => {
if (!output.data?.['text/html']) return null;
return DOMPurify.sanitize(toStr(output.data['text/html']));
};
const getOutputText = (output: NotebookOutput): string | null => {
if (output.output_type === 'stream') return toStr(output.text);
if (output.data?.['text/plain']) return toStr(output.data['text/plain']);
return null;
};
// ── Cell editing ─────────────────────────────────────────────────────
let editingCell: Record<number, boolean> = {};
let editedSources: Record<number, string> = {};
const startEditing = (index: number) => {
editingCell[index] = true;
editedSources[index] = toStr(cells[index].source);
editingCell = editingCell;
};
const cancelEditing = (index: number) => {
delete editingCell[index];
delete editedSources[index];
editingCell = editingCell;
highlightCell(index, toStr(cells[index].source), lang);
};
// ── Session / kernel ─────────────────────────────────────────────────
let sessionId: string | null = null;
let kernelReady = false;
let kernelStarting = false;
let kernelError: string | null = null;
let runningCell: number | null = null;
let runAllActive = false;
const canExecute = baseUrl && apiKey && filePath;
const startSession = async (): Promise<boolean> => {
if (!baseUrl || !apiKey || !filePath) return false;
kernelStarting = true;
kernelError = null;
const result = await createNotebookSession(baseUrl, apiKey, filePath);
if ('error' in result) {
kernelStarting = false;
kernelError = result.error;
return false;
}
sessionId = result.id;
kernelReady = true;
kernelStarting = false;
return true;
};
const stopSession = async () => {
if (sessionId && baseUrl && apiKey) {
await stopNotebookSession(baseUrl, apiKey, sessionId);
}
sessionId = null;
kernelReady = false;
};
const runCell = async (index: number) => {
if (runningCell !== null) return;
if (!kernelReady && !(await startSession())) return;
runningCell = index;
const source = editedSources[index] ?? toStr(cells[index].source);
// Apply edits
if (editedSources[index] !== undefined) {
cells[index].source = editedSources[index];
delete editingCell[index];
delete editedSources[index];
editingCell = editingCell;
}
const result = await executeNotebookCell(baseUrl, apiKey, sessionId!, index, source);
if ('error' in result) {
cells[index].outputs = [
{
output_type: 'error',
ename: 'ExecutionError',
evalue: result.error,
traceback: [result.error]
}
];
} else {
cells[index].outputs = result.outputs;
if (result.execution_count !== undefined) {
cells[index].execution_count = result.execution_count;
}
}
cells = cells;
runningCell = null;
highlightCell(index, toStr(cells[index].source), lang);
};
const runAll = async () => {
if (runAllActive) return;
runAllActive = true;
for (let i = 0; i < cells.length; i++) {
if (cells[i].cell_type === 'code') {
await runCell(i);
}
}
runAllActive = false;
};
const autoResize = (e: Event) => {
const ta = e.target as HTMLTextAreaElement;
ta.style.height = 'auto';
ta.style.height = ta.scrollHeight + 'px';
};
onDestroy(() => {
if (sessionId) stopSession();
});
</script>
<div class="notebook-view">
<!-- Toolbar -->
{#if baseUrl && apiKey && filePath}
<div class="nb-toolbar flex items-center gap-1 px-2 py-0.5">
<button
class="nb-btn text-[0.6rem]"
on:click={runAll}
disabled={runAllActive || runningCell !== null}
>
{$i18n.t('Run All')}
</button>
{#if kernelReady}
<button
class="nb-btn text-[0.6rem]"
on:click={async () => {
await stopSession();
await startSession();
}}
>
{$i18n.t('Restart')}
</button>
<button class="nb-btn text-[0.6rem]" on:click={stopSession}>
{$i18n.t('Stop')}
</button>
{/if}
<div class="flex-1"></div>
<div class="flex items-center select-none">
{#if kernelStarting}
<Tooltip content={$i18n.t('Starting kernel...')} placement="bottom"
><Spinner className="size-2" /></Tooltip
>
{:else if runningCell !== null}
<Tooltip content={$i18n.t('Running')} placement="bottom"
><Spinner className="size-2" /></Tooltip
>
{:else if kernelReady}
<Tooltip content="Jupyter" placement="bottom"
><span class="size-1.5 rounded-full bg-green-500 inline-block"></span></Tooltip
>
{:else}
<Tooltip content={$i18n.t('No kernel')} placement="bottom"
><span class="size-1.5 rounded-full bg-gray-400 dark:bg-gray-600 inline-block"
></span></Tooltip
>
{/if}
</div>
</div>
{#if kernelError}
<div
class="px-2 py-1 text-[0.65rem] text-red-600 dark:text-red-400 bg-red-50 dark:bg-red-950/30 whitespace-pre-wrap font-mono"
>
{kernelError}
</div>
{/if}
{/if}
<!-- Cells -->
{#each cells as cell, i}
<div class="nb-cell nb-cell-{cell.cell_type}">
{#if cell.cell_type === 'markdown'}
{#if editingCell[i]}
<textarea
class="nb-edit-textarea text-sm"
bind:value={editedSources[i]}
on:input={autoResize}
on:blur={() => cancelEditing(i)}
on:keydown={(e) => {
if (e.key === 'Escape') cancelEditing(i);
}}
></textarea>
{:else}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="nb-markdown prose dark:prose-invert max-w-full text-sm cursor-text"
role="textbox"
tabindex="0"
on:dblclick={() => startEditing(i)}
>
{@html renderMarkdown(toStr(cell.source))}
</div>
{/if}
{:else if cell.cell_type === 'code'}
<div class="nb-code-wrap">
<div class="nb-cell-gutter">
{#if runningCell === i}
<div class="nb-cell-label"><Spinner className="size-3" /></div>
{:else if baseUrl && apiKey && filePath}
<button
class="nb-run-btn"
on:click={() => runCell(i)}
disabled={runningCell !== null}
title="Run cell (⌘+Enter)"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="2"
stroke="currentColor"
class="size-3"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"
/>
</svg>
</button>
{/if}
<div class="nb-cell-label">
{#if cell.execution_count !== undefined && cell.execution_count !== null}
[{cell.execution_count}]
{:else}
[ ]
{/if}
</div>
</div>
<div class="nb-code-content">
{#if editingCell[i]}
<CellEditor
value={editedSources[i]}
{lang}
on:change={(e) => {
editedSources[i] = e.detail;
}}
on:run={() => runCell(i)}
on:cancel={() => cancelEditing(i)}
/>
{:else}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="nb-code-source-clickable"
role="textbox"
tabindex="0"
on:dblclick={() => startEditing(i)}
>
{#if highlightedCells[i]}
<div class="nb-code-source shiki-preview">
{@html highlightedCells[i]}
</div>
{:else}
<pre class="nb-code-source-raw">{toStr(cell.source)}</pre>
{/if}
</div>
{/if}
{#if cell.outputs && cell.outputs.length > 0}
<div class="nb-outputs">
{#each cell.outputs as output}
{#if output.output_type === 'error'}
<pre class="nb-error">{stripAnsi(
(output.traceback ?? []).join('\n') || `${output.ename}: ${output.evalue}`
)}</pre>
{:else}
{@const html = getOutputHtml(output)}
{@const images = getOutputImages(output)}
{@const text = getOutputText(output)}
{#if html}
<div class="nb-output-html">{@html html}</div>
{/if}
{#each images as src}
<img {src} alt="Output" class="nb-output-img" />
{/each}
{#if text}
<pre class="nb-output-text">{text}</pre>
{/if}
{/if}
{/each}
</div>
{/if}
</div>
</div>
{:else if cell.cell_type === 'raw'}
<pre class="nb-raw">{toStr(cell.source)}</pre>
{/if}
</div>
{/each}
</div>
<style>
.notebook-view {
padding: 0;
font-size: 0.8rem;
}
.nb-toolbar {
position: sticky;
top: 0;
z-index: 5;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(4px);
}
:global(.dark) .nb-toolbar {
background: rgba(17, 24, 39, 0.95);
}
.nb-btn {
font-size: 0.6rem;
padding: 0.15rem 0.35rem;
border-radius: 0.25rem;
color: #6b7280;
transition: all 0.15s;
}
.nb-btn:hover:not(:disabled) {
background: rgba(128, 128, 128, 0.1);
color: #374151;
}
:global(.dark) .nb-btn:hover:not(:disabled) {
color: #d1d5db;
}
.nb-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.nb-cell {
padding: 0.25rem 0.75rem;
}
.nb-cell-markdown {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.nb-markdown :global(h1) {
font-size: 1.4rem;
}
.nb-markdown :global(h2) {
font-size: 1.2rem;
}
.nb-markdown :global(h3) {
font-size: 1.05rem;
}
.nb-markdown :global(p) {
margin: 0.4em 0;
}
.nb-markdown :global(pre) {
background: rgba(128, 128, 128, 0.06);
padding: 0.5rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
}
.nb-code-wrap {
display: flex;
gap: 0;
}
.nb-cell-gutter {
flex-shrink: 0;
width: 2.5rem;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 0.35rem;
gap: 0.15rem;
}
.nb-cell-label {
color: #9ca3af;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
font-size: 0.6rem;
user-select: none;
text-align: center;
}
:global(.dark) .nb-cell-label {
color: #4b5563;
}
.nb-run-btn {
display: flex;
align-items: center;
justify-content: center;
width: 1.25rem;
height: 1.25rem;
border-radius: 0.25rem;
color: #9ca3af;
transition: all 0.15s;
}
.nb-run-btn:hover:not(:disabled) {
color: #059669;
background: rgba(5, 150, 105, 0.1);
}
:global(.dark) .nb-run-btn {
color: #6b7280;
}
:global(.dark) .nb-run-btn:hover:not(:disabled) {
color: #34d399;
background: rgba(52, 211, 153, 0.15);
}
.nb-run-btn:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.nb-code-content {
flex: 1;
min-width: 0;
border: 1px solid rgba(128, 128, 128, 0.15);
border-radius: 4px;
overflow: hidden;
}
:global(.dark) .nb-code-content {
border-color: rgba(128, 128, 128, 0.25);
}
.nb-code-source-clickable {
cursor: text;
}
.nb-code-source :global(pre.shiki) {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
line-height: 1.5;
border-radius: 0;
}
.nb-code-source :global(pre.shiki code > .line::before) {
display: none;
}
.nb-code-source-raw {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
background: #f8f8f8;
color: #1f2937;
}
:global(.dark) .nb-code-source-raw {
background: #161b22;
color: #e6edf3;
}
.nb-code-textarea,
.nb-edit-textarea {
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
background: #fffef5;
color: #1f2937;
border: none;
outline: none;
resize: none;
min-height: 2.5rem;
overflow: hidden;
}
:global(.dark) .nb-code-textarea,
:global(.dark) .nb-edit-textarea {
background: #1a1d23;
color: #e6edf3;
}
.nb-edit-textarea {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 0.8rem;
background: transparent;
padding: 0.5rem 0.75rem;
border: 1px dashed rgba(128, 128, 128, 0.3);
border-radius: 4px;
}
.nb-outputs {
border-top: 1px solid rgba(128, 128, 128, 0.15);
}
:global(.dark) .nb-outputs {
border-top-color: rgba(128, 128, 128, 0.25);
}
.nb-output-text {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.7rem;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
color: #374151;
white-space: pre-wrap;
word-break: break-all;
}
:global(.dark) .nb-output-text {
color: #d1d5db;
}
.nb-output-img {
max-width: 100%;
height: auto;
padding: 0.5rem 0.75rem;
}
.nb-output-html {
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
overflow-x: auto;
}
.nb-output-html :global(table) {
border-collapse: collapse;
font-size: 0.7rem;
}
.nb-output-html :global(td),
.nb-output-html :global(th) {
border: 1px solid rgba(128, 128, 128, 0.2);
padding: 3px 8px;
text-align: left;
}
.nb-output-html :global(th) {
background: rgba(128, 128, 128, 0.06);
font-weight: 600;
}
.nb-error {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.7rem;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
background: rgba(239, 68, 68, 0.05);
color: #dc2626;
white-space: pre-wrap;
word-break: break-all;
}
:global(.dark) .nb-error {
background: rgba(239, 68, 68, 0.1);
color: #f87171;
}
.nb-raw {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.75rem;
line-height: 1.5;
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
color: #6b7280;
white-space: pre-wrap;
}
:global(.dark) .nb-code-source :global(.shiki),
:global(.dark) .nb-code-source :global(.shiki span) {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
font-style: var(--shiki-dark-font-style) !important;
font-weight: var(--shiki-dark-font-weight) !important;
text-decoration: var(--shiki-dark-text-decoration) !important;
}
</style>
@@ -0,0 +1,139 @@
<script lang="ts">
import { onDestroy, getContext } from 'svelte';
import type { ListeningPort } from '$lib/apis/terminal';
import { getListeningPorts, getPortProxyUrl } from '$lib/apis/terminal';
import Tooltip from '$lib/components/common/Tooltip.svelte';
const i18n = getContext('i18n');
export let baseUrl: string;
export let apiKey: string;
let ports: ListeningPort[] = [];
let expanded = false;
let loading = false;
let pollTimer: ReturnType<typeof setInterval> | null = null;
const loadPorts = async () => {
loading = true;
ports = await getListeningPorts(baseUrl, apiKey);
loading = false;
};
const startPolling = () => {
stopPolling();
loadPorts();
pollTimer = setInterval(loadPorts, 5000);
};
const stopPolling = () => {
if (pollTimer) {
clearInterval(pollTimer);
pollTimer = null;
}
};
const openPort = (port: number) => {
const url = getPortProxyUrl(baseUrl, port);
window.open(url, '_blank', 'noopener,noreferrer');
};
// Start polling when baseUrl is available
$: if (baseUrl) {
startPolling();
}
onDestroy(() => {
stopPolling();
});
</script>
<div class="px-2 py-1">
<button
class="flex items-center gap-1 w-full text-xs font-medium text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition"
on:click={() => (expanded = !expanded)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3 transition-transform {expanded ? '' : '-rotate-90'}"
>
<path
fill-rule="evenodd"
d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z"
clip-rule="evenodd"
/>
</svg>
{$i18n.t('Ports')}
<span class="ml-auto flex items-center gap-1">
{#if ports.length > 0}
<span
class="text-[10px] px-1.5 py-0.5 rounded-full bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400"
>
{ports.length}
</span>
{/if}
<Tooltip content={$i18n.t('Refresh')}>
<button
class="p-0.5 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click|stopPropagation={loadPorts}
aria-label={$i18n.t('Refresh')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3 {loading ? 'animate-spin' : ''}"
>
<path
fill-rule="evenodd"
d="M15.312 11.424a5.5 5.5 0 0 1-9.201 2.466l-.312-.311h2.451a.75.75 0 0 0 0-1.5H4.5a.75.75 0 0 0-.75.75v3.75a.75.75 0 0 0 1.5 0v-2.127l.13.13a7 7 0 0 0 11.712-3.138.75.75 0 0 0-1.449-.39Zm-10.624-2.85a5.5 5.5 0 0 1 9.201-2.465l.312.31H11.75a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 .75-.75V3.42a.75.75 0 0 0-1.5 0v2.126l-.13-.129A7 7 0 0 0 3.239 8.555a.75.75 0 0 0 1.449.39Z"
clip-rule="evenodd"
/>
</svg>
</button>
</Tooltip>
</span>
</button>
{#if expanded}
<div class="mt-1 space-y-0.5 max-h-[150px] overflow-y-auto">
{#if ports.length === 0}
<div class="text-xs text-gray-400 dark:text-gray-500 px-1 py-1">
{$i18n.t('No servers detected')}
</div>
{:else}
{#each ports as port}
<button
class="flex items-center w-full gap-2 px-1.5 py-1 text-xs rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition group"
on:click={() => openPort(port.port)}
>
<span class="font-mono text-blue-500 dark:text-blue-400 shrink-0">
:{port.port}
</span>
<span class="text-gray-500 dark:text-gray-400 truncate flex-1 text-left">
{port.process ?? ''}
</span>
<span
class="text-gray-400 dark:text-gray-500 opacity-0 group-hover:opacity-100 transition shrink-0"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3"
>
<path
fill-rule="evenodd"
d="M4.25 5.5a.75.75 0 0 0-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-4a.75.75 0 0 1 1.5 0v4A2.25 2.25 0 0 1 12.75 17h-8.5A2.25 2.25 0 0 1 2 14.75v-8.5A2.25 2.25 0 0 1 4.25 4h5a.75.75 0 0 1 0 1.5h-5Zm7.5-3.5a.75.75 0 0 0 0 1.5h2.69l-4.72 4.72a.75.75 0 0 0 1.06 1.06l4.72-4.72v2.69a.75.75 0 0 0 1.5 0v-5.25a.75.75 0 0 0-.75-.75h-5.25Z"
clip-rule="evenodd"
/>
</svg>
</span>
</button>
{/each}
{/if}
</div>
{/if}
</div>
@@ -0,0 +1,373 @@
<script lang="ts">
import { getContext, onDestroy } from 'svelte';
import Spinner from '../../common/Spinner.svelte';
const i18n = getContext('i18n');
export let data: ArrayBuffer;
let db: any = null;
let loading = true;
let error: string | null = null;
let tables: string[] = [];
let selectedTable = '';
let columns: string[] = [];
let rows: string[][] = [];
let totalRows = 0;
let page = 0;
const pageSize = 100;
// Custom query
let queryMode = false;
let queryText = '';
let queryColumns: string[] = [];
let queryRows: string[][] = [];
let queryError: string | null = null;
const init = async () => {
try {
const initSqlJs = (await import('sql.js')).default;
const SQL = await initSqlJs({
locateFile: () => '/sql.js/sql-wasm.wasm'
});
db = new SQL.Database(new Uint8Array(data));
// Get table list
const result = db.exec(
"SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name"
);
if (result.length > 0) {
tables = result[0].values.map((r: string[]) => r[0]);
if (tables.length > 0) {
selectTable(tables[0]);
}
}
loading = false;
} catch (e) {
loading = false;
error = e instanceof Error ? e.message : 'Failed to open database';
}
};
const selectTable = (table: string) => {
if (!db) return;
selectedTable = table;
page = 0;
queryMode = false;
loadPage();
};
const loadPage = () => {
if (!db || !selectedTable) return;
try {
// Get columns
const info = db.exec(`PRAGMA table_info("${selectedTable}")`);
if (info.length > 0) {
columns = info[0].values.map((r: any[]) => r[1] as string);
}
// Get total count
const countResult = db.exec(`SELECT COUNT(*) FROM "${selectedTable}"`);
if (countResult.length > 0) {
totalRows = countResult[0].values[0][0] as number;
}
// Get page data
const offset = page * pageSize;
const result = db.exec(`SELECT * FROM "${selectedTable}" LIMIT ${pageSize} OFFSET ${offset}`);
if (result.length > 0) {
rows = result[0].values.map((r: any[]) => r.map((v: any) => formatValue(v)));
} else {
rows = [];
}
} catch (e) {
error = e instanceof Error ? e.message : 'Query failed';
}
};
const runQuery = () => {
if (!db || !queryText.trim()) return;
queryError = null;
try {
const result = db.exec(queryText);
if (result.length > 0) {
queryColumns = result[0].columns;
queryRows = result[0].values.map((r: any[]) => r.map((v: any) => formatValue(v)));
} else {
queryColumns = [];
queryRows = [];
}
} catch (e) {
queryError = e instanceof Error ? e.message : 'Query failed';
queryColumns = [];
queryRows = [];
}
};
const formatValue = (v: any): string => {
if (v === null) return 'NULL';
if (v instanceof Uint8Array) return `[BLOB ${v.length}B]`;
return String(v);
};
$: totalPages = Math.ceil(totalRows / pageSize);
$: data && init();
onDestroy(() => {
if (db) {
try {
db.close();
} catch {}
db = null;
}
});
</script>
<div class="sqlite-view flex flex-col h-full">
{#if loading}
<div class="flex items-center justify-center h-full"><Spinner className="size-4" /></div>
{:else if error}
<div class="p-3 text-xs text-red-500">{error}</div>
{:else}
<!-- Table tabs + query toggle -->
<div
class="flex items-center gap-1 px-2 py-1.5 border-b border-gray-100 dark:border-gray-800 overflow-x-auto scrollbar-none shrink-0"
>
{#each tables as table}
<button
class="shrink-0 px-2 py-1 text-xs rounded-lg transition
{table === selectedTable && !queryMode
? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-medium'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => selectTable(table)}
>
{table}
</button>
{/each}
<div class="flex-1"></div>
<button
class="shrink-0 px-2 py-1 text-xs rounded-lg transition font-mono
{queryMode
? 'bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-200 font-medium'
: 'text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800'}"
on:click={() => {
queryMode = !queryMode;
}}
>
SQL
</button>
</div>
{#if queryMode}
<!-- Query editor -->
<div class="shrink-0">
<textarea
bind:value={queryText}
placeholder="SELECT * FROM ..."
class="query-editor w-full text-xs font-mono bg-transparent text-gray-800 dark:text-gray-200 px-3 py-2 outline-none resize-none"
rows="3"
spellcheck="false"
on:keydown={(e) => {
if ((e.metaKey || e.ctrlKey) && e.key === 'Enter') {
e.preventDefault();
runQuery();
}
}}
></textarea>
<div
class="flex items-center justify-between px-2 py-1 bg-gray-50 dark:bg-gray-900 border-b border-gray-100 dark:border-gray-800"
>
{#if queryError}
<span class="text-[0.65rem] text-red-500 dark:text-red-400 truncate mr-2"
>{queryError}</span
>
{:else}
<span class="text-[0.6rem] text-gray-400 dark:text-gray-600 select-none">⌘+Enter</span>
{/if}
<button
class="shrink-0 px-2.5 py-0.5 text-[0.65rem] font-medium rounded hover:bg-gray-200 dark:hover:bg-gray-800 transition text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300"
on:click={runQuery}
>
{$i18n.t('Run')}
</button>
</div>
</div>
{#if queryColumns.length > 0}
<div class="flex-1 overflow-auto min-h-0">
<table class="sqlite-table w-full text-xs font-mono border-collapse">
<thead>
<tr>
<th class="sqlite-row-num">#</th>
{#each queryColumns as col}
<th>{col}</th>
{/each}
</tr>
</thead>
<tbody>
{#each queryRows as row, i}
<tr>
<td class="sqlite-row-num">{i + 1}</td>
{#each row as cell}
<td class:sqlite-null={cell === 'NULL'}>{cell}</td>
{/each}
</tr>
{/each}
</tbody>
</table>
</div>
{/if}
{:else}
<!-- Table data -->
<div class="flex-1 overflow-auto min-h-0">
{#if columns.length > 0}
<table class="sqlite-table w-full text-xs font-mono border-collapse">
<thead>
<tr>
<th class="sqlite-row-num">#</th>
{#each columns as col}
<th>{col}</th>
{/each}
</tr>
</thead>
<tbody>
{#each rows as row, i}
<tr>
<td class="sqlite-row-num">{page * pageSize + i + 1}</td>
{#each row as cell}
<td class:sqlite-null={cell === 'NULL'}>{cell}</td>
{/each}
</tr>
{/each}
</tbody>
</table>
{:else}
<div class="text-xs text-gray-400 text-center pt-6">{$i18n.t('No data')}</div>
{/if}
</div>
<!-- Pagination -->
{#if totalPages > 1}
<div
class="flex items-center justify-center gap-3 py-1.5 px-3 border-t border-gray-100 dark:border-gray-800 text-xs text-gray-500 shrink-0"
>
<button
class="p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={page === 0}
on:click={() => {
page--;
loadPage();
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-4"
>
<path
fill-rule="evenodd"
d="M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"
clip-rule="evenodd"
/>
</svg>
</button>
<span>{page + 1} / {totalPages} ({totalRows.toLocaleString()} rows)</span>
<button
class="p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={page >= totalPages - 1}
on:click={() => {
page++;
loadPage();
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-4"
>
<path
fill-rule="evenodd"
d="M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z"
clip-rule="evenodd"
/>
</svg>
</button>
</div>
{/if}
{/if}
{/if}
</div>
<style>
.sqlite-table {
font-size: 0.7rem;
line-height: 1.4;
}
.sqlite-table th,
.sqlite-table td {
padding: 4px 8px;
text-align: left;
white-space: nowrap;
border: 1px solid rgba(128, 128, 128, 0.15);
}
.sqlite-table thead th {
position: sticky;
top: 0;
background: rgba(243, 244, 246, 0.95);
backdrop-filter: blur(4px);
font-weight: 600;
color: #374151;
border-bottom: 2px solid rgba(128, 128, 128, 0.25);
z-index: 1;
}
:global(.dark) .sqlite-table thead th {
background: rgba(31, 41, 55, 0.95);
color: #d1d5db;
}
.sqlite-table tbody tr:nth-child(even) {
background: rgba(128, 128, 128, 0.04);
}
.sqlite-table tbody tr:hover {
background: rgba(59, 130, 246, 0.06);
}
:global(.dark) .sqlite-table tbody tr:hover {
background: rgba(59, 130, 246, 0.1);
}
.sqlite-table td {
color: #374151;
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
}
:global(.dark) .sqlite-table td {
color: #d1d5db;
}
.sqlite-row-num {
color: #9ca3af;
font-size: 0.6rem;
text-align: right !important;
user-select: none;
width: 1px;
padding-right: 6px !important;
}
:global(.dark) .sqlite-row-num {
color: #6b7280;
}
.sqlite-null {
color: #9ca3af !important;
font-style: italic;
}
:global(.dark) .sqlite-null {
color: #6b7280 !important;
}
.query-editor::placeholder {
color: #9ca3af;
}
:global(.dark) .query-editor::placeholder {
color: #6b7280;
}
</style>
+54 -46
View File
@@ -508,11 +508,17 @@
let showCodeInterpreterButton = false;
$: showCodeInterpreterButton =
!$selectedTerminalId &&
(atSelectedModel?.id ? [atSelectedModel.id] : selectedModels).length ===
codeInterpreterCapableModels.length &&
$config?.features?.enable_code_interpreter &&
($_user.role === 'admin' || $_user?.permissions?.features?.code_interpreter);
// Disable code interpreter when terminal is active (mutually exclusive)
$: if ($selectedTerminalId && codeInterpreterEnabled) {
codeInterpreterEnabled = false;
}
const scrollToBottom = () => {
const element = document.getElementById('messages-container');
element.scrollTo({
@@ -1175,7 +1181,7 @@
<!-- Queued messages display -->
{#if messageQueue.length > 0}
<div
class="mb-1 mx-2 py-0.5 px-1.5 rounded-2xl bg-white dark:bg-gray-900/60 border border-gray-100 dark:border-gray-800/50 overflow-hidden"
class="mb-1 mx-2 py-0.5 px-1.5 rounded-2xl bg-white dark:bg-gray-900/60 border border-gray-100 dark:border-gray-800/50 overflow-x-hidden overflow-y-auto max-h-[25vh]"
>
{#each messageQueue as queuedMessage (queuedMessage.id)}
<QueuedMessageItem
@@ -1803,59 +1809,61 @@
</Tooltip>
{/if}
{#if (!history?.currentId || history.messages[history.currentId]?.done == true) && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.stt ?? true))}
{#if !history?.currentId || history.messages[history.currentId]?.done == true}
<!-- Terminal Server Selector -->
{#if ($terminalServers ?? []).length > 0 || ($settings?.terminalServers ?? []).some((s) => s.url)}
<TerminalMenu bind:show={showTerminalMenu} />
{/if}
<!-- {$i18n.t('Record voice')} -->
<Tooltip content={$i18n.t('Dictate')}>
<button
id="voice-input-button"
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-1.5 self-center mr-0.5"
type="button"
on:click={async () => {
try {
let stream = await navigator.mediaDevices
.getUserMedia({ audio: true })
.catch(function (err) {
toast.error(
$i18n.t(
`Permission denied when accessing microphone: {{error}}`,
{
error: err
}
)
);
return null;
});
{#if $_user?.role === 'admin' || ($_user?.permissions?.chat?.stt ?? true)}
<!-- {$i18n.t('Record voice')} -->
<Tooltip content={$i18n.t('Dictate')}>
<button
id="voice-input-button"
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-1.5 self-center mr-0.5"
type="button"
on:click={async () => {
try {
let stream = await navigator.mediaDevices
.getUserMedia({ audio: true })
.catch(function (err) {
toast.error(
$i18n.t(
`Permission denied when accessing microphone: {{error}}`,
{
error: err
}
)
);
return null;
});
if (stream) {
recording = true;
const tracks = stream.getTracks();
tracks.forEach((track) => track.stop());
if (stream) {
recording = true;
const tracks = stream.getTracks();
tracks.forEach((track) => track.stop());
}
stream = null;
} catch {
toast.error($i18n.t('Permission denied when accessing microphone'));
}
stream = null;
} catch {
toast.error($i18n.t('Permission denied when accessing microphone'));
}
}}
aria-label="Voice Input"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-5 translate-y-[0.5px]"
}}
aria-label="Voice Input"
>
<path d="M7 4a3 3 0 016 0v6a3 3 0 11-6 0V4z" />
<path
d="M5.5 9.643a.75.75 0 00-1.5 0V10c0 3.06 2.29 5.585 5.25 5.954V17.5h-1.5a.75.75 0 000 1.5h4.5a.75.75 0 000-1.5h-1.5v-1.546A6.001 6.001 0 0016 10v-.357a.75.75 0 00-1.5 0V10a4.5 4.5 0 01-9 0v-.357z"
/>
</svg>
</button>
</Tooltip>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-5 translate-y-[0.5px]"
>
<path d="M7 4a3 3 0 016 0v6a3 3 0 11-6 0V4z" />
<path
d="M5.5 9.643a.75.75 0 00-1.5 0V10c0 3.06 2.29 5.585 5.25 5.954V17.5h-1.5a.75.75 0 000 1.5h4.5a.75.75 0 000-1.5h-1.5v-1.546A6.001 6.001 0 0016 10v-.357a.75.75 0 00-1.5 0V10a4.5 4.5 0 01-9 0v-.357z"
/>
</svg>
</button>
</Tooltip>
{/if}
{/if}
{#if prompt === '' && files.length === 0 && ($_user?.role === 'admin' || ($_user?.permissions?.chat?.call ?? true))}
@@ -21,6 +21,12 @@
let variableValues = {};
const submitHandler = async () => {
// Normalize Windows CRLF (\r\n) to LF (\n) for all string values
for (const key of Object.keys(variableValues)) {
if (typeof variableValues[key] === 'string') {
variableValues[key] = variableValues[key].replace(/\r\n/g, '\n');
}
}
onSave(variableValues);
show = false;
};
+2 -2
View File
@@ -90,11 +90,11 @@
}
visitedMessageIds.add(message.id);
_messages.unshift(message);
_messages.push(message);
message = message.parentId !== null ? history.messages[message.parentId] : null;
}
messages = _messages;
messages = _messages.reverse();
};
// Throttle message list rebuilds to once per animation frame during streaming.
@@ -42,6 +42,31 @@
let contentContainerElement;
let floatingButtonsElement;
let sourceIds = [];
$: getSourceIds(sources);
const getSourceIds = (sources) => {
const result = [];
for (const source of sources ?? []) {
for (let index = 0; index < (source.document ?? []).length; index++) {
if (model?.info?.meta?.capabilities?.citations == false) {
result.push('N/A');
continue;
}
const metadata = source.metadata?.[index];
const id = metadata?.source ?? 'N/A';
if (metadata?.name) {
result.push(metadata.name);
} else if (id.startsWith('http://') || id.startsWith('https://')) {
result.push(id);
} else {
result.push(source?.source?.name ?? id);
}
}
}
sourceIds = [...new Set(result)];
};
const updateButtonPosition = (event) => {
const buttonsContainerElement = document.getElementById(`floating-buttons-${id}`);
if (
@@ -142,36 +167,7 @@
{done}
{editCodeBlock}
{topPadding}
sourceIds={(sources ?? []).reduce((acc, source) => {
let ids = [];
source.document.forEach((document, index) => {
if (model?.info?.meta?.capabilities?.citations == false) {
ids.push('N/A');
return ids;
}
const metadata = source.metadata?.[index];
const id = metadata?.source ?? 'N/A';
if (metadata?.name) {
ids.push(metadata.name);
return ids;
}
if (id.startsWith('http://') || id.startsWith('https://')) {
ids.push(id);
} else {
ids.push(source?.source?.name ?? id);
}
return ids;
});
acc = [...acc, ...ids];
// remove duplicates
return acc.filter((item, index) => acc.indexOf(item) === index);
}, [])}
{sourceIds}
{onSourceClick}
{onTaskClick}
{onSave}
@@ -199,7 +195,7 @@
/>
</div>
{#if floatingButtons && model}
{#if floatingButtons}
<FloatingButtons
bind:this={floatingButtonsElement}
{id}
@@ -209,7 +205,7 @@
? model?.id
: (selectedModels ?? []).length > 0
? selectedModels.at(0)
: model?.id}
: (model?.id ?? null)}
messages={createMessagesList(history, messageId)}
onAdd={({ modelId, parentId, messages }) => {
console.log(modelId, parentId, messages);
@@ -36,6 +36,8 @@
let tokens = [];
let pendingUpdate = null;
let lastContent = '';
let lastParsedContent = '';
const options = {
throwOnError: false,
@@ -56,24 +58,35 @@
});
const parseTokens = () => {
tokens = marked.lexer(replaceTokens(processResponseContent(content), model?.name, $user?.name));
if (content === lastContent) return;
lastContent = content;
const processed = replaceTokens(processResponseContent(content), model?.name, $user?.name);
if (processed === lastParsedContent) return;
lastParsedContent = processed;
tokens = marked.lexer(processed);
};
// Throttle parsing to once per animation frame while streaming
$: if (content) {
if (done) {
cancelAnimationFrame(pendingUpdate);
pendingUpdate = null;
parseTokens();
} else if (!pendingUpdate) {
pendingUpdate = requestAnimationFrame(() => {
const updateHandler = (content) => {
if (content) {
if (done) {
cancelAnimationFrame(pendingUpdate);
pendingUpdate = null;
parseTokens();
});
} else if (!pendingUpdate) {
pendingUpdate = requestAnimationFrame(() => {
pendingUpdate = null;
parseTokens();
});
}
}
}
};
onDestroy(() => {
$: updateHandler(content);
// Throttle parsing to once per animation frame while streaming
$: onDestroy(() => {
cancelAnimationFrame(pendingUpdate);
});
</script>
+2 -2
View File
@@ -25,7 +25,7 @@
<div class="flex w-full">
<ProfileImage
src={`${WEBUI_API_BASE_URL}/users/${data.user.id}/profile/image`}
className={'size-5 -translate-y-[1px]'}
className={'size-5 -translate-y-[1px] flex-shrink-0'}
/>
<div class="ml-2">
<div class=" flex justify-between items-center">
@@ -45,7 +45,7 @@
<div class="flex w-full">
<ProfileImage
src={`${WEBUI_API_BASE_URL}/models/model/profile/image?id=${data.model?.id ?? data.message.model}&lang=${$i18n.language}`}
className={'size-5 -translate-y-[1px]'}
className={'size-5 -translate-y-[1px] flex-shrink-0'}
/>
<div class="ml-2">
@@ -0,0 +1,471 @@
<script context="module">
let savedPyodidePath = '/mnt/uploads';
</script>
<script lang="ts">
import { getContext, onMount, tick } from 'svelte';
import { pyodideWorker } from '$lib/stores';
import PyodideWorkerConstructor from '$lib/workers/pyodide.worker?worker';
import type { FileEntry } from '$lib/apis/terminal';
import FileNavToolbar from './FileNav/FileNavToolbar.svelte';
import FileEntryRow from './FileNav/FileEntryRow.svelte';
import FilePreview from './FileNav/FilePreview.svelte';
import ConfirmDialog from '../common/ConfirmDialog.svelte';
import Spinner from '../common/Spinner.svelte';
import Folder from '../icons/Folder.svelte';
import Document from '../icons/Document.svelte';
const i18n = getContext('i18n');
export let overlay = false;
// ── State ─────────────────────────────────────────────────────────────
let currentPath = savedPyodidePath;
let entries: FileEntry[] = [];
let loading = false;
let error: string | null = null;
let selectedFile: string | null = null;
let fileLoading = false;
let fileContent: string | null = null;
let fileImageUrl: string | null = null;
let isDragOver = false;
let showDeleteConfirm = false;
let deletePath = '';
let deleteName = '';
let creatingFolder = false;
let newFolderName = '';
let newFolderInput: HTMLInputElement;
let creatingFile = false;
let newFileName = '';
let newFileInput: HTMLInputElement;
let _reqId = 0;
const IMAGE_EXTS = new Set(['jpg', 'jpeg', 'png', 'gif', 'webp', 'bmp', 'ico', 'avif']);
const isImage = (path: string) => IMAGE_EXTS.has(path.split('.').pop()?.toLowerCase() ?? '');
// ── Worker management ─────────────────────────────────────────────────
function ensureWorker(): Worker {
let worker = $pyodideWorker;
if (!worker) {
worker = new PyodideWorkerConstructor();
pyodideWorker.set(worker);
}
return worker;
}
function sendWorkerMessage(msg: any): Promise<any> {
const worker = ensureWorker();
const id = `fs-${++_reqId}`;
return new Promise((resolve, reject) => {
const timeout = setTimeout(() => {
worker.removeEventListener('message', handler);
reject('Timeout');
}, 30000);
function handler(event: MessageEvent) {
if (event.data?.id !== id) return;
clearTimeout(timeout);
worker.removeEventListener('message', handler);
resolve(event.data);
}
worker.addEventListener('message', handler);
worker.postMessage({ ...msg, id });
});
}
// ── Breadcrumbs ───────────────────────────────────────────────────────
const buildBreadcrumbs = (path: string) => {
const parts = path.split('/').filter(Boolean);
return parts.reduce(
(acc, part) => {
const prev = acc[acc.length - 1];
acc.push({ label: part, path: `${prev.path}${part}/` });
return acc;
},
[{ label: '/', path: '/' }]
);
};
$: breadcrumbs = buildBreadcrumbs(currentPath);
// ── Operations ────────────────────────────────────────────────────────
const loadDir = async (path: string) => {
loading = true;
error = null;
selectedFile = null;
clearPreview();
currentPath = path.endsWith('/') ? path : path + '/';
savedPyodidePath = currentPath;
try {
const res = await sendWorkerMessage({
type: 'fs:list',
path: currentPath.replace(/\/$/, '') || '/'
});
entries = (res.entries || []).sort((a: FileEntry, b: FileEntry) => {
if (a.type !== b.type) return a.type === 'directory' ? -1 : 1;
return a.name.localeCompare(b.name);
});
} catch {
error = 'Failed to list directory';
entries = [];
}
loading = false;
};
const openEntry = async (entry: FileEntry) => {
if (entry.type === 'directory') {
await loadDir(`${currentPath}${entry.name}/`);
return;
}
const filePath = `${currentPath}${entry.name}`;
selectedFile = filePath;
fileLoading = true;
clearPreview();
try {
const res = await sendWorkerMessage({ type: 'fs:read', path: filePath });
if (res.error) {
fileContent = `Error: ${res.error}`;
} else if (isImage(filePath)) {
const blob = new Blob([res.data]);
fileImageUrl = URL.createObjectURL(blob);
} else {
const decoder = new TextDecoder('utf-8', { fatal: true });
try {
fileContent = decoder.decode(res.data);
} catch {
fileContent = `[Binary file: ${entry.size ?? 0} bytes]`;
}
}
} catch {
fileContent = 'Failed to read file';
}
fileLoading = false;
};
const clearPreview = () => {
fileContent = null;
if (fileImageUrl) {
URL.revokeObjectURL(fileImageUrl);
fileImageUrl = null;
}
};
const downloadFile = async (path: string) => {
try {
const res = await sendWorkerMessage({ type: 'fs:read', path });
if (res.data) {
const blob = new Blob([res.data]);
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = path.split('/').pop() ?? 'file';
a.click();
URL.revokeObjectURL(url);
}
} catch (e) {
console.error('Download failed:', e);
}
};
const confirmDelete = (path: string, name: string) => {
deletePath = path;
deleteName = name;
showDeleteConfirm = true;
};
const doDelete = async () => {
try {
await sendWorkerMessage({ type: 'fs:delete', path: deletePath });
if (selectedFile === deletePath) {
selectedFile = null;
clearPreview();
}
await loadDir(currentPath);
} catch (e) {
console.error('Delete failed:', e);
}
};
const startNewFolder = async () => {
creatingFolder = true;
newFolderName = '';
await tick();
newFolderInput?.focus();
};
const submitNewFolder = async () => {
const name = newFolderName.trim();
creatingFolder = false;
newFolderName = '';
if (!name) return;
const folderPath = `${currentPath}${name}`.replace(/\/$/, '');
try {
await sendWorkerMessage({ type: 'fs:mkdir', path: folderPath });
await loadDir(currentPath);
} catch (e) {
console.error('Failed to create folder:', e);
}
};
const startNewFile = async () => {
creatingFile = true;
newFileName = '';
await tick();
newFileInput?.focus();
};
const submitNewFile = async () => {
const name = newFileName.trim();
creatingFile = false;
newFileName = '';
if (!name) return;
try {
await sendWorkerMessage({
type: 'fs:upload',
files: [{ name, data: new ArrayBuffer(0) }],
dir: currentPath.replace(/\/$/, '') || '/'
});
await loadDir(currentPath);
} catch (e) {
console.error('Failed to create file:', e);
}
};
const uploadFiles = async (fileList: File[]) => {
const payloads: { name: string; data: ArrayBuffer }[] = [];
for (const file of fileList) {
payloads.push({ name: file.name, data: await file.arrayBuffer() });
}
try {
await sendWorkerMessage({
type: 'fs:upload',
files: payloads,
dir: currentPath.replace(/\/$/, '') || '/'
});
} catch (e) {
console.error('Upload failed:', e);
}
await loadDir(currentPath);
};
// ── Drag and drop ─────────────────────────────────────────────────────
const handleDragOver = (e: DragEvent) => {
if (selectedFile) return;
if (!e.dataTransfer?.types.includes('Files')) return;
e.preventDefault();
e.stopPropagation();
isDragOver = true;
};
const handleDrop = async (e: DragEvent) => {
e.preventDefault();
e.stopPropagation();
isDragOver = false;
if (selectedFile) return;
const droppedFiles = Array.from(e.dataTransfer?.files ?? []);
if (droppedFiles.length) await uploadFiles(droppedFiles);
};
// ── Lifecycle ─────────────────────────────────────────────────────────
onMount(() => {
ensureWorker();
loadDir(currentPath);
});
</script>
<ConfirmDialog
bind:show={showDeleteConfirm}
title={$i18n.t('Delete {{name}}', { name: deleteName })}
message={$i18n.t('Are you sure you want to delete this?')}
on:confirm={doDelete}
/>
<div
class="flex flex-col h-full min-h-0 min-w-0 relative"
on:dragover={handleDragOver}
on:dragleave={() => (isDragOver = false)}
on:drop={handleDrop}
role="region"
aria-label={$i18n.t('Pyodide file browser')}
>
{#if isDragOver}
<div
class="absolute inset-0 z-10 flex flex-col items-center justify-center bg-white/80 dark:bg-gray-850/80 backdrop-blur-sm pointer-events-none gap-1.5"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
class="size-5 text-gray-400 dark:text-gray-500"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"
/>
</svg>
<span class="text-xs text-gray-400 dark:text-gray-500">{$i18n.t('Drop files here')}</span>
</div>
{/if}
{#if overlay}
<div class="absolute inset-0 z-10 pointer-events-none" />
{/if}
<!-- Toolbar (shared with FileNav) -->
<FileNavToolbar
{breadcrumbs}
{selectedFile}
{loading}
onNavigate={(path) => loadDir(path)}
onRefresh={() => {
if (selectedFile) {
const name = selectedFile.split('/').pop() ?? '';
openEntry({ name, type: 'file', size: 0 });
} else {
loadDir(currentPath);
}
}}
onNewFolder={startNewFolder}
onNewFile={startNewFile}
onUploadFiles={uploadFiles}
onMove={() => {}}
>
<!-- File action buttons when a file is selected (slot content) -->
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-400"
on:click={() => selectedFile && downloadFile(selectedFile)}
aria-label={$i18n.t('Download')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5"
>
<path
d="M10.75 2.75a.75.75 0 0 0-1.5 0v8.614L6.295 8.235a.75.75 0 1 0-1.09 1.03l4.25 4.5a.75.75 0 0 0 1.09 0l4.25-4.5a.75.75 0 0 0-1.09-1.03l-2.955 3.129V2.75Z"
/>
<path
d="M3.5 12.75a.75.75 0 0 0-1.5 0v2.5A2.75 2.75 0 0 0 4.75 18h10.5A2.75 2.75 0 0 0 18 15.25v-2.5a.75.75 0 0 0-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5Z"
/>
</svg>
</button>
<button
class="shrink-0 p-1 rounded hover:bg-gray-100 dark:hover:bg-gray-800 transition text-gray-400 dark:text-gray-500 hover:text-red-600 dark:hover:text-red-400"
on:click={() => {
if (selectedFile) {
confirmDelete(selectedFile, selectedFile.split('/').pop() ?? '');
}
}}
aria-label={$i18n.t('Delete')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-3.5"
>
<path
fill-rule="evenodd"
d="M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022 1.005 11.36A2.75 2.75 0 0 0 7.764 20h4.472a2.75 2.75 0 0 0 2.745-2.689l1.005-11.36.149.022a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 1 .7.8l-.3 6a.75.75 0 0 1-1.5-.075l.3-6a.75.75 0 0 1 .8-.725ZM12.2 8.52a.75.75 0 0 0-1.5.075l-.3 6a.75.75 0 0 0 1.5-.075l.3-6Z"
clip-rule="evenodd"
/>
</svg>
</button>
</FileNavToolbar>
<!-- Content area -->
<div class="flex-1 min-h-0 flex flex-col">
{#if selectedFile}
<FilePreview {selectedFile} {fileLoading} {fileImageUrl} {fileContent} {overlay} />
{:else if loading}
<div class="flex items-center justify-center flex-1 p-6">
<Spinner className="size-4" />
</div>
{:else if error}
<div class="flex items-center justify-center flex-1 p-6">
<div class="text-xs text-red-500">{error}</div>
</div>
{:else if entries.length === 0 && !creatingFolder && !creatingFile}
<div class="flex flex-col items-center justify-center flex-1 p-6 text-center gap-2">
<Folder className="size-5 text-gray-300 dark:text-gray-600" />
<div class="text-xs text-gray-400 dark:text-gray-500">
{$i18n.t('No files yet. Upload files or run Python code to create them.')}
</div>
</div>
{/if}
{#if !loading && !error && !selectedFile}
{#if creatingFolder}
<div class="flex items-center gap-2 px-3 py-1.5">
<Folder className="size-4 shrink-0 text-blue-400 dark:text-blue-300" />
<input
bind:this={newFolderInput}
bind:value={newFolderName}
class="flex-1 text-xs bg-transparent border border-gray-200 dark:border-gray-700 rounded px-1.5 py-0.5 outline-none focus:border-blue-400 dark:focus:border-blue-500"
placeholder={$i18n.t('Folder name')}
on:keydown={(e) => {
if (e.key === 'Enter') submitNewFolder();
if (e.key === 'Escape') {
creatingFolder = false;
newFolderName = '';
}
}}
on:blur={submitNewFolder}
/>
</div>
{/if}
{#if creatingFile}
<div class="flex items-center gap-2 px-3 py-1.5">
<Document className="size-4 shrink-0 text-gray-400 dark:text-gray-500" />
<input
bind:this={newFileInput}
bind:value={newFileName}
class="flex-1 text-xs bg-transparent border border-gray-200 dark:border-gray-700 rounded px-1.5 py-0.5 outline-none focus:border-blue-400 dark:focus:border-blue-500"
placeholder={$i18n.t('File name')}
on:keydown={(e) => {
if (e.key === 'Enter') submitNewFile();
if (e.key === 'Escape') {
creatingFile = false;
newFileName = '';
}
}}
on:blur={submitNewFile}
/>
</div>
{/if}
{#if entries.length > 0 || creatingFolder || creatingFile}
<ul class="overflow-y-auto flex-1 min-h-0">
{#each entries as entry (entry.name)}
<FileEntryRow
{entry}
{currentPath}
onOpen={openEntry}
onDownload={downloadFile}
onDelete={confirmDelete}
/>
{/each}
</ul>
{/if}
{/if}
</div>
</div>
@@ -76,7 +76,7 @@
<div class="flex justify-end pt-1 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -85,9 +85,9 @@
{$i18n.t('Add')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -86,7 +86,7 @@
<div class="flex justify-end pt-1 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full {loading
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {loading
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -95,9 +95,9 @@
{$i18n.t('Update')}
{#if loading}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
+16 -2
View File
@@ -20,6 +20,7 @@
export let connected = false;
export let connecting = false;
let resizeObserver: ResizeObserver | null = null;
let pingInterval: ReturnType<typeof setInterval> | null = null;
// Resolve the active terminal server's info for the WebSocket URL
const getTerminalInfo = (): { serverId: string; baseUrl: string } | null => {
@@ -108,6 +109,13 @@
if (term && ws) {
ws.send(JSON.stringify({ type: 'resize', cols: term.cols, rows: term.rows }));
}
// Keepalive ping to prevent idle timeout from proxies/LBs
if (pingInterval) clearInterval(pingInterval);
pingInterval = setInterval(() => {
if (ws && ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({ type: 'ping' }));
}
}, 25000);
};
ws.onmessage = (event) => {
@@ -141,6 +149,10 @@
};
const disconnect = () => {
if (pingInterval) {
clearInterval(pingInterval);
pingInterval = null;
}
if (ws) {
ws.close();
ws = null;
@@ -229,8 +241,10 @@
});
resizeObserver.observe(terminalEl);
// Auto-connect
connect();
// Connection is handled by the reactive block below (which fires
// when `term` is set here), so we intentionally do NOT call
// connect() to avoid creating a duplicate WebSocket whose onclose
// handler would write a spurious "[Connection closed]" message.
};
// Reconnect when the selected terminal changes
+135 -15
View File
@@ -40,6 +40,8 @@
let isAudio = false;
let isImage = false;
let isExcel = false;
let isDocx = false;
let isPptx = false;
let selectedTab = '';
let excelWorkbook: WorkBook | null = null;
@@ -49,6 +51,15 @@
let excelError = '';
let rowCount = 0;
// DOCX state
let docxHtml = '';
let docxError = '';
// PPTX state
let pptxSlides: string[] = [];
let pptxCurrentSlide = 0;
let pptxError = '';
let pzInstance: PanZoom | null = null;
const initImagePanzoom = (node: HTMLElement) => {
@@ -128,6 +139,16 @@
item.name.toLowerCase().endsWith('.xlsx') ||
item.name.toLowerCase().endsWith('.csv')));
$: isDocx =
item?.meta?.content_type ===
'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ||
(item?.name && item.name.toLowerCase().endsWith('.docx'));
$: isPptx =
item?.meta?.content_type ===
'application/vnd.openxmlformats-officedocument.presentationml.presentation' ||
(item?.name && item.name.toLowerCase().endsWith('.pptx'));
const loadExcelContent = async () => {
try {
excelError = '';
@@ -150,26 +171,48 @@
const renderExcelSheet = async () => {
if (!excelWorkbook || !selectedSheet) return;
const { excelToTable } = await import('$lib/utils/excelToTable');
const worksheet = excelWorkbook.Sheets[selectedSheet];
// Calculate row count
const XLSX = await import('xlsx');
const range = XLSX.utils.decode_range(worksheet['!ref'] || 'A1:A1');
rowCount = range.e.r - range.s.r + 1;
excelHtml = DOMPurify.sanitize(
XLSX.utils.sheet_to_html(worksheet, {
id: 'excel-table',
editable: false,
header: ''
})
);
const result = await excelToTable(worksheet);
excelHtml = result.html;
rowCount = result.rowCount;
};
$: if (selectedSheet && excelWorkbook) {
renderExcelSheet();
}
const loadDocxContent = async () => {
try {
docxError = '';
const [arrayBuffer, mammoth] = await Promise.all([
getFileContentById(item.id),
import('mammoth')
]);
const result = await mammoth.convertToHtml({ arrayBuffer });
docxHtml = DOMPurify.sanitize(result.value);
} catch (error) {
console.error('Error loading DOCX file:', error);
docxError = $i18n.t('Failed to load DOCX file. Please try downloading it instead.');
}
};
const loadPptxContent = async () => {
try {
pptxError = '';
const [arrayBuffer, { pptxToImages }] = await Promise.all([
getFileContentById(item.id),
import('$lib/utils/pptxToHtml')
]);
const result = await pptxToImages(arrayBuffer);
pptxSlides = result.images;
pptxCurrentSlide = 0;
} catch (error) {
console.error('Error loading PPTX file:', error);
pptxError = $i18n.t('Failed to load PPTX file. Please try downloading it instead.');
}
};
const loadContent = async () => {
selectedTab = '';
expandedContent = false;
@@ -201,6 +244,12 @@
if (isExcel) {
await loadExcelContent();
}
if (isDocx) {
await loadDocxContent();
}
if (isPptx) {
await loadPptxContent();
}
loading = false;
}
@@ -358,7 +407,7 @@
</div>
{/if}
{#if isAudio || isPDF || isExcel || isCode || isMarkdown}
{#if isAudio || isPDF || isExcel || isCode || isMarkdown || isDocx || isPptx}
<div
class="flex mb-2.5 scrollbar-none overflow-x-auto w-full border-b border-gray-50 dark:border-gray-850/30 text-center text-sm font-medium bg-transparent dark:text-gray-200"
>
@@ -510,7 +559,7 @@
{/if}
{#if excelHtml}
<div class="excel-table-container overflow-auto max-h-[60vh]">
<div class="office-preview overflow-auto max-h-[60vh]">
{@html excelHtml}
</div>
{:else}
@@ -534,6 +583,77 @@
>
<Markdown content={item.file.data.content} id="markdown-viewer" />
</div>
{:else if isDocx}
{#if docxError}
<div class="text-red-500 text-sm p-4">{docxError}</div>
{:else if docxHtml}
<div
class="office-preview max-h-[60vh] overflow-auto p-4 prose dark:prose-invert max-w-full text-sm"
>
{@html docxHtml}
</div>
{:else}
<div class="text-gray-500 text-sm p-4">No content available</div>
{/if}
{:else if isPptx}
{#if pptxError}
<div class="text-red-500 text-sm p-4">{pptxError}</div>
{:else if pptxSlides.length > 0}
<div class="max-h-[60vh] overflow-auto">
<div class="flex justify-center p-4">
<img
src={pptxSlides[pptxCurrentSlide]}
alt="Slide {pptxCurrentSlide + 1}"
class="max-w-full max-h-[50vh] object-contain rounded-md shadow-lg"
draggable="false"
/>
</div>
{#if pptxSlides.length > 1}
<div class="flex items-center justify-center gap-3 pb-3 text-sm text-gray-500">
<button
class="p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={pptxCurrentSlide === 0}
on:click={() => (pptxCurrentSlide = Math.max(0, pptxCurrentSlide - 1))}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-5"
>
<path
fill-rule="evenodd"
d="M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z"
clip-rule="evenodd"
/>
</svg>
</button>
<span>{pptxCurrentSlide + 1} / {pptxSlides.length}</span>
<button
class="p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 disabled:opacity-30"
disabled={pptxCurrentSlide === pptxSlides.length - 1}
on:click={() =>
(pptxCurrentSlide = Math.min(pptxSlides.length - 1, pptxCurrentSlide + 1))}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="size-5"
>
<path
fill-rule="evenodd"
d="M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z"
clip-rule="evenodd"
/>
</svg>
</button>
</div>
{/if}
</div>
{:else}
<div class="text-gray-500 text-sm p-4">No content available</div>
{/if}
{:else}
<div class="max-h-96 overflow-scroll scrollbar-hidden text-xs whitespace-pre-wrap">
{(item?.file?.data?.content ?? '').trim() || 'No content'}
+33 -2
View File
@@ -114,7 +114,7 @@
import { Fragment, DOMParser } from 'prosemirror-model';
import { EditorState, Plugin, PluginKey, TextSelection, Selection } from 'prosemirror-state';
import { Decoration, DecorationSet } from 'prosemirror-view';
import { Editor, Extension, mergeAttributes } from '@tiptap/core';
import { Editor, Extension, markInputRule, mergeAttributes } from '@tiptap/core';
import { AIAutocompletion } from './RichTextInput/AutoCompletion.js';
@@ -135,8 +135,26 @@
import FileHandler from '@tiptap/extension-file-handler';
import Typography from '@tiptap/extension-typography';
import Highlight from '@tiptap/extension-highlight';
import Code from '@tiptap/extension-code';
import CodeBlockLowlight from '@tiptap/extension-code-block-lowlight';
// WORKAROUND: TipTap's default Code mark input rule regex captures the
// character before the opening backtick, causing it to be deleted.
// This uses a lookbehind assertion instead so the preceding character is
// matched for position but not captured/deleted.
// Upstream fix: https://github.com/ueberdosis/tiptap/pull/7124
const backtickInputRegex = /(?<=\s|^)`([^`]+)`(?!`)$/;
const FixedCode = Code.extend({
addInputRules() {
return [
markInputRule({
find: backtickInputRegex,
type: this.type
})
];
}
});
import Mention from '@tiptap/extension-mention';
import FormattingButtons from './RichTextInput/FormattingButtons.svelte';
@@ -467,6 +485,17 @@
focus();
};
// Convert text to ProseMirror nodes, using hardBreak for newlines
const textToNodes = (state, text) => {
if (!text.includes('\n')) return state.schema.text(text);
const nodes = [];
text.split('\n').forEach((line, i) => {
if (i > 0) nodes.push(state.schema.nodes.hardBreak.create());
if (line) nodes.push(state.schema.text(line));
});
return nodes;
};
export const replaceVariables = (variables) => {
if (!editor || !editor.view) return;
const { state, view } = editor;
@@ -501,7 +530,7 @@
// Apply replacements in reverse order to maintain correct positions
replacements.reverse().forEach(({ from, to, text }) => {
tr = tr.replaceWith(from, to, text !== '' ? state.schema.text(text) : []);
tr = tr.replaceWith(from, to, text !== '' ? textToNodes(state, text) : []);
});
// Only dispatch if there are changes
@@ -692,12 +721,14 @@
extensions: [
StarterKit.configure({
link: link,
code: false, // Disabled in favor of FixedCode (see workaround above)
// When rich text is off, disable Strike from StarterKit so we can
// re-add it below without its Mod-Shift-s shortcut (which conflicts
// with the Toggle Sidebar shortcut). When rich text is on, the user
// can undo strikethrough via the toolbar, so the shortcut is fine.
...(richText ? {} : { strike: false })
}),
FixedCode,
...(dragHandle ? [ListItemDragHandle] : []),
Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }),
SelectionDecoration,
+9 -6
View File
@@ -142,19 +142,20 @@
}
};
const createFolder = async ({ name, data }) => {
const createFolder = async ({ name, data, parent_id }) => {
name = name?.trim();
if (!name) {
toast.error($i18n.t('Folder name cannot be empty.'));
return;
}
const rootFolders = Object.values(folders).filter((folder) => folder.parent_id === null);
if (rootFolders.find((folder) => folder.name.toLowerCase() === name.toLowerCase())) {
// Check for duplicate names in the same parent
const siblings = Object.values(folders).filter((folder) => folder.parent_id === parent_id);
if (siblings.find((folder) => folder.name.toLowerCase() === name.toLowerCase())) {
// If a folder with the same name already exists, append a number to the name
let i = 1;
while (
rootFolders.find((folder) => folder.name.toLowerCase() === `${name} ${i}`.toLowerCase())
siblings.find((folder) => folder.name.toLowerCase() === `${name} ${i}`.toLowerCase())
) {
i++;
}
@@ -166,9 +167,10 @@
const tempId = uuidv4();
folders = {
...folders,
tempId: {
[tempId]: {
id: tempId,
name: name,
parent_id: parent_id,
created_at: Date.now(),
updated_at: Date.now()
}
@@ -176,7 +178,8 @@
const res = await createNewFolder(localStorage.token, {
name,
data
data,
parent_id
}).catch((error) => {
toast.error(`${error}`);
return null;
@@ -79,6 +79,9 @@
let mouseOver = false;
let draggable = false;
$: if (mouseOver) {
loadChat();
}
const loadChat = async () => {
if (!chat) {
@@ -154,8 +157,14 @@
};
const archiveChatHandler = async (id) => {
await archiveChatById(localStorage.token, id);
dispatch('change');
try {
await archiveChatById(localStorage.token, id);
dispatch('change');
toast.success($i18n.t('Chat archived.'));
} catch (error) {
console.error('Error archiving chat:', error);
toast.error($i18n.t('Failed to archive chat.'));
}
};
const moveChatHandler = async (chatId, folderId) => {
@@ -11,11 +11,13 @@
import Pencil from '$lib/components/icons/Pencil.svelte';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import Download from '$lib/components/icons/Download.svelte';
import Folder from '$lib/components/icons/Folder.svelte';
export let align: 'start' | 'end' = 'start';
export let onEdit = () => {};
export let onExport = () => {};
export let onDelete = () => {};
export let onCreateSub = () => {};
let show = false;
</script>
@@ -47,6 +49,18 @@
{align}
transition={flyAndScale}
>
<DropdownMenu.Item
class="flex gap-2 items-center px-3 py-1.5 text-sm select-none cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
on:click={() => {
onCreateSub();
}}
>
<Folder />
<div class="flex items-center">{$i18n.t('Create Folder')}</div>
</DropdownMenu.Item>
<hr class="border-gray-50/30 dark:border-gray-800/30 my-1" />
<DropdownMenu.Item
class="flex gap-2 items-center px-3 py-1.5 text-sm select-none cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
on:click={() => {
@@ -19,6 +19,7 @@
export let onSubmit: Function = (e) => {};
export let folderId = null;
export let parentId = null;
export let edit = false;
let folder = null;
@@ -55,7 +56,8 @@
await onSubmit({
name,
meta,
data
data,
parent_id: edit ? undefined : parentId
});
show = false;
loading = false;
@@ -37,6 +37,20 @@
let unsubscribeSettings;
const cleanupStalePinnedModels = async (modelIds) => {
const validModels = modelIds.filter((id) => {
const model = $models.find((m) => m.id === id);
// Remove if model not found (deleted) or if hidden
return model && !(model?.info?.meta?.hidden ?? false);
});
if (validModels.length !== modelIds.length) {
pinnedModels = validModels;
settings.set({ ...$settings, pinnedModels: validModels });
await updateUserSettings(localStorage.token, { ui: $settings });
}
};
onMount(async () => {
pinnedModels = $settings?.pinnedModels ?? [];
@@ -48,6 +62,11 @@
await updateUserSettings(localStorage.token, { ui: $settings });
}
// Auto-unpin hidden or deleted models
if (pinnedModels.length > 0) {
await cleanupStalePinnedModels(pinnedModels);
}
unsubscribeSettings = settings.subscribe((value) => {
pinnedModels = value?.pinnedModels ?? [];
});
@@ -18,7 +18,8 @@
updateFolderIsExpandedById,
updateFolderById,
updateFolderParentIdById,
getFolderById
getFolderById,
createNewFolder
} from '$lib/apis/folders';
import {
getChatById,
@@ -64,6 +65,9 @@
let showFolderModal = false;
let edit = false;
let showCreateSubFolderModal = false;
let createSubFolderParentId = null;
let draggedOver = false;
let dragged = false;
@@ -414,6 +418,30 @@
saveAs(blob, `folder-${folders[folderId].name}-export-${Date.now()}.json`);
};
const createSubFolderHandler = async ({ name, meta, data, parent_id }) => {
if (name === '') {
toast.error($i18n.t('Folder name cannot be empty.'));
return;
}
name = name.trim();
const res = await createNewFolder(localStorage.token, {
name,
data,
meta,
parent_id
}).catch((error) => {
toast.error(`${error}`);
return null;
});
if (res) {
toast.success($i18n.t('Folder created successfully'));
dispatch('update');
}
};
</script>
<DeleteConfirmDialog
@@ -444,6 +472,12 @@
<FolderModal bind:show={showFolderModal} edit={true} {folderId} onSubmit={updateHandler} />
<FolderModal
bind:show={showCreateSubFolderModal}
parentId={createSubFolderParentId}
onSubmit={createSubFolderHandler}
/>
{#if dragged && x && y}
<DragGhost {x} {y}>
<div class=" bg-black/80 backdrop-blur-2xl px-2 py-1 rounded-lg w-fit max-w-40">
@@ -593,6 +627,10 @@
onExport={() => {
exportHandler();
}}
onCreateSub={() => {
createSubFolderParentId = folderId;
showCreateSubFolderModal = true;
}}
>
<div class="p-1 dark:hover:bg-gray-850 rounded-lg touch-auto">
<EllipsisHorizontal className="size-4" strokeWidth="2.5" />
@@ -218,7 +218,11 @@
}
info.params.system = system.trim() === '' ? null : system;
info.params.stop = params.stop ? params.stop.split(',').filter((s) => s.trim()) : null;
info.params.stop = params.stop
? (typeof params.stop === 'string' ? params.stop.split(',') : params.stop).filter((s) =>
s.trim()
)
: null;
Object.keys(info.params).forEach((key) => {
if (info.params[key] === '' || info.params[key] === null) {
delete info.params[key];
@@ -252,15 +252,15 @@
<div class="pb-3 flex justify-end">
{#if !disabled}
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center"
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap"
type="submit"
disabled={loading}
>
{$i18n.t(edit ? 'Save' : 'Save & Create')}
{#if loading}
<div class="ml-1.5">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
{/if}
@@ -184,7 +184,7 @@
<div class="flex justify-end pt-3 text-sm font-medium">
<button
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full {saving
class="px-3.5 py-1.5 text-sm font-medium bg-black hover:bg-gray-900 text-white dark:bg-white dark:text-black dark:hover:bg-gray-100 transition rounded-full flex items-center gap-2 whitespace-nowrap {saving
? ' cursor-not-allowed'
: ''}"
type="submit"
@@ -193,9 +193,9 @@
{$i18n.t('Save')}
{#if saving}
<div class="ml-2 self-center">
<span class="shrink-0">
<Spinner />
</div>
</span>
{/if}
</button>
</div>
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "المحادثة",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "UI الدردشة",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "الإفتراضي صلاحيات المستخدم",
"Defaults": "",
"Delete": "حذف",
"Delete {{name}}": "",
"Delete a model": "حذف الموديل",
"Delete All": "",
"Delete All Chats": "حذف جميع الدردشات",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "e.g. '30s','10m'. الوحدات الزمنية الصالحة هي 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "فشل في قراءة محتويات الحافظة",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "لا توجد نتائج",
"No results found": "لا توجد نتايج",
"No search query generated": "لم يتم إنشاء استعلام بحث",
"No servers detected": "",
"No skills found": "",
"No source available": "لا يوجد مصدر متاح",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "موقف ايجابي",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Ollama.com \"{{searchValue}}\" أسحب من ",
"Pull a model from Ollama.com": "Ollama.com سحب الموديل من ",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "النتيجة",
"Retrieval": "",
@@ -1587,6 +1601,7 @@
"Role": "منصب",
"RTL": "من اليمين إلى اليسار",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "جارٍ التنفيذ...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1777,6 +1792,7 @@
"Start a new conversation": "",
"Start of the channel": "بداية القناة",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2121,6 +2137,8 @@
"You're now logged in.": "لقد قمت الآن بتسجيل الدخول.",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
+18
View File
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "هل أنت متأكد من رغبتك في حذف هذه القناة؟",
"Are you sure you want to delete this message?": "هل أنت متأكد من رغبتك في حذف هذه الرسالة؟",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "هل أنت متأكد من رغبتك في إلغاء أرشفة جميع المحادثات المؤرشفة؟",
"Arena Models": "نماذج الساحة",
"Artifacts": "القطع الأثرية",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "حد الأحرف لمدخل توليد الإكمال التلقائي",
"Chart new frontiers": "رسم آفاق جديدة",
"Chat": "محادثة",
"Chat archived.": "",
"Chat Background Image": "صورة خلفية المحادثة",
"Chat Bubble UI": "واجهة فقاعات المحادثة",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "الإفتراضي صلاحيات المستخدم",
"Defaults": "",
"Delete": "حذف",
"Delete {{name}}": "",
"Delete a model": "حذف الموديل",
"Delete All": "",
"Delete All Chats": "حذف جميع الدردشات",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "ارسم",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "e.g. '30s','10m'. الوحدات الزمنية الصالحة هي 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "فشل في إضافة الملف.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "فشل في قراءة محتويات الحافظة",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "تم حذف المجلد بنجاح",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "لم يتم تحديد ملف",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "لم يتم العثور على محتوى HTML أو CSS أو JavaScript.",
"No inference engine with management support found": "لم يتم العثور على محرك استدلال يدعم الإدارة",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "لم يتم العثور على معرفة",
"No memories to clear": "لا توجد ذاكرة لمسحها",
@@ -1320,6 +1330,7 @@
"No results": "لا توجد نتائج",
"No results found": "لا توجد نتايج",
"No search query generated": "لم يتم إنشاء استعلام بحث",
"No servers detected": "",
"No skills found": "",
"No source available": "لا يوجد مصدر متاح",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "المنفذ",
"Ports": "",
"Positive attitude": "موقف ايجابي",
"Prefer not to say": "",
"Prefix ID": "معرف البادئة",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Ollama.com \"{{searchValue}}\" أسحب من ",
"Pull a model from Ollama.com": "Ollama.com سحب الموديل من ",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "توجيه إنشاء الاستعلام",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "تقسيم الرد",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "النتيجة",
"RESULT": "النتيجة",
"Retrieval": "الاسترجاع",
@@ -1587,6 +1601,7 @@
"Role": "منصب",
"RTL": "من اليمين إلى اليسار",
"Run": "تنفيذ",
"Run All": "",
"Running": "جارٍ التنفيذ",
"Running...": "جارٍ التنفيذ...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1777,6 +1792,7 @@
"Start a new conversation": "",
"Start of the channel": "بداية القناة",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2121,6 +2137,8 @@
"You're now logged in.": "لقد قمت الآن بتسجيل الدخول.",
"Your Account": "",
"Your account status is currently pending activation.": "حالة حسابك حالياً بانتظار التفعيل.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "سيتم توجيه كامل مساهمتك مباشرة إلى مطور المكون الإضافي؛ لا تأخذ Open WebUI أي نسبة. ومع ذلك، قد تفرض منصة التمويل المختارة رسومًا خاصة بها.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Сигурни ли сте, че искате да изтриете този канал?",
"Are you sure you want to delete this message?": "Сигурни ли сте, че искате да изтриете това съобщение?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Сигурни ли сте, че искате да разархивирате всички архивирани чатове?",
"Arena Models": "Арена Модели",
"Artifacts": "Артефакти",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Ограничение на символите за входа на генериране на автоматично довършване",
"Chart new frontiers": "Начертайте нови граници",
"Chat": "Чат",
"Chat archived.": "",
"Chat Background Image": "Фоново изображение на чата",
"Chat Bubble UI": "Потребителски интерфейс за чат балон",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Ролята на потребителя по подразбиране",
"Defaults": "",
"Delete": "Изтриване",
"Delete {{name}}": "",
"Delete a model": "Изтриване на модела",
"Delete All": "",
"Delete All Chats": "Изтриване на всички чатове",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Рисуване",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "напр. '30с','10м'. Валидни единици са 'с', 'м', 'ч'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "Неуспешно добавяне на файл.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Грешка при четене на съдържанието от клипборда",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "Папката е изтрита успешно",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Не е избран файл",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "Не е намерено HTML, CSS или JavaScript съдържание.",
"No inference engine with management support found": "Не е намерен механизъм за извод с поддръжка на управлението",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Не са намерени знания",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "Няма намерени резултати",
"No results found": "Няма намерени резултати",
"No search query generated": "Не е генерирана заявка за търсене",
"No servers detected": "",
"No skills found": "",
"No source available": "Няма наличен източник",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "Порт",
"Ports": "",
"Positive attitude": "Позитивно отношение",
"Prefer not to say": "",
"Prefix ID": "Префикс ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Извади \"{{searchValue}}\" от Ollama.com",
"Pull a model from Ollama.com": "Издърпайте модела от Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "Промпт за генериране на запитвания",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "Разделяне на отговора",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "Резултат",
"RESULT": "Резултат",
"Retrieval": "Извличане",
@@ -1583,6 +1597,7 @@
"Role": "Роля",
"RTL": "RTL",
"Run": "Изпълни",
"Run All": "",
"Running": "Изпълнява се",
"Running...": "Изпълнява се...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "Начало на канала",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Сега вие влязохте в системата.",
"Your Account": "",
"Your account status is currently pending activation.": "Статусът на вашия акаунт в момента очаква активиране.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Цялата ви вноска ще отиде директно при разработчика на плъгина; Open WebUI не взима никакъв процент. Въпреки това, избраната платформа за финансиране може да има свои собствени такси.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "চ্যাট",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "চ্যাট বাবল UI",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "ইউজারের ডিফল্ট পদবি",
"Defaults": "",
"Delete": "মুছে ফেলুন",
"Delete {{name}}": "",
"Delete a model": "একটি মডেল মুছে ফেলুন",
"Delete All": "",
"Delete All Chats": "সব চ্যাট মুছে ফেলুন",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "যেমন '30s','10m'. সময়ের অনুমোদিত অনুমোদিত এককগুলি হচ্ছে 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "ক্লিপবোর্ডের বিষয়বস্তু পড়া সম্ভব হয়নি",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "কোন ফলাফল পাওয়া যায়নি",
"No results found": "কোন ফলাফল পাওয়া যায়নি",
"No search query generated": "কোনও অনুসন্ধান ক্যোয়ারী উত্পন্ন হয়নি",
"No servers detected": "",
"No skills found": "",
"No source available": "কোন উৎস পাওয়া যায়নি",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "পজিটিভ আক্রমণ",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Ollama.com থেকে \"{{searchValue}}\" টানুন",
"Pull a model from Ollama.com": "Ollama.com থেকে একটি টেনে আনুন আনুন",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "ফলাফল",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "পদবি",
"RTL": "RTL",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "চলমান...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "চ্যানেলের শুরু",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "আপনি এখন লগইন করা অবস্থায় আছেন",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "ཁྱེད་ཀྱིས་བགྲོ་གླེང་འདི་བསུབ་འདོད་ངེས་ཡིན་ནམ།",
"Are you sure you want to delete this message?": "འཕྲིན་འདི་བསུབ་འདོད་ངེས་ཡིན་ནམ།",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "ཁྱེད་ཀྱིས་ཡིག་མཛོད་དུ་བཞག་པའི་ཁ་བརྡ་ཡོངས་རྫོགས་ཕྱིར་འདོན་འདོད་ངེས་ཡིན་ནམ།",
"Arena Models": "Arena དཔེ་དབྱིབས།",
"Artifacts": "རྫས་རྟེན།",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "རང་འཚང་བཟོ་སྐྲུན་ནང་འཇུག་གི་ཡིག་འབྲུ་ཚད་བཀག",
"Chart new frontiers": "ས་མཚམས་གསར་པ་འགོད་པ།",
"Chat": "ཁ་བརྡ།",
"Chat archived.": "",
"Chat Background Image": "ཁ་བརྡའི་རྒྱབ་ལྗོངས་པར།",
"Chat Bubble UI": "ཁ་བརྡའི་ལྦུ་བའི་ UI",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "སྔོན་སྒྲིག་བེད་སྤྱོད་མཁན་གྱི་གནས་ཚད།",
"Defaults": "",
"Delete": "བསུབ་པ།",
"Delete {{name}}": "",
"Delete a model": "དཔེ་དབྱིབས་ཤིག་བསུབ་པ།",
"Delete All": "",
"Delete All Chats": "ཁ་བརྡ་ཡོངས་རྫོགས་བསུབ་པ།",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "རི་མོ་འབྲི་བ།",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "དཔེར་ན། '30s','10m'. ནུས་ལྡན་དུས་ཚོད་ཀྱི་ཚན་པ་ནི། 's', 'm', 'h' ཡིན།",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "ཡིག་ཆ་སྣོན་པར་མ་ཐུབ།",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "{{URL}} OpenAPI ལག་ཆའི་སར་བར་ལ་སྦྲེལ་མཐུད་བྱེད་མ་ཐུབ།",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "སྦྱར་སྡེར་གྱི་ནང་དོན་ཀློག་མ་ཐུབ།",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "ཡིག་སྣོད་ལེགས་པར་བསུབས་ཟིན།",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "ཡིག་ཆ་གདམ་ག་མ་བྱས།",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "HTML, CSS, ཡང་ན་ JavaScript གི་ནང་དོན་མ་རྙེད།",
"No inference engine with management support found": "དོ་དམ་རྒྱབ་སྐྱོར་ཡོད་པའི་དཔོག་རྩིས་འཕྲུལ་འཁོར་མ་རྙེད།",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "ཤེས་བྱ་མ་རྙེད།",
"No memories to clear": "གཙང་སེལ་བྱེད་རྒྱུའི་དྲན་ཤེས་མེད།",
@@ -1320,6 +1330,7 @@
"No results": "འབྲས་བུ་མ་རྙེད།",
"No results found": "འབྲས་བུ་མ་རྙེད།",
"No search query generated": "འཚོལ་བཤེར་འདྲི་བ་བཟོས་མེད།",
"No servers detected": "",
"No skills found": "",
"No source available": "འབྱུང་ཁུངས་མེད།",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "Port",
"Ports": "",
"Positive attitude": "ལྟ་སྟངས་དགེ་མཚན།",
"Prefer not to say": "",
"Prefix ID": "སྔོན་སྦྱོར་ ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Ollama.com ནས་ \"{{searchValue}}\" འཐེན་པ།",
"Pull a model from Ollama.com": "Ollama.com ནས་དཔེ་དབྱིབས་ཤིག་འཐེན་པ།",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "འདྲི་བ་བཟོ་སྐྲུན་གྱི་འགུལ་སློང་།",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "ལན་བགོ་བ།",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "འབྲས་བུ།",
"RESULT": "འབྲས་བུ།",
"Retrieval": "ལེན་ཚུར་སྒྲུབ།",
@@ -1582,6 +1596,7 @@
"Role": "གནས་ཚད།",
"RTL": "RTL",
"Run": "ལག་བསྟར།",
"Run All": "",
"Running": "ལག་བསྟར་བྱེད་བཞིན་པ།",
"Running...": "ལག་བསྟར་བྱེད་བཞིན་པ།...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1772,6 +1787,7 @@
"Start a new conversation": "",
"Start of the channel": "རྒྱས་ལམ་འགོ་རིམ་",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2116,6 +2132,8 @@
"You're now logged in.": "ཁྱེད་ད་ལྟ་ནང་འཛུལ་བྱས་ཟིན།",
"Your Account": "",
"Your account status is currently pending activation.": "ཁྱེད་ཀྱི་རྩིས་ཁྲའི་གནས་སྟངས་ད་ལྟ་སྒུལ་བསྐྱོད་སྒུག་བཞིན་པ།",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "ཁྱེད་ཀྱི་ཞལ་འདེབས་ཆ་ཚང་ཐད་ཀར་ plugin གསར་སྤེལ་བ་ལ་འགྲོ་ངེས། Open WebUI ཡིས་བརྒྱ་ཆ་གང་ཡང་མི་ལེན། འོན་ཀྱང་། གདམ་ཟིན་པའི་མ་དངུལ་གཏོང་བའི་སྟེགས་བུ་ལ་དེའི་རང་གི་འགྲོ་གྲོན་ཡོད་སྲིད།",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "Razgovor",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "Razgovor - Bubble UI",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Zadana korisnička uloga",
"Defaults": "",
"Delete": "Izbriši",
"Delete {{name}}": "",
"Delete a model": "Izbriši model",
"Delete All": "",
"Delete All Chats": "Izbriši sve razgovore",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "npr. '30s','10m'. Važeće vremenske jedinice su 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Neuspješno čitanje sadržaja međuspremnika",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "Nema rezultata",
"No results found": "Nema rezultata",
"No search query generated": "Nije generiran upit za pretraživanje",
"No servers detected": "",
"No skills found": "",
"No source available": "Nema dostupnog izvora",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "Pozitivan stav",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Povucite \"{{searchValue}}\" s Ollama.com",
"Pull a model from Ollama.com": "Povucite model s Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "REZULTAT",
"Retrieval": "",
@@ -1584,6 +1598,7 @@
"Role": "Uloga",
"RTL": "RTL",
"Run": "",
"Run All": "",
"Running": "Pokrenuto",
"Running...": "Pokrenuto...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1774,6 +1789,7 @@
"Start a new conversation": "",
"Start of the channel": "Početak kanala",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2118,6 +2134,8 @@
"You're now logged in.": "Sada ste prijavljeni.",
"Your Account": "",
"Your account status is currently pending activation.": "Status vašeg računa trenutno čeka aktivaciju.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Estàs segur que vols eliminar aquest canal?",
"Are you sure you want to delete this message?": "Estàs segur que vols eliminar aquest missatge?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "Estàs segur que vols suprimir aquesta versió? Les versions filles es tornaran a enllaçar amb la versió principal d'aquesta versió.",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Estàs segur que vols desarxivar tots els xats arxivats?",
"Arena Models": "Models de l'Arena",
"Artifacts": "Artefactes",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Límit de caràcters per a l'entrada de generació automàtica",
"Chart new frontiers": "Traça noves fronteres",
"Chat": "Xat",
"Chat archived.": "",
"Chat Background Image": "Imatge de fons del xat",
"Chat Bubble UI": "Chat Bubble UI",
"Chat Completions": "Completacions de xat",
@@ -485,6 +487,7 @@
"Default User Role": "Rol d'usuari per defecte",
"Defaults": "Valors per defecte",
"Delete": "Eliminar",
"Delete {{name}}": "",
"Delete a model": "Eliminar un model",
"Delete All": "Eliminar tot",
"Delete All Chats": "Eliminar tots els xats",
@@ -577,6 +580,7 @@
"Downloading stats...": "Descarregant estadístiques...",
"Draw": "Dibuixar",
"Drop any files here to upload": "Arrossega aquí qualsevol fitxer per pujar-lo",
"Drop files here": "",
"Drop files here to upload": "Deixa anar els arxius aquí per pujar-los",
"DuckDuckGo": "DuckDuckGo",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "p. ex. '30s','10m'. Les unitats de temps vàlides són 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Efecte de fos a negre per al text en streaming",
"Failed to add file.": "No s'ha pogut afegir l'arxiu.",
"Failed to add members": "No s'han pogut afegir el membres",
"Failed to archive chat.": "",
"Failed to attach file": "No s'ha pogut adjuntar l'arxiu",
"Failed to clear status": "No s'ha pogut esborar l'estat",
"Failed to connect to {{URL}} OpenAPI tool server": "No s'ha pogut connecta al servidor d'eines OpenAPI {{URL}}",
@@ -836,9 +841,11 @@
"Failed to generate title": "No s'ha pogut generar el títol",
"Failed to import models": "No s'han pogut importar el models",
"Failed to load chat preview": "No s'ha pogut carregar la previsualització del xat",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "No s'ha pogut carregar el fitxer Excel/CSV. Si us plau, prova de descarregar-lo.",
"Failed to load file content.": "No s'ha pogut carregar el contingut del fitxer",
"Failed to load Interface settings": "No s'ha pogut carregar la configuració de la interficie",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "No s'ha pogut moure el xat",
"Failed to process URL: {{url}}": "No s'ha pogut processar la URL: {{url}}",
"Failed to read clipboard contents": "No s'ha pogut llegir el contingut del porta-retalls",
@@ -893,6 +900,7 @@
"Focus Chat Input": "Posa el focus en l'entrada del xat",
"Folder": "Carpeta",
"Folder Background Image": "Imatge del fons de la carpeta",
"Folder created successfully": "",
"Folder deleted successfully": "Carpeta eliminada correctament",
"Folder Max File Count": "Nombre màxim d'arxius per carpeta",
"Folder name": "Nom de carpeta",
@@ -1300,11 +1308,13 @@
"No file selected": "No s'ha escollit cap fitxer",
"No files found": "No s'han trobat arxius",
"No files in this knowledge base.": "No hi ha arxius a la base de coneixement.",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "No s'han trobat funcions",
"No groups found": "No s'han trobat grups",
"No history available": "No hi ha historial disponible",
"No HTML, CSS, or JavaScript content found.": "No s'ha trobat contingut HTML, CSS o JavaScript.",
"No inference engine with management support found": "No s'ha trobat un motor d'inferència amb suport de gestió",
"No kernel": "",
"No knowledge bases found.": "No s'han trobat bases de coneixement.",
"No knowledge found": "No s'ha trobat Coneixement",
"No memories to clear": "No hi ha memòries per netejar",
@@ -1320,6 +1330,7 @@
"No results": "No s'han trobat resultats",
"No results found": "No s'han trobat resultats",
"No search query generated": "No s'ha generat cap consulta",
"No servers detected": "",
"No skills found": "No s'han trobat habilitats",
"No source available": "Sense font disponible",
"No sources found": "No s'han trobat fonts",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "Selecciona com a mínim un usuari per al canal de missatge directe.",
"Please wait until all files are uploaded.": "Si us plau, espera fins que s'hagin carregat tots els fitxers.",
"Port": "Port",
"Ports": "",
"Positive attitude": "Actitud positiva",
"Prefer not to say": "Prefereixo no dir-ho",
"Prefix ID": "Identificador del prefix",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Obtenir \"{{searchValue}}\" de Ollama.com",
"Pull a model from Ollama.com": "Obtenir un model d'Ollama.com",
"Pull Model": "Obtenir un model",
"Pyodide file browser": "",
"Query Generation Prompt": "Indicació per a generació de consulta",
"Querying": "Consultes",
"Quick Actions": "Accions ràpides",
@@ -1571,6 +1584,7 @@
"Response splitting": "Divisió de la resposta",
"Response Watermark": "Marca d'aigua de la resposta",
"Responses": "Respostes",
"Restart": "",
"Result": "Resultat",
"RESULT": "Resultat",
"Retrieval": "Retrieval",
@@ -1584,6 +1598,7 @@
"Role": "Rol",
"RTL": "RTL",
"Run": "Executar",
"Run All": "",
"Running": "S'està executant",
"Running...": "S'està executant...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Executa tasques d'incrustació simultàniament per accelerar el processament. Desactiva-ho si els límits de velocitat es converteixen en un problema.",
@@ -1774,6 +1789,7 @@
"Start a new conversation": "Iniciar una nova conversa",
"Start of the channel": "Inici del canal",
"Start Tag": "Etiqueta d'inici",
"Starting kernel...": "",
"Status": "Estat",
"Status cleared successfully": "S'ha eliminat correctament el teu estat",
"Status updated successfully": "S'ha actualitzat correctament el teu estat",
@@ -2118,6 +2134,8 @@
"You're now logged in.": "Ara estàs connectat.",
"Your Account": "El teu compte",
"Your account status is currently pending activation.": "El compte està actualment pendent d'activació",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Tota la teva contribució anirà directament al desenvolupador del complement; Open WebUI no se'n queda cap percentatge. Tanmateix, la plataforma de finançament escollida pot tenir les seves pròpies comissions.",
"Your message text or inputs": "El text o les entrades del teu missatge",
"Your usage stats have been successfully synced.": "Les teves estadístiques d'ús s'han sincronitzat correctament.",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "Panaghisgot",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Default nga Papel sa Gumagamit",
"Defaults": "",
"Delete": "",
"Delete {{name}}": "",
"Delete a model": "Pagtangtang sa usa ka template",
"Delete All": "",
"Delete All Chats": "",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "p. ",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Napakyas sa pagbasa sa sulod sa clipboard",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "Walay resulta",
"No results found": "",
"No search query generated": "",
"No servers detected": "",
"No skills found": "",
"No source available": "Walay tinubdan nga anaa",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "",
"Pull a model from Ollama.com": "Pagkuha ug template gikan sa Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "RESULTA",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "Papel",
"RTL": "",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "Nagdagan...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "Sinugdan sa channel",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Konektado ka na karon.",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Opravdu chcete smazat tento kanál?",
"Are you sure you want to delete this message?": "Opravdu chcete smazat tuto zprávu?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Opravdu chcete zrušit archivaci všech archivovaných konverzací?",
"Arena Models": "Modely pro arénu",
"Artifacts": "Artefakty",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Limit znaků pro vstup generování automatického dokončování",
"Chart new frontiers": "Objevujte nové hranice",
"Chat": "Konverzace",
"Chat archived.": "",
"Chat Background Image": "Obrázek pozadí konverzace",
"Chat Bubble UI": "Uživatelské rozhraní s bublinami konverzace",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Výchozí role uživatele",
"Defaults": "",
"Delete": "Smazat",
"Delete {{name}}": "",
"Delete a model": "Smazat model",
"Delete All": "",
"Delete All Chats": "Smazat všechny konverzace",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Kreslit",
"Drop any files here to upload": "Přetáhněte sem soubory pro nahrání",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "např. '30s','10m'. Platné časové jednotky jsou 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Efekt prolínání pro streamovaný text",
"Failed to add file.": "Nepodařilo se přidat soubor.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "Nepodařilo se připojit k serveru nástrojů OpenAPI {{URL}}",
@@ -836,9 +841,11 @@
"Failed to generate title": "Nepodařilo se vygenerovat název",
"Failed to import models": "",
"Failed to load chat preview": "Nepodařilo se načíst náhled konverzace",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "Nepodařilo se načíst obsah souboru.",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Nepodařilo se přečíst obsah schránky",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "Složka",
"Folder Background Image": "Obrázek na pozadí složky",
"Folder created successfully": "",
"Folder deleted successfully": "Složka byla úspěšně smazána",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Nebyl vybrán žádný soubor",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "Žádné funkce nenalezeny",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "Nebyl nalezen žádný obsah HTML, CSS ani JavaScriptu.",
"No inference engine with management support found": "Nebyl nalezeno žádné inferenční jádro s podporou správy",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Nebyly nalezeny žádné znalosti",
"No memories to clear": "Žádné vzpomínky k vymazání",
@@ -1320,6 +1330,7 @@
"No results": "Nebyly nalezeny žádné výsledky",
"No results found": "Nebyly nalezeny žádné výsledky",
"No search query generated": "Nebyl vygenerován žádný vyhledávací dotaz.",
"No servers detected": "",
"No skills found": "",
"No source available": "Není k dispozici žádný zdroj.",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "Prosím počkejte dokud nebudou všechny soubory nahrány.",
"Port": "Port",
"Ports": "",
"Positive attitude": "Pozitivní přístup",
"Prefer not to say": "Raději nevyberu",
"Prefix ID": "Prefix ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Stáhnout \"{{searchValue}}\" z Ollama.com",
"Pull a model from Ollama.com": "Stáhnout model z Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "Instrukce pro generování dotazu",
"Querying": "",
"Quick Actions": "Rychlé akce",
@@ -1571,6 +1584,7 @@
"Response splitting": "Dělení odpovědi",
"Response Watermark": "Vodoznak odpovědi",
"Responses": "",
"Restart": "",
"Result": "Výsledek",
"RESULT": "Výsledek",
"Retrieval": "Vyhledávání",
@@ -1585,6 +1599,7 @@
"Role": "Role",
"RTL": "RTL",
"Run": "Spustit",
"Run All": "",
"Running": "Běží",
"Running...": "Běží...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1775,6 +1790,7 @@
"Start a new conversation": "",
"Start of the channel": "Začátek kanálu",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2119,6 +2135,8 @@
"You're now logged in.": "Nyní jste přihlášeni.",
"Your Account": "Váš účet",
"Your account status is currently pending activation.": "Stav vašeho účtu aktuálně čeká na aktivaci.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Celý váš příspěvek půjde přímo vývojáři pluginu; Open WebUI si nebere žádné procento. Zvolená platforma pro financování však může mít vlastní poplatky.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Er du sikker på du vil slette denne kanal?",
"Are you sure you want to delete this message?": "Er du sikker på du vil slette denne besked?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Er du sikker på du vil fjerne alle arkiverede chats?",
"Arena Models": "Arena Modeller",
"Artifacts": "Artifakter",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Karaktergrænse for genereret autofuldførsel",
"Chart new frontiers": "Udforsk nye grænser",
"Chat": "Chat",
"Chat archived.": "",
"Chat Background Image": "Chat baggrundsbillede",
"Chat Bubble UI": "Chat Bubble UI",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Brugers rolle som standard",
"Defaults": "",
"Delete": "Slet",
"Delete {{name}}": "",
"Delete a model": "Slet en model",
"Delete All": "",
"Delete All Chats": "Slet alle chats",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Tegn",
"Drop any files here to upload": "Drop nogen filer her for at uploade",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "f.eks. '30s', '10m'. Tilladte værdier er 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Fade-effekt for streaming tekst",
"Failed to add file.": "Kunne ikke tilføje fil.",
"Failed to add members": "Kunne ikke tilføje medlemmer",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "Kunne ikke fjerne status",
"Failed to connect to {{URL}} OpenAPI tool server": "Kunne ikke forbinde til {{URL}} OpenAPI tool server",
@@ -836,9 +841,11 @@
"Failed to generate title": "Kunne ikke generere titel",
"Failed to import models": "Kunne ikke importere modeller",
"Failed to load chat preview": "Kunne ikke indlæse chat forhåndsvisning",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "Kunne ikke indlæse filindhold.",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "Kunne ikke flytte chat",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Kunne ikke læse indholdet af udklipsholderen",
@@ -893,6 +900,7 @@
"Focus Chat Input": "Fokus chat-input",
"Folder": "Mappe",
"Folder Background Image": "Mappe baggrundsbillede",
"Folder created successfully": "",
"Folder deleted successfully": "Mappe fjernet.",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Ingen fil valgt",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "Ingen funktioner fundet",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "Intet HTML-, CSS- eller JavaScript-indhold fundet.",
"No inference engine with management support found": "Ingen inference-engine med støtte til administration fundet",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Ingen viden fundet",
"No memories to clear": "Ingen hukommelser at ryde",
@@ -1320,6 +1330,7 @@
"No results": "Ingen resultater fundet",
"No results found": "Ingen resultater fundet",
"No search query generated": "Ingen søgeforespørgsel genereret",
"No servers detected": "",
"No skills found": "",
"No source available": "Ingen kilde tilgængelig",
"No sources found": "Ingen kilder fundet",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "Vælg mindst én bruger til direkte besked-kanal.",
"Please wait until all files are uploaded.": "Vent venligst indtil alle filerne er uploadet.",
"Port": "Port",
"Ports": "",
"Positive attitude": "Positiv holdning",
"Prefer not to say": "Foretrækker ikke at oplyse",
"Prefix ID": "Prefix ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Hent \"{{searchValue}}\" fra Ollama.com",
"Pull a model from Ollama.com": "Hent en model fra Ollama.com",
"Pull Model": "Hent model",
"Pyodide file browser": "",
"Query Generation Prompt": "Forespørgsel genererings prompt",
"Querying": "Undersøger",
"Quick Actions": "Hurtig-handlinger",
@@ -1571,6 +1584,7 @@
"Response splitting": "Svaropdeling",
"Response Watermark": "Vandmærke på svar",
"Responses": "",
"Restart": "",
"Result": "Resultat",
"RESULT": "Resultat",
"Retrieval": "Hentning",
@@ -1583,6 +1597,7 @@
"Role": "Rolle",
"RTL": "RTL",
"Run": "Kør",
"Run All": "",
"Running": "Kører",
"Running...": "Kører...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Kører embedding-opgaver sideløbende for at fremskynde behandlingen. Slå fra hvis hastighedsbegrænsninger bliver et problem.",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "Start en ny samtale",
"Start of the channel": "Kanalens start",
"Start Tag": "Start tag",
"Starting kernel...": "",
"Status": "Status",
"Status cleared successfully": "Status slettet",
"Status updated successfully": "Status opdateret",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Du er nu logget ind.",
"Your Account": "Din bruger",
"Your account status is currently pending activation.": "Din kontostatus afventer i øjeblikket aktivering.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Hele dit bidrag går direkte til plugin-udvikleren; Open WebUI tager ikke nogen procentdel. Den valgte finansieringsplatform kan dog have sine egne gebyrer.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
+19 -1
View File
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Sind Sie sicher, dass Sie diesen Kanal löschen möchten?",
"Are you sure you want to delete this message?": "Sind Sie sicher, dass Sie diese Nachricht löschen möchten?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "Sind Sie sicher, dass Sie diese Version löschen wollen? Child-Versionen werden zu dem Parent dieser Version verlinkt.",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Sind Sie sicher, dass Sie alle archivierten Chats wiederherstellen möchten?",
"Arena Models": "Arena-Modelle",
"Artifacts": "Artefakte",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Zeichenlimit für Eingabe der Autovervollständigung",
"Chart new frontiers": "Neue Grenzen erkunden",
"Chat": "Chat",
"Chat archived.": "Chat archiviert.",
"Chat Background Image": "Hintergrundbild des Chats",
"Chat Bubble UI": "Sprechblasen-Ansicht",
"Chat Completions": "Chat Completions",
@@ -485,6 +487,7 @@
"Default User Role": "Standard-Benutzerrolle",
"Defaults": "Standardwerte",
"Delete": "Löschen",
"Delete {{name}}": "",
"Delete a model": "Ein Modell löschen",
"Delete All": "Alle löschen",
"Delete All Chats": "Alle Chats löschen",
@@ -577,6 +580,7 @@
"Downloading stats...": "Statistik wird heruntergeladen...",
"Draw": "Zeichnen",
"Drop any files here to upload": "Dateien zum Hochladen hier ablegen",
"Drop files here": "",
"Drop files here to upload": "Dateien zum Hochladen hier fallen lassen",
"DuckDuckGo": "DuckDuckGo",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "z. B. '30s', '10m'. Gültig: 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Fade-Effekt für Text-Streaming",
"Failed to add file.": "Hinzufügen der Datei fehlgeschlagen.",
"Failed to add members": "Mitglieder konnten nicht hinzugefügt werden",
"Failed to archive chat.": "Chat konnte nicht archiviert werden.",
"Failed to attach file": "Datei konnte nicht hinzugefügt werden",
"Failed to clear status": "Status konnte nicht geleert werden",
"Failed to connect to {{URL}} OpenAPI tool server": "Verbindung zum OpenAPI-Toolserver {{URL}} fehlgeschlagen",
@@ -836,9 +841,11 @@
"Failed to generate title": "Titel konnte nicht generiert werden",
"Failed to import models": "Modelle konnten nicht importiert werden",
"Failed to load chat preview": "Chat-Vorschau konnte nicht geladen werden",
"Failed to load DOCX file. Please try downloading it instead.": "DOCX Datei konnte nicht geladen werden. Versuche die Datei stattdessen herunterzuladen.",
"Failed to load Excel/CSV file. Please try downloading it instead.": "Excel/CSV-Datei konnte nicht geladen werden. Bitte versuchen Sie stattdessen, sie herunterzuladen.",
"Failed to load file content.": "Dateiinhalt konnte nicht geladen werden.",
"Failed to load Interface settings": "Interface Einstellungen konnten nicht geladen werden",
"Failed to load PPTX file. Please try downloading it instead.": "PPTX Datei konnte nicht geladen werden. Versuche die Datei stattdessen herunterzuladen.",
"Failed to move chat": "Chat konnte nicht verschoben werden",
"Failed to process URL: {{url}}": "{{url}} konnte nicht verarbeitet werden",
"Failed to read clipboard contents": "Zwischenablage konnte nicht gelesen werden",
@@ -893,6 +900,7 @@
"Focus Chat Input": "Chat-Eingabe fokussieren",
"Folder": "Ordner",
"Folder Background Image": "Ordner-Hintergrundbild",
"Folder created successfully": "",
"Folder deleted successfully": "Ordner erfolgreich gelöscht",
"Folder Max File Count": "Maximale Dateianzahl pro Ordner",
"Folder name": "Ordnername",
@@ -1257,7 +1265,7 @@
"More options": "Mehr Optionen",
"More Options": "Mehr Optionen",
"Move": "Verschieben",
"Moved {{name}}": "",
"Moved {{name}}": "{{name}} verschoben",
"My Terminal": "Meine Terminals",
"Name": "Name",
"Name and ID are required, please fill them out": "Name und ID sind erforderlich, bitte füllen Sie diese aus",
@@ -1300,11 +1308,13 @@
"No file selected": "Keine Datei ausgewählt",
"No files found": "Keine Dateien gefunden",
"No files in this knowledge base.": "Keine Dateien in diesem Wissensspeicher",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "Keine Funktionen gefunden",
"No groups found": "Keine Gruppen gefunden",
"No history available": "Keine History verfügbar",
"No HTML, CSS, or JavaScript content found.": "Keine HTML-, CSS- oder JavaScript-Inhalte gefunden.",
"No inference engine with management support found": "Keine Inferenz-Engine mit Verwaltungsunterstützung gefunden",
"No kernel": "Kein Kernel",
"No knowledge bases found.": "Keine Wissensspeicher gefunden.",
"No knowledge found": "Kein Wissen gefunden",
"No memories to clear": "Keine Erinnerungen zum Löschen",
@@ -1320,6 +1330,7 @@
"No results": "Keine Ergebnisse",
"No results found": "Keine Ergebnisse gefunden",
"No search query generated": "Keine Suchanfrage generiert",
"No servers detected": "Keine Server erkannt",
"No skills found": "Keine Skills gefunden",
"No source available": "Keine Quelle verfügbar",
"No sources found": "Keine Quellen gefunden",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "Bitte wählen Sie mindestens einen Benutzer für den Direktnachrichten-Kanal aus.",
"Please wait until all files are uploaded.": "Bitte warten Sie, bis alle Dateien hochgeladen sind.",
"Port": "Port",
"Ports": "Ports",
"Positive attitude": "Positive Einstellung",
"Prefer not to say": "Keine Angabe",
"Prefix ID": "Präfix-ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "\"{{searchValue}}\" von Ollama.com laden",
"Pull a model from Ollama.com": "Ein Modell von Ollama.com laden",
"Pull Model": "Modell laden",
"Pyodide file browser": "",
"Query Generation Prompt": "Abfrage-Generierungs-Prompt",
"Querying": "Frage ab...",
"Quick Actions": "Schnellaktionen",
@@ -1571,6 +1584,7 @@
"Response splitting": "Antwortaufteilung",
"Response Watermark": "Antwort-Wasserzeichen",
"Responses": "Responses",
"Restart": "Neustarten",
"Result": "Ergebnis",
"RESULT": "ERGEBNIS",
"Retrieval": "Abruf",
@@ -1583,6 +1597,7 @@
"Role": "Rolle",
"RTL": "RTL",
"Run": "Ausführen",
"Run All": "Alle starten",
"Running": "Läuft",
"Running...": "Läuft...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Führt Embedding-Aufgaben parallel aus, um die Verarbeitung zu beschleunigen. Deaktivieren Sie dies, falls Rate-Limits oder Ressourcenprobleme auftreten.",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "Neue Unterhaltung beginnen",
"Start of the channel": "Beginn des Kanals",
"Start Tag": "Start-Tag",
"Starting kernel...": "Kernel starten...",
"Status": "Status",
"Status cleared successfully": "Status erfolgreich gelöscht",
"Status updated successfully": "Status erfolgreich aktualisiert",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Sie sind jetzt angemeldet.",
"Your Account": "Ihr Konto",
"Your account status is currently pending activation.": "Ihr Kontostatus wartet derzeit auf Aktivierung.",
"Your browser does not support the audio tag.": "Dein Browser unterstützt den Audio tag nicht.",
"Your browser does not support the video tag.": "Dein Browser unterstützt den Video tag nicht.",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Ihr gesamter Beitrag geht direkt an den Plugin-Entwickler; Open WebUI behält keinen Anteil ein. Die gewählte Plattform kann jedoch eigene Gebühren erheben.",
"Your message text or inputs": "Ihre Nachrichtentexte oder Eingaben",
"Your usage stats have been successfully synced.": "Ihre Nutzungsstatistiken wurden erfolgreich synchronisiert.",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "Chat",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Default User Role",
"Defaults": "",
"Delete": "",
"Delete {{name}}": "",
"Delete a model": "Delete a model",
"Delete All": "",
"Delete All Chats": "",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "e.g. '30s','10m'. Much time units are 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Failed to read clipboard borks",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "No results, very empty",
"No results found": "",
"No search query generated": "",
"No servers detected": "",
"No skills found": "",
"No source available": "No source available",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "",
"Pull a model from Ollama.com": "Pull a wowdel from Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "RESULT much",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "Role",
"RTL": "",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "Running... wow",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "Start of channel",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "You're now logged in. Much logged.",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το κανάλι;",
"Are you sure you want to delete this message?": "Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το μήνυμα;",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Είστε σίγουροι ότι θέλετε να απο-αρχειοθετήσετε όλες τις αρχειοθετημένες συνομιλίες;",
"Arena Models": "Μοντέλα Arena",
"Artifacts": "Αρχεία",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Όριο χαρακτήρων για αυτόματη συμπλήρωση εισαγωγής",
"Chart new frontiers": "Σχεδιάστε νέους ορίζοντες",
"Chat": "Συνομιλία",
"Chat archived.": "",
"Chat Background Image": "Εικόνα Φόντου Συνομιλίας",
"Chat Bubble UI": "Διεπαφή Φούσκας Συνομιλίας",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Προεπιλεγμένος Ρόλος Χρήστη",
"Defaults": "",
"Delete": "Διαγραφή",
"Delete {{name}}": "",
"Delete a model": "Διαγραφή ενός μοντέλου",
"Delete All": "",
"Delete All Chats": "Διαγραφή Όλων των Συνομιλιών",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Σχεδίαση",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "π.χ. '30s','10m'. Οι έγκυρες μονάδες χρόνου είναι 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "Αποτυχία προσθήκης αρχείου.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "Αποτυχία σύνδεσης στο διακομιστή εργαλείων OpenAPI {{URL}}",
@@ -836,9 +841,11 @@
"Failed to generate title": "Αποτυχία δημιουργίας τίτλου",
"Failed to import models": "Αποτυχία εισαγωγής μοντέλων",
"Failed to load chat preview": "Αποτυχία φόρτωσης προεπισκόπησης συνομιλίας",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "Αποτυχία φόρτωσης περιεχομένου αρχείου",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "Αποτυχία μετακίνησης συνομιλίας",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Αποτυχία ανάγνωσης περιεχομένων πρόχειρου",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "Φάκελος",
"Folder Background Image": "Εικόνα Φόντου Φακέλου",
"Folder created successfully": "",
"Folder deleted successfully": "Ο φάκελος διαγράφηκε με επιτυχία",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Δεν έχει επιλεγεί αρχείο",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "Δεν βρέθηκαν λειτουργίες",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "Δεν βρέθηκε περιεχόμενο HTML, CSS ή JavaScript.",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Δεν βρέθηκε Knowledge",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "Δεν βρέθηκαν αποτελέσματα",
"No results found": "Δεν βρέθηκαν αποτελέσματα",
"No search query generated": "Δεν δημιουργήθηκε ερώτηση αναζήτησης",
"No servers detected": "",
"No skills found": "",
"No source available": "Δεν υπάρχει διαθέσιμη πηγή",
"No sources found": "Δεν βρέθηκαν πηγές",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "Θύρα",
"Ports": "",
"Positive attitude": "Θετική στάση",
"Prefer not to say": "",
"Prefix ID": "ID Προθέματος",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Τραβήξτε \"{{searchValue}}\" από το Ollama.com",
"Pull a model from Ollama.com": "Τραβήξτε ένα μοντέλο από το Ollama.com",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "Προτροπή Δημιουργίας Ερωτήσεων",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "Διαχωρισμός απάντησης",
"Response Watermark": "Υδρογράφημα Απάντησης",
"Responses": "",
"Restart": "",
"Result": "Αποτέλεσμα",
"RESULT": "Αποτέλεσμα",
"Retrieval": "Ανάκτηση",
@@ -1583,6 +1597,7 @@
"Role": "Ρόλος",
"RTL": "RTL",
"Run": "Εκτέλεση",
"Run All": "",
"Running": "Εκτέλεση",
"Running...": "Εκτέλεση...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "Αρχή του καναλιού",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Τώρα είστε συνδεδεμένοι.",
"Your Account": "Ο λογαριασμός σας",
"Your account status is currently pending activation.": "Η κατάσταση του λογαριασμού σας είναι αυτή τη στιγμή σε εκκρεμότητα ενεργοποίησης.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Η ολόκληρη η συνεισφορά σας θα πάει απευθείας στον προγραμματιστή του plugin· το Open WebUI δεν παίρνει κανένα ποσοστό. Ωστόσο, η επιλεγμένη πλατφόρμα χρηματοδότησης μπορεί να έχει τα δικά της τέλη.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "",
"Defaults": "",
"Delete": "",
"Delete {{name}}": "",
"Delete a model": "",
"Delete All": "",
"Delete All Chats": "",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "",
"No results found": "",
"No search query generated": "",
"No servers detected": "",
"No skills found": "",
"No source available": "",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "",
"Pull a model from Ollama.com": "",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "",
"RTL": "",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "",
"Arena Models": "",
"Artifacts": "",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "",
"Chat": "",
"Chat archived.": "",
"Chat Background Image": "",
"Chat Bubble UI": "",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "",
"Defaults": "",
"Delete": "",
"Delete {{name}}": "",
"Delete a model": "",
"Delete All": "",
"Delete All Chats": "",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "",
"No results found": "",
"No search query generated": "",
"No servers detected": "",
"No skills found": "",
"No source available": "",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "",
"Ports": "",
"Positive attitude": "",
"Prefer not to say": "",
"Prefix ID": "",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "",
"Pull a model from Ollama.com": "",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "",
"RESULT": "",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "",
"RTL": "",
"Run": "",
"Run All": "",
"Running": "",
"Running...": "",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "",
"Your Account": "",
"Your account status is currently pending activation.": "",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "¿Seguro de que quieres eliminar este canal?",
"Are you sure you want to delete this message?": "¿Seguro de que quieres eliminar este mensaje? ",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "¿Seguro que desea eliminar esta versión? Las versiones secundarias se vincularán a la versión principal de esta.",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "¿Seguro de que quieres desarchivar todos los chats archivados?",
"Arena Models": "Arena de Modelos",
"Artifacts": "Artefactos",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Límite de caracteres de entrada de la generación de autocompletado",
"Chart new frontiers": "Trazar nuevas fronteras",
"Chat": "Chat",
"Chat archived.": "",
"Chat Background Image": "Imágen de Fondo del Chat",
"Chat Bubble UI": "Interfaz del Chat en Burbuja",
"Chat Completions": "Completación del Chat",
@@ -485,6 +487,7 @@
"Default User Role": "Rol predeterminado de los nuevos usuarios",
"Defaults": "Predeterminados",
"Delete": "Borrar",
"Delete {{name}}": "",
"Delete a model": "Borrar un modelo",
"Delete All": "Borrar Todo",
"Delete All Chats": "Borrar todos los chats",
@@ -577,6 +580,7 @@
"Downloading stats...": "Descargando estadísticas...",
"Draw": "Dibujar",
"Drop any files here to upload": "Arrastra aquí los archivos a subir.",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "DuckDuckGo",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "p.ej. '30s','10m'. Unidades de tiempo válidas son 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Efecto de desvanecimiento para texto transmitido (streaming)",
"Failed to add file.": "Fallo al añadir el archivo.",
"Failed to add members": "Fallo al añadir miembros",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "Fallo al limpiar el estado",
"Failed to connect to {{URL}} OpenAPI tool server": "Fallo al conectar al servidor de herramientas {{URL}}",
@@ -836,9 +841,11 @@
"Failed to generate title": "Fallo al generar el título",
"Failed to import models": "Fallo al importar modelos",
"Failed to load chat preview": "Fallo al cargar la previsualización del chat",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "Fallo al cargar el archivo Excel/CSV. Por favor, en su lugar intente descargarlo.",
"Failed to load file content.": "Fallo al cargar el contenido del archivo",
"Failed to load Interface settings": "Fallo al cargar la configuración del Interface",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "Fallo al mover el chat",
"Failed to process URL: {{url}}": "Fallo al procesar la URL",
"Failed to read clipboard contents": "Fallo al leer el contenido del portapapeles",
@@ -893,6 +900,7 @@
"Focus Chat Input": "Enfocar a la Entrada del Chat",
"Folder": "Carpeta",
"Folder Background Image": "Imagen de Fondo de la Carpeta",
"Folder created successfully": "",
"Folder deleted successfully": "Carpeta eliminada correctamente",
"Folder Max File Count": "Máximo Número de Ficheros en Carpeta",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "No se seleccionó archivo",
"No files found": "No se encontraron archivos",
"No files in this knowledge base.": "Ningún archivo en esta base de conocimiento.",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "No se encontraron funciones",
"No groups found": "No se encontraron grupos",
"No history available": "No hay historial disponible",
"No HTML, CSS, or JavaScript content found.": "No se encontró contenido HTML, CSS, o JavaScript.",
"No inference engine with management support found": "No se encontró un motor de inferencia que soporte gestión",
"No kernel": "",
"No knowledge bases found.": "No se encontraron bases de conocimiento",
"No knowledge found": "No se encontró ningún conocimiento",
"No memories to clear": "No hay memorias para borrar",
@@ -1320,6 +1330,7 @@
"No results": "No se encontraron resultados",
"No results found": "No se encontraron resultados",
"No search query generated": "No se generó ninguna consulta de búsqueda",
"No servers detected": "",
"No skills found": "No se encontraron habilidades",
"No source available": "No hay fuente disponible",
"No sources found": "No se han encontrado fuentes",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "Por favor selecciona al menos un usuario para el canal de Mensajes Directos",
"Please wait until all files are uploaded.": "Por favor, espera a que todos los archivos se acaben de subir",
"Port": "Puerto",
"Ports": "",
"Positive attitude": "Actitud Positiva",
"Prefer not to say": "Prefiero no decirlo",
"Prefix ID": "prefijo ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Extraer \"{{searchValue}}\" desde Ollama.com",
"Pull a model from Ollama.com": "Extraer un modelo desde Ollama.com",
"Pull Model": "Extraer Modelo",
"Pyodide file browser": "",
"Query Generation Prompt": "Indicador para la Consulta de Generación",
"Querying": "Consultando",
"Quick Actions": "Acciones Rápida",
@@ -1571,6 +1584,7 @@
"Response splitting": "Particionado de Respuesta",
"Response Watermark": "Marca de Agua en Respuesta",
"Responses": "Respuestas",
"Restart": "",
"Result": "Resultado",
"RESULT": "Resultado",
"Retrieval": "Recuperación",
@@ -1584,6 +1598,7 @@
"Role": "Rol",
"RTL": "RTL",
"Run": "Ejecutar",
"Run All": "",
"Running": "Ejecutando",
"Running...": "Ejecutando...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Ejecuta tareas de incrustración concurrentes para acelerar el procesado. Desactivar si se generan problemas (por limitaciones de los motores de incrustracción en uso)",
@@ -1774,6 +1789,7 @@
"Start a new conversation": "Comenzar una conversación nueva",
"Start of the channel": "Inicio del canal",
"Start Tag": "Etiqueta de Inicio",
"Starting kernel...": "",
"Status": "Estado",
"Status cleared successfully": "Estado limpiado correctamente",
"Status updated successfully": "Estado actualizado correctamente",
@@ -2118,6 +2134,8 @@
"You're now logged in.": "Has iniciado sesión.",
"Your Account": "Tu Cuenta",
"Your account status is currently pending activation.": "Tu cuenta está pendiente de activación.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Tu entera contribución irá directamente al desarrollador del complemento; Open-WebUI no recibe ningún porcentaje. Sin embargo, la plataforma de financiación elegida podría tener sus propias tarifas.",
"Your message text or inputs": "Tu mensaje de texto o entrada",
"Your usage stats have been successfully synced.": "Tu estadistica de uso ha sido sincronizada",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Kas olete kindel, et soovite selle kanali kustutada?",
"Are you sure you want to delete this message?": "Kas olete kindel, et soovite selle sõnumi kustutada?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Kas olete kindel, et soovite kõik arhiveeritud vestlused arhiivist eemaldada?",
"Arena Models": "Areena mudelid",
"Artifacts": "Tekkinud objektid",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Märkide piirang automaattäitmise genereerimise sisendile",
"Chart new frontiers": "Kaardista uusi piire",
"Chat": "Vestlus",
"Chat archived.": "",
"Chat Background Image": "Vestluse taustapilt",
"Chat Bubble UI": "Vestlusmullide kasutajaliides",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Vaikimisi kasutaja roll",
"Defaults": "",
"Delete": "Kustuta",
"Delete {{name}}": "",
"Delete a model": "Kustuta mudel",
"Delete All": "",
"Delete All Chats": "Kustuta kõik vestlused",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Joonista",
"Drop any files here to upload": "Lohistage siia failid üleslaadimiseks",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "nt '30s', '10m'. Kehtivad ajaühikud on 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "Hajuefekt voogteksti jaoks",
"Failed to add file.": "Faili lisamine ebaõnnestus.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "Ebaõnnestus kuni connect kuni {{URL}} OpenAPI tööriist server",
@@ -836,9 +841,11 @@
"Failed to generate title": "Ebaõnnestus kuni generate title",
"Failed to import models": "Ebaõnnestus kuni impordi mudelid",
"Failed to load chat preview": "Ebaõnnestus kuni load vestlus preview",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "Ebaõnnestus kuni load fail content.",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "Ebaõnnestus kuni teisalda vestlus",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Lõikelaua sisu lugemine ebaõnnestus",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "Kaust",
"Folder Background Image": "Kausta taustpilt",
"Folder created successfully": "",
"Folder deleted successfully": "Kaust edukalt kustutatud",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Faili pole valitud",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "No functions found",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "HTML, CSS ega JavaScript sisu ei leitud.",
"No inference engine with management support found": "Järeldusmootorit haldamise toega ei leitud",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Teadmisi ei leitud",
"No memories to clear": "Pole mälestusi, mida kustutada",
@@ -1320,6 +1330,7 @@
"No results": "Tulemusi ei leitud",
"No results found": "Tulemusi ei leitud",
"No search query generated": "Otsingupäringut ei genereeritud",
"No servers detected": "",
"No skills found": "",
"No source available": "Allikas pole saadaval",
"No sources found": "No allikad found",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "Please wait until all failid are uploaded.",
"Port": "Port",
"Ports": "",
"Positive attitude": "Positiivne suhtumine",
"Prefer not to say": "Prefer not kuni say",
"Prefix ID": "Prefiksi ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Tõmba \"{{searchValue}}\" Ollama.com-ist",
"Pull a model from Ollama.com": "Tõmba mudel Ollama.com-ist",
"Pull Model": "Pull Mudel",
"Pyodide file browser": "",
"Query Generation Prompt": "Päringu genereerimise vihje",
"Querying": "Querying",
"Quick Actions": "Quick Actions",
@@ -1571,6 +1584,7 @@
"Response splitting": "Vastuse tükeldamine",
"Response Watermark": "Vastus Watermark",
"Responses": "",
"Restart": "",
"Result": "Tulemus",
"RESULT": "Tulemus",
"Retrieval": "Taastamine",
@@ -1583,6 +1597,7 @@
"Role": "Roll",
"RTL": "RTL",
"Run": "Käivita",
"Run All": "",
"Running": "Töötab",
"Running...": "Töötab...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "Käivita a new conversation",
"Start of the channel": "Kanali algus",
"Start Tag": "Käivita Silt",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Olete nüüd sisse logitud.",
"Your Account": "Your Konto",
"Your account status is currently pending activation.": "Teie konto staatus on praegu ootel aktiveerimist.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Kogu teie toetus läheb otse pistikprogrammi arendajale; Open WebUI ei võta mingit protsenti. Kuid valitud rahastamisplatvormil võivad olla oma tasud.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "",
"Are you sure you want to delete this message?": "",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Ziur zaude artxibatutako txat guztiak desartxibatu nahi dituzula?",
"Arena Models": "Arena Ereduak",
"Artifacts": "Artefaktuak",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "",
"Chart new frontiers": "Esploratu muga berriak",
"Chat": "Txata",
"Chat archived.": "",
"Chat Background Image": "Txataren Atzeko Irudia",
"Chat Bubble UI": "Txat Burbuilen Interfazea",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "Erabiltzaile Rol Lehenetsia",
"Defaults": "",
"Delete": "Ezabatu",
"Delete {{name}}": "",
"Delete a model": "Ezabatu eredu bat",
"Delete All": "",
"Delete All Chats": "Ezabatu Txat Guztiak",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "Marraztu",
"Drop any files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "adib. '30s','10m'. Denbora unitate baliodunak dira 's', 'm', 'h'.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "",
"Failed to add file.": "Huts egin du fitxategia gehitzean.",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "",
@@ -836,9 +841,11 @@
"Failed to generate title": "",
"Failed to import models": "",
"Failed to load chat preview": "",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "Huts egin du arbelaren edukia irakurtzean",
@@ -893,6 +900,7 @@
"Focus Chat Input": "",
"Folder": "",
"Folder Background Image": "",
"Folder created successfully": "",
"Folder deleted successfully": "Karpeta ongi ezabatu da",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "Ez da fitxategirik hautatu",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "Ez da HTML, CSS, edo JavaScript edukirik aurkitu.",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "Ez da ezagutzarik aurkitu",
"No memories to clear": "",
@@ -1320,6 +1330,7 @@
"No results": "Ez da emaitzarik aurkitu",
"No results found": "Ez da emaitzarik aurkitu",
"No search query generated": "Ez da bilaketa kontsultarik sortu",
"No servers detected": "",
"No skills found": "",
"No source available": "Ez dago iturririk eskuragarri",
"No sources found": "",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "",
"Port": "Ataka",
"Ports": "",
"Positive attitude": "Jarrera positiboa",
"Prefer not to say": "",
"Prefix ID": "Aurrizki ID",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "Ekarri \"{{searchValue}}\" Ollama.com-etik",
"Pull a model from Ollama.com": "Ekarri modelo bat Ollama.com-etik",
"Pull Model": "",
"Pyodide file browser": "",
"Query Generation Prompt": "Kontsulta sortzeko prompt-a",
"Querying": "",
"Quick Actions": "",
@@ -1571,6 +1584,7 @@
"Response splitting": "Erantzun banaketa",
"Response Watermark": "",
"Responses": "",
"Restart": "",
"Result": "Emaitza",
"RESULT": "Emaitza",
"Retrieval": "",
@@ -1583,6 +1597,7 @@
"Role": "Rola",
"RTL": "RTL",
"Run": "Exekutatu",
"Run All": "",
"Running": "Exekutatzen",
"Running...": "Exekutatzen...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "",
"Start of the channel": "Kanalaren hasiera",
"Start Tag": "",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "Orain saioa hasita duzu.",
"Your Account": "",
"Your account status is currently pending activation.": "Zure kontuaren egoera aktibazio zain dago.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Zure ekarpen osoa zuzenean plugin garatzaileari joango zaio; Open WebUI-k ez du ehunekorik hartzen. Hala ere, aukeratutako finantzaketa plataformak bere komisioak izan ditzake.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "آیا مطمئن هستید که می\u200cخواهید این کانال را حذف کنید؟",
"Are you sure you want to delete this message?": "آیا مطمئن هستید که می\u200cخواهید این پیام را حذف کنید؟",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "آیا مطمئن هستید که می\u200cخواهید همه گفتگوهای بایگانی شده را از بایگانی خارج کنید؟",
"Arena Models": "مدل\u200cهای آرنا",
"Artifacts": "مصنوعات",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "محدودیت کاراکتر برای ورودی تولید تکمیل خودکار",
"Chart new frontiers": "ترسیم مرزهای جدید",
"Chat": "گفتگو",
"Chat archived.": "",
"Chat Background Image": "تصویر پس\u200cزمینهٔ گفتگو",
"Chat Bubble UI": "رابط کاربری حبابی گفتگو",
"Chat Completions": "",
@@ -485,6 +487,7 @@
"Default User Role": "نقش کاربر پیش فرض",
"Defaults": "",
"Delete": "حذف",
"Delete {{name}}": "",
"Delete a model": "حذف یک مدل",
"Delete All": "",
"Delete All Chats": "حذف همه گفتگوها",
@@ -577,6 +580,7 @@
"Downloading stats...": "",
"Draw": "رسم کردن",
"Drop any files here to upload": "فایل\u200cها را برای آپلود به اینجا بکشید و رها کنید",
"Drop files here": "",
"Drop files here to upload": "",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "به طور مثال '30s','10m'. واحد\u200cهای زمانی معتبر 's', 'm', 'h' هستند.",
@@ -822,6 +826,7 @@
"Fade Effect for Streaming Text": "جلوه محو شدن برای متن جریانی",
"Failed to add file.": "خطا در افزودن پرونده",
"Failed to add members": "",
"Failed to archive chat.": "",
"Failed to attach file": "",
"Failed to clear status": "",
"Failed to connect to {{URL}} OpenAPI tool server": "خطا در اتصال به سرور ابزار OpenAPI {{URL}}",
@@ -836,9 +841,11 @@
"Failed to generate title": "تولید عنوان ناموفق بود",
"Failed to import models": "وارد کردن مدل\u200cها ناموفق بود",
"Failed to load chat preview": "بارگیری پیش\u200cنمایش چت ناموفق بود",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "",
"Failed to load file content.": "بارگیری محتوای فایل ناموفق بود.",
"Failed to load Interface settings": "",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "انتقال چت ناموفق بود",
"Failed to process URL: {{url}}": "",
"Failed to read clipboard contents": "خواندن محتوای کلیپ بورد ناموفق بود",
@@ -893,6 +900,7 @@
"Focus Chat Input": "فوکوس روی ورودی چت",
"Folder": "پوشه",
"Folder Background Image": "تصویر پس\u200cزمینه پوشه",
"Folder created successfully": "",
"Folder deleted successfully": "پوشه با موفقیت حذف شد",
"Folder Max File Count": "",
"Folder name": "",
@@ -1300,11 +1308,13 @@
"No file selected": "فایلی انتخاب نشده است",
"No files found": "",
"No files in this knowledge base.": "",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "هیچ تابعی یافت نشد",
"No groups found": "",
"No history available": "",
"No HTML, CSS, or JavaScript content found.": "محتوای HTML، CSS یا JavaScript یافت نشد.",
"No inference engine with management support found": "موتور استنتاج با پشتیبانی مدیریت یافت نشد",
"No kernel": "",
"No knowledge bases found.": "",
"No knowledge found": "دانشی یافت نشد",
"No memories to clear": "حافظه\u200cای برای پاک کردن وجود ندارد",
@@ -1320,6 +1330,7 @@
"No results": "نتیجه\u200cای یافت نشد",
"No results found": "نتیجه\u200cای یافت نشد",
"No search query generated": "پرسوجوی جستجویی ایجاد نشده است",
"No servers detected": "",
"No skills found": "",
"No source available": "منبعی در دسترس نیست",
"No sources found": "هیچ منبعی یافت نشد",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "",
"Please wait until all files are uploaded.": "لطفاً منتظر بمانید تا همه فایل\u200cها آپلود شوند.",
"Port": "پورت",
"Ports": "",
"Positive attitude": "نظرات مثبت",
"Prefer not to say": "ترجیح می\u200cدهم نگویم",
"Prefix ID": "شناسه پیشوند",
@@ -1504,6 +1516,7 @@
"Pull \"{{searchValue}}\" from Ollama.com": "بازگرداندن \"{{searchValue}}\" از Ollama.com",
"Pull a model from Ollama.com": "دریافت یک مدل از Ollama.com",
"Pull Model": "کشیدن مدل",
"Pyodide file browser": "",
"Query Generation Prompt": "پرامپت تولید کوئری",
"Querying": "در حال پرس\u200cوجو",
"Quick Actions": "اقدامات سریع",
@@ -1571,6 +1584,7 @@
"Response splitting": "تقسیم پاسخ",
"Response Watermark": "واترمارک پاسخ",
"Responses": "",
"Restart": "",
"Result": "نتیجه",
"RESULT": "نتیجه",
"Retrieval": "بازیابی",
@@ -1583,6 +1597,7 @@
"Role": "نقش",
"RTL": "RTL",
"Run": "اجرا",
"Run All": "",
"Running": "در حال اجرا",
"Running...": "در حال اجرا...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "",
@@ -1773,6 +1788,7 @@
"Start a new conversation": "شروع یک مکالمه جدید",
"Start of the channel": "آغاز کانال",
"Start Tag": "تگ شروع",
"Starting kernel...": "",
"Status": "",
"Status cleared successfully": "",
"Status updated successfully": "",
@@ -2117,6 +2133,8 @@
"You're now logged in.": "شما اکنون وارد شده\u200cاید.",
"Your Account": "حساب کاربری شما",
"Your account status is currently pending activation.": "وضعیت حساب شما در حال حاضر در انتظار فعال\u200cسازی است.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "تمام مشارکت شما مستقیماً به توسعه\u200cدهنده افزونه می\u200cرسد؛ Open WebUI هیچ درصدی دریافت نمی\u200cکند. با این حال، پلتفرم تأمین مالی انتخاب شده ممکن است کارمزد خود را داشته باشد.",
"Your message text or inputs": "",
"Your usage stats have been successfully synced.": "",
+136 -118
View File
@@ -14,7 +14,7 @@
"{{COUNT}} extracted lines": "{{COUNT}} poimittua riviä",
"{{COUNT}} files": "{{COUNT}} tiedostoa",
"{{COUNT}} hidden lines": "{{COUNT}} piilotettua riviä",
"{{COUNT}} members": "",
"{{COUNT}} members": "{{COUNT}} jäsentä",
"{{COUNT}} Replies": "{{COUNT}} vastausta",
"{{COUNT}} Rows": "{{COUNT}} riviä",
"{{COUNT}} Sources": "{{COUNT}} lähdettä",
@@ -26,7 +26,7 @@
"{{COUNT}}y_time_ago": "",
"{{LOCALIZED_DATE}} at {{LOCALIZED_TIME}}": "{{LOCALIZED_DATE}} {{LOCALIZED_TIME}}",
"{{model}} download has been canceled": "{{model}} lataus peruttu",
"{{modelName}} profile image": "",
"{{modelName}} profile image": "{{modelName}} profiilikuva",
"{{NAMES}} reacted with {{REACTION}}": "{{NAMES}} reagoi {{REACTION}}",
"{{user}}'s Chats": "{{user}}:n keskustelut",
"{{webUIName}} Backend Required": "{{webUIName}}-backend vaaditaan",
@@ -43,7 +43,7 @@
"Accept Autocomplete Generation\nJump to Prompt Variable": "Hyväksy automaattiset täydennykset\n Siirry kehoitteen muuttujaan",
"Access": "Pääsy",
"Access Control": "Käyttöoikeuksien hallinta",
"Access Grants": "",
"Access Grants": "Käyttöoikeudet",
"Access List": "Pääsylista",
"Accessible to all users": "Käytettävissä kaikille käyttäjille",
"Account": "Tili",
@@ -80,19 +80,19 @@
"Add Reaction": "Lisää reaktio",
"Add tag": "Lisää tagi",
"Add Tag": "Lisää tagi",
"Add Terminal": "",
"Add Terminal Connection": "",
"Add Terminal": "Lisää pääte",
"Add Terminal Connection": "Lisää pääteyhteys",
"Add text content": "Lisää tekstisisältöä",
"Add to favorites": "",
"Add to favorites": "Lisää suosikkeihin",
"Add User": "Lisää käyttäjä",
"Add User Group": "Lisää käyttäjäryhmä",
"Add webpage": "Lisää verkkosivu",
"Add your Open Terminal URL and API key in Settings → Integrations.": "",
"Add your Open Terminal URL and API key in Settings → Integrations.": "Lisää Open Terminal verkko-osoite ja API-avain Asetukset → Integraatiot",
"Additional Config": "Lisäasetukset",
"Additional configuration options for marker. This should be a JSON string with key-value pairs. For example, '{\"key\": \"value\"}'. Supported keys include: disable_links, keep_pageheader_in_output, keep_pagefooter_in_output, filter_blank_pages, drop_repeated_text, layout_coverage_threshold, merge_threshold, height_tolerance, gap_threshold, image_threshold, min_line_length, level_count, default_level": "",
"Additional feedback comments": "",
"Additional feedback comments": "Lisäpalautteen kommentit",
"Additional Parameters": "Lisäparametrit",
"Adds filenames, titles, sections, and snippets into the BM25 text to improve lexical recall.": "",
"Adds filenames, titles, sections, and snippets into the BM25 text to improve lexical recall.": "Lisää tiedostonimiä, otsikoita, osioita ja katkelmia BM25-tekstiin leksikaalisen muistamisen parantamiseksi.",
"Adjusting these settings will apply changes universally to all users.": "Näiden asetusten muokkaaminen vaikuttaa kaikkiin käyttäjiin.",
"admin": "hallinta",
"Admin": "Ylläpito",
@@ -100,18 +100,18 @@
"Admin Panel": "Ylläpitopaneeli",
"Admin Settings": "Ylläpitoasetukset",
"Admins have access to all tools at all times; users need tools assigned per model in the workspace.": "Ylläpitäjillä on pääsy kaikkiin työkaluihin koko ajan; käyttäjät tarvitsevat työkaluja mallille määritettynä työtilassa.",
"Advanced": "",
"Advanced": "Edistynyt",
"Advanced Parameters": "Edistyneet parametrit",
"Advanced parameters for MinerU parsing (enable_ocr, enable_formula, enable_table, language, model_version, page_ranges)": "",
"Advanced parameters for MinerU parsing (enable_ocr, enable_formula, enable_table, language, model_version, page_ranges)": "Edistyneet parametrit MinerU-jäsennykseen (enable_ocr, enable_formula, enable_table, language, model_version, page_ranges)",
"Advanced Params": "Edistyneet parametrit",
"After updating or changing the embedding model, you must reindex the knowledge base for the changes to take effect. You can do this using the \"Reindex\" button below.": "Upotusmallin päivittämisen, tai vaihtamisen jälkeen sinun tulee indeksoida tietämys uudelleen ottaaksesi muutokset käyttöön. Voit tehdä tämän alla olevasta \"Indeksoi uudelleen\" napista.",
"AI": "AI",
"All": "Kaikki",
"All chats have been unarchived.": "Kaikki keskustelut poistettu arkistosta.",
"All models are now hidden": "",
"All models are now visible": "",
"All models are now hidden": "Kaikki mallit ovat nyt piilotettu",
"All models are now visible": "Kaikki mallit ovat nyt näkyvissä",
"All models deleted successfully": "Kaikki mallit poistettu onnistuneesti",
"All time": "",
"All time": "Koko ajan",
"All Users": "Kaikki käyttäjät",
"Allow Call": "Salli puhelut",
"Allow Chat Controls": "Salli keskustelujen hallinta",
@@ -129,13 +129,13 @@
"Allow non-local voices": "Salli ei-paikalliset äänet",
"Allow Rate Response": "Salli viestien arviointi",
"Allow Regenerate Response": "Salli uudelleen regenerointi",
"Allow Sharing With Users": "",
"Allow Sharing With Users": "Salli jakaminen käyttäjien kesken",
"Allow Speech to Text": "Salli puhe tekstiksi",
"Allow Temporary Chat": "Salli väliaikaiset keskustelut",
"Allow Text to Speech": "Salli teksti puheeksi",
"Allow User Location": "Salli käyttäjän sijainti",
"Allow Voice Interruption in Call": "Salli äänen keskeytys puhelussa",
"Allow Web Upload": "",
"Allow Web Upload": "Salli verkko lataukset",
"Allowed Endpoints": "Hyväksytyt päätepisteet",
"Allowed File Extensions": "Hyväksytyt tiedostomuodot",
"Allowed file extensions for upload. Separate multiple extensions with commas. Leave empty for all file types.": "Hyväksyty tiedostomuodot. Erittele tiedostomuodot pilkulla. Jätä tyhjäksi kaikille tiedostomuodoille.",
@@ -183,6 +183,7 @@
"Are you sure you want to delete this channel?": "Haluatko varmasti poistaa tämän kanavan?",
"Are you sure you want to delete this message?": "Haluatko varmasti poistaa tämän viestin?",
"Are you sure you want to delete this version? Child versions will be relinked to this version's parent.": "Haluatko varamsti poistaa tämän version? Alaversiot linkitetään uudelleen tämän version ylätason versioon.",
"Are you sure you want to delete this?": "",
"Are you sure you want to unarchive all archived chats?": "Haluatko varmasti purkaa kaikkien arkistoitujen keskustelujen arkistoinnin?",
"Arena Models": "Arena-mallit",
"Artifacts": "Artefaktit",
@@ -215,7 +216,7 @@
"AUTOMATIC1111 Base URL is required.": "AUTOMATIC1111 verkko-osoite vaaditaan.",
"Automatically inject system tools in native function calling mode (e.g., timestamps, memory, chat history, notes, etc.)": "Lisää järjestelmätyökaluja automaattisesti natiivissa toimintokutsutilassa (esim. aikaleimat, muisti, keskusteluhistoria, muistiinpanot jne.)",
"Available list": "Käytettävissä oleva luettelo",
"Available models": "",
"Available models": "Käytettävissä olevat mallit",
"Available Tools": "Käytettävissä olevat työkalut",
"available users": "käytettävissä olevat käyttäjät",
"available!": "saatavilla!",
@@ -260,16 +261,16 @@
"Call feature is not supported when using Web STT engine": "Puhelutoimintoa ei tueta käytettäessä web-puheentunnistusmoottoria",
"Camera": "Kamera",
"Cancel": "Peruuta",
"Cancel download of {{model}}": "",
"Cancel download of {{model}}": "Keskeytä {{model}} lataus",
"Cannot create an empty note.": "Tyhjää muistiinpanoa ei voi luoda.",
"Cannot delete the production version": "Tuotantoversiota ei voi poistaa",
"Capabilities": "Ominaisuudet",
"Capture": "Näyttökuva",
"Capture Audio": "Kaappaa ääntä",
"Certificate Path": "Varmennepolku",
"Change folder icon": "",
"Change folder icon": "Vaihda kansion kuvake",
"Change Password": "Vaihda salasana",
"Change User Role": "",
"Change User Role": "Vaihda käyttäjän rooli",
"Channel": "Kanava",
"Channel deleted successfully": "Kanavan poisto onnistui",
"Channel Name": "Kanavan nimi",
@@ -282,6 +283,7 @@
"Character limit for autocomplete generation input": "Automaattisen täydennyksen syötteen merkkiraja",
"Chart new frontiers": "Kartoita uusia rajapintoja",
"Chat": "Keskustelu",
"Chat archived.": "",
"Chat Background Image": "Keskustelun taustakuva",
"Chat Bubble UI": "Keskustelu-pallojen käyttöliittymä",
"Chat Completions": "",
@@ -309,7 +311,7 @@
"Citations": "Lähdeviitteet",
"Clear memory": "Tyhjennä muisti",
"Clear Memory": "Tyhjennä Muisti",
"Clear search": "",
"Clear search": "Tyhjennä haku",
"Clear status": "Tyhjennä tila",
"click here": "klikkaa tästä",
"Click here for filter guides.": "Katso suodatinohjeita klikkaamalla tästä.",
@@ -331,10 +333,10 @@
"Clone of {{TITLE}}": "{{TITLE}} klooni",
"Close": "Sulje",
"Close Banner": "Sulje banneri",
"Close chat controls": "",
"Close citation modal": "",
"Close chat controls": "Sulje keskustelun ohjaimet",
"Close citation modal": "Sulje sitaatti modaali",
"Close Configure Connection Modal": "Sulje yhteyksien modaali",
"Close feedback": "",
"Close feedback": "Sulje palaute",
"Close modal": "Sulje modaali",
"Close Modal": "Sulje modaali",
"Close settings modal": "Sulje asetus modaali",
@@ -379,9 +381,9 @@
"Confirm your action": "Vahvista toimintasi",
"Confirm your new password": "Vahvista uusi salasanasi",
"Confirm Your Password": "Vahvista salasanasi",
"Connect to an AI provider to start chatting": "",
"Connect to Open Terminal instances to browse files and use them as always-on tools. Only one can be active at a time.": "",
"Connect to Open Terminal instances. All users will have access to file browsing and terminal tools through these servers.": "",
"Connect to an AI provider to start chatting": "Yhdistä tekoälypalveluntarjoajaan aloittaaksesi keskustelut",
"Connect to Open Terminal instances to browse files and use them as always-on tools. Only one can be active at a time.": "Yhdistä Open Terminal -instansseihin selataksesi tiedostoja ja käyttääksesi niitä aina päällä olevina työkaluina. Vain yksi voi olla aktiivinen kerrallaan.",
"Connect to Open Terminal instances. All users will have access to file browsing and terminal tools through these servers.": "Yhdistä Open Terminal -instansseihin. Kaikilla käyttäjillä on pääsy tiedostojen selaamiseen ja päätetyökaluihin näiden palvelimien kautta.",
"Connect to your own OpenAI compatible API endpoints.": "Yhdistä omat OpenAI yhteensopivat API päätepisteet.",
"Connect to your own OpenAPI compatible external tool servers.": "Yhdistä omat ulkopuoliset OpenAPI yhteensopivat työkalu palvelimet.",
"Connection failed": "Yhteys epäonnistui",
@@ -409,8 +411,8 @@
"Copied shared chat URL to clipboard!": "Jaettu keskustelulinkki kopioitu leikepöydälle!",
"Copied to clipboard": "Kopioitu leikepöydälle",
"Copy": "Kopioi",
"Copy API Key": "",
"Copy content": "",
"Copy API Key": "Kopioi API-avain",
"Copy content": "Kopioi sisältö",
"Copy Formatted Text": "Kopioi muotoiltu teksti",
"Copy Last Code Block": "Kopioi viimeisin koodilohko",
"Copy Last Response": "Kopioi viimeisin vastaus",
@@ -419,11 +421,11 @@
"Copy Prompt": "Kopioi kehoite",
"Copy Share Link": "Kopioi jakolinkki",
"Copy to clipboard": "Kopioi leikepöydälle",
"Copy Token": "",
"Copy Token": "Kopioi tokeni",
"Copy URL": "Kopioi linkki",
"Copying to clipboard was successful!": "Kopioiminen leikepöydälle onnistui!",
"CORS must be properly configured by the provider to allow requests from Open WebUI.": "CORS täytyy olla konfiguroitu palveluntarjoajan toimesta pyyntöjen hyväksymiseksi Open WebUI:sta.",
"Could not read file.": "",
"Could not read file.": "Tiedostoa ei voitu lukea.",
"Create": "Luo",
"Create a knowledge base": "Luo tietokanta",
"Create a model": "Luo malli",
@@ -451,17 +453,17 @@
"Current Password": "Nykyinen salasana",
"Custom": "Mukautettu",
"Custom description enabled": "Muokautetut kuvaukset käytössä",
"Custom Gender": "",
"Custom Gender": "Muu sukupuoli",
"Custom Parameter Name": "Mukautetun parametrin nimi",
"Custom Parameter Value": "Mukautetun parametrin arvo",
"Daily Messages": "",
"Daily Messages": "Päivittäiset viestit",
"Danger Zone": "Vaara-alue",
"Dark": "Tumma",
"Data Controls": "Datan hallinta",
"Database": "Tietokanta",
"Datalab Marker API": "Datalab Marker API",
"DD/MM/YYYY": "DD/MM/YYYY",
"DDGS Backend": "",
"DDGS Backend": "DDGS-taustajärjestelmä",
"December": "joulukuu",
"Decrease UI Scale": "Pienennä käyttöliittymän kokoa",
"Deepgram": "Deepgram",
@@ -483,8 +485,9 @@
"Default to ALL": "Oletus KAIKKI",
"Default to segmented retrieval for focused and relevant content extraction, this is recommended for most cases.": "Segmentoitu haku on oletuksena kohdennettua ja relevanttia sisällön poimimista varten. Tätä suositellaan useimmissa tapauksissa.",
"Default User Role": "Oletuskäyttäjärooli",
"Defaults": "",
"Defaults": "Oletukset",
"Delete": "Poista",
"Delete {{name}}": "",
"Delete a model": "Poista malli",
"Delete All": "Poista kaikki",
"Delete All Chats": "Poista kaikki keskustelut",
@@ -577,10 +580,11 @@
"Downloading stats...": "Ladataa tilastoja...",
"Draw": "Piirros",
"Drop any files here to upload": "Pudota tähän ladattavat tiedostot",
"Drop files here to upload": "",
"Drop files here": "",
"Drop files here to upload": "Pudota tiedostot tähän ladataksesi",
"DuckDuckGo": "",
"e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "esim. '30s', '10m'. Kelpoiset aikayksiköt ovat 's', 'm', 'h'.",
"e.g. 'low', 'medium', 'high'": "",
"e.g. 'low', 'medium', 'high'": "esim. 'low', 'medium', 'high'",
"e.g. \"json\" or a JSON schema": "esim. \"json\" tai JSON kaava",
"e.g. 60": "esim. 60",
"e.g. A filter to remove profanity from text": "esim. suodatin, joka poistaa kirosanoja tekstistä",
@@ -612,7 +616,7 @@
"Edit Last Message": "Muokkaa viimeisintä viestiä",
"Edit Memory": "Muokkaa muistia",
"Edit Prompt": "Muokkaa kehoitetta",
"Edit Terminal Connection": "",
"Edit Terminal Connection": "Muokkaa pääteyhteyttä",
"Edit User": "Muokkaa käyttäjää",
"Edit User Group": "Muokkaa käyttäjäryhmää",
"Edit workflow.json content": "Muokkaa workflow.json sisältöä",
@@ -620,13 +624,13 @@
"Edited": "Muokattu",
"Editing": "Muokataan",
"Eject": "Poista",
"Eject model": "",
"Eject model": "Irroita malli",
"ElevenLabs": "ElevenLabs",
"Email": "Sähköposti",
"Embark on adventures": "Lähde seikkailuille",
"Embedding": "Upotus",
"Embedding Batch Size": "Upotuksen eräkoko",
"Embedding Concurrent Requests": "",
"Embedding Concurrent Requests": "Samanaikaiset upotuspyynnöt",
"Embedding Model": "Upotusmalli",
"Embedding Model Engine": "Upotusmallin moottori",
"Enable All": "Ota kaikki käyttöön",
@@ -735,7 +739,7 @@
"Enter server host": "Kirjoita palvelimen isäntänimi",
"Enter server label": "Kirjoita palvelimen tunniste",
"Enter server port": "Kirjoita palvelimen portti",
"Enter skill instructions in markdown...": "",
"Enter skill instructions in markdown...": "Kirjoita taito-ohjeet markdownina...",
"Enter Sougou Search API sID": "Kirjoita Sougou Search API sID",
"Enter Sougou Search API SK": "Kirjoita Sougou Search API SK",
"Enter stop sequence": "Kirjoita lopetussekvenssi",
@@ -760,7 +764,7 @@
"Enter Yacy Username": "Kirjoita Yacy käyttäjänimi",
"Enter Yandex Web Search API Key": "Kirjoita Yandex Web Search API-avain",
"Enter Yandex Web Search URL": "Kirjoita Yandex Web Search verkko-osoite",
"Enter You.com API Key": "",
"Enter You.com API Key": "Kirjoita You.com API-avain",
"Enter your code here...": "Kirjoita koodisi tähän...",
"Enter your current password": "Kirjoita nykyinen salasanasi",
"Enter Your Email": "Kirjoita sähköpostiosoitteesi",
@@ -822,10 +826,11 @@
"Fade Effect for Streaming Text": "Häivytystehoste suoratoistetulle tekstille",
"Failed to add file.": "Tiedoston lisääminen epäonnistui.",
"Failed to add members": "Jäsenten lisääminen epäonnistui",
"Failed to attach file": "",
"Failed to archive chat.": "",
"Failed to attach file": "Tiedoston liittäminen epäonnistui",
"Failed to clear status": "Tilan tyhjentäminen epäonnistui",
"Failed to connect to {{URL}} OpenAPI tool server": "Yhdistäminen {{URL}} OpenAPI työkalu palvelimeen epäonnistui",
"Failed to connect to {{URL}} terminal server": "",
"Failed to connect to {{URL}} terminal server": "Yhdistäminen {{URL}} päätepalvelimeen epäonnistui",
"Failed to copy link": "Linkin kopiointi epäonnistui",
"Failed to create API Key.": "API-avaimen luonti epäonnistui.",
"Failed to delete note": "Muistiinpanon poistaminen epäonnistui",
@@ -836,9 +841,11 @@
"Failed to generate title": "Otsikon luonti epäonnistui",
"Failed to import models": "Mallien tuonti epäonnistui",
"Failed to load chat preview": "Keskustelun esikatselun lataaminen epäonnistui",
"Failed to load DOCX file. Please try downloading it instead.": "",
"Failed to load Excel/CSV file. Please try downloading it instead.": "Excel/CSV tiedoston lataaminen epäonnistui. Yritä ladata se sen sijaan.",
"Failed to load file content.": "Tiedoston sisällön lataaminen epäonnistui.",
"Failed to load Interface settings": "",
"Failed to load Interface settings": "Käyttöliittymän asetusten lataaminen epäonnistui",
"Failed to load PPTX file. Please try downloading it instead.": "",
"Failed to move chat": "Keskustelun siirto epäonnistui",
"Failed to process URL: {{url}}": "Verkko-osoitteen käsittely epäonnistui: {{url}}",
"Failed to read clipboard contents": "Leikepöydän sisällön lukeminen epäonnistui",
@@ -848,7 +855,7 @@
"Failed to save connections": "Yhteyksien tallentaminen epäonnistui",
"Failed to save conversation": "Keskustelun tallentaminen epäonnistui",
"Failed to save models configuration": "Mallien määrityksen tallentaminen epäonnistui",
"Failed to save terminal servers": "",
"Failed to save terminal servers": "Päätepalvelimien tallennus epäonnistui",
"Failed to unshare chat.": "Jaon lopettaminen epäonnistui.",
"Failed to update settings": "Asetusten päivittäminen epäonnistui",
"Failed to update status": "Tilan päivittäminen epäonnistui",
@@ -865,14 +872,14 @@
"Female": "Nainen",
"File": "Tiedosto",
"File added successfully.": "Tiedosto lisätty onnistuneesti.",
"File attached to chat": "",
"File browser": "",
"File content": "",
"File attached to chat": "Tiedosto liitety keskusteluun",
"File browser": "Tiedostoselain",
"File content": "Tiedston sisältö",
"File content updated successfully.": "Tiedoston sisältö päivitetty onnistuneesti.",
"File Context": "Tiedoston konteksti",
"File deleted successfully.": "Tiedosto poistettiin onnistuneesti.",
"File Mode": "Tiedostotila",
"File name": "",
"File name": "Tiedostonimi",
"File not found.": "Tiedostoa ei löytynyt.",
"File removed successfully.": "Tiedosto poistettu onnistuneesti.",
"File size should not exceed {{maxSize}} MB.": "Tiedoston koko ei saa ylittää {{maxSize}} MB.",
@@ -893,19 +900,20 @@
"Focus Chat Input": "Kohdista keskustelu tekstikenttään",
"Folder": "Kansio",
"Folder Background Image": "Kansion taustakuva",
"Folder created successfully": "",
"Folder deleted successfully": "Kansio poistettu onnistuneesti",
"Folder Max File Count": "Kansion tiedostojen enimmäismäärä",
"Folder name": "",
"Folder name": "Kansion nimi",
"Folder Name": "Kansion nimi",
"Folder name cannot be empty.": "Kansion nimi ei voi olla tyhjä.",
"Folder name updated successfully": "Kansion nimi päivitetty onnistuneesti",
"Folder options": "",
"Folder options": "Kansion asetukset",
"Folder updated successfully": "Kansio päivitettiin onnistuneesti",
"Folders": "Kansiot",
"Follow up": "Jatkokysymykset",
"Follow Up Generation": "Jatkokysymysten luonti",
"Follow Up Generation Prompt": "Jatkokysymysten luonti kehoite",
"Follow up: {{question}}": "",
"Follow up: {{question}}": "Jatkokysymys: {{question}}",
"Follow-Up Auto-Generation": "Jatkokysymysten automaattinen luonti",
"Followed instructions perfectly": "Noudatti ohjeita täydellisesti",
"for placeholders": "",
@@ -984,7 +992,7 @@
"Hex Color - Leave empty for default color": "Heksadesimaaliväri - Jätä tyhjäksi, jos haluat oletusvärin",
"Hidden": "Piilossa",
"Hide": "Piilota",
"Hide All": "",
"Hide All": "Piilota kaikki",
"Hide from Sidebar": "Piilota sivupalkista",
"Hide Model": "Piilota malli",
"High": "Korkea",
@@ -992,7 +1000,7 @@
"History": "Historia",
"Home": "Koti",
"Host": "Palvelin",
"Hourly Messages": "",
"Hourly Messages": "Tuntikohtaiset viestit",
"How can I help you today?": "Miten voin auttaa sinua tänään?",
"How would you rate this response?": "Kuinka arvioisit tätä vastausta?",
"HTML": "HTML",
@@ -1103,22 +1111,22 @@
"Landing Page Mode": "Etusivun tila",
"Language": "Kieli",
"Language Locales": "Kielialueet",
"Last 24 hours": "",
"Last 30 days": "",
"Last 7 days": "",
"Last 90 days": "",
"Last 24 hours": "Viimeiset 24 tuntia",
"Last 30 days": "Viimeiset 30 päivää",
"Last 7 days": "Viimeiset 7 päivää",
"Last 90 days": "Viimeiset 90 päivää",
"Last Active": "Viimeksi aktiivinen",
"Last Modified": "Viimeksi muokattu",
"Last reply": "Viimeksi vastattu",
"LDAP": "LDAP",
"LDAP server updated": "LDAP-palvelin päivitetty",
"Leaderboard": "Tulosluettelo",
"Learn more": "",
"Learn more": "Lue lisää",
"Learn More": "Lue lisää",
"Learn more about Open Terminal": "",
"Learn more about Open Terminal": "Lue lisää Open Terminal",
"Learn more about OpenAPI tool servers.": "Lue lisää OpenAPI työkalu palvelimista.",
"Learn more about Voxtral transcription.": "Lue lisää Voxtral transkriptio:sta",
"Leave a public review for {{modelName}}": "",
"Leave a public review for {{modelName}}": "Jätä julkinen arvostelu {{modelName}}",
"Leave empty for no compression": "Jätä tyhjäksi, jos et halua pakkausta",
"Leave empty for unlimited": "Rajaton tyhjänä",
"Leave empty to include all models from \"{{url}}\" endpoint": "Jätä tyhjäksi sisällyttääksesi \"{{url}}\" päätepisteen mallit",
@@ -1126,7 +1134,7 @@
"Leave empty to include all models from \"{{url}}/models\" endpoint": "Jätä tyhjäksi sisällyttääksesi \"{{url}}/models\" päätepisteen mallit",
"Leave empty to include all models or select specific models": "Jätä tyhjäksi, jos haluat sisällyttää kaikki mallit tai valitse tietyt mallit",
"Leave empty to use first admin user": "Jätä tyhjäksi käyttääksesi ensimmäistä ylläpitäjää",
"Leave empty to use the default config, or enter a valid json (see https://yandex.cloud/en/docs/search-api/api-ref/WebSearch/search#yandex.cloud.searchapi.v2.WebSearchRequest)": "",
"Leave empty to use the default config, or enter a valid json (see https://yandex.cloud/en/docs/search-api/api-ref/WebSearch/search#yandex.cloud.searchapi.v2.WebSearchRequest)": "Jätä tyhjäksi käyttääksesi oletuskokoonpanoa tai anna kelvollinen JSON-tiedosto (katso https://yandex.cloud/en/docs/search-api/api-ref/WebSearch/search#yandex.cloud.searchapi.v2.WebSearchRequest)",
"Leave empty to use the default model (voxtral-mini-latest).": "Jätä tyhjäks käyttääksesi oletusmallia (voxtral-mini-latest)",
"Leave empty to use the default prompt, or enter a custom prompt": "Jätä tyhjäksi käyttääksesi oletuskehotetta tai kirjoita mukautettu kehote",
"Leave model field empty to use the default model.": "Jätä malli kenttä tyhjäksi käyttääksesi oletus mallia.",
@@ -1136,7 +1144,7 @@
"Lift List": "Nostolista",
"Light": "Vaalea",
"Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).": "Rajoita samanaikaisia hakukyselyitä. 0 = rajoittamaton (oletus). Aseta arvoon 1 peräkkäistä suoritusta varten (suositellaan API-rajapinnoille, joilla on tiukat nopeusrajoitukset, kuten Brave-ilmaistaso).",
"Limits the number of concurrent embedding requests. Set to 0 for unlimited.": "",
"Limits the number of concurrent embedding requests. Set to 0 for unlimited.": "Rajoittaa samanaikaisten upotuspyyntöjen määrää. Arvolla 0 ei rajoituksia.",
"List": "Lista",
"Listening...": "Kuuntelee...",
"Live": "Live",
@@ -1157,7 +1165,7 @@
"Make sure to export a workflow.json file as API format from ComfyUI.": "Muista viedä workflow.json-tiedosto API-muodossa ComfyUI:sta.",
"Male": "Mies",
"Manage": "Hallitse",
"Manage Connections": "",
"Manage Connections": "Hallitse yhteyksiä",
"Manage Direct Connections": "Hallitse suoria yhteyksiä",
"Manage Files": "Hallitse tiedostoja",
"Manage Models": "Hallitse malleja",
@@ -1222,7 +1230,7 @@
"Model can execute code and perform calculations": "Malli voi suorittaa koodia ja laskelmia",
"Model can generate images based on text prompts": "Malli voi luoda kuvia tekstikehotteiden perusteella",
"Model can search the web for information": "Malli voi hakea tietoa verkosta",
"Model Capabilities": "",
"Model Capabilities": "Mallin ominaisuudet",
"Model created successfully!": "Malli luotu onnistuneesti!",
"Model filesystem path detected. Model shortname is required for update, cannot continue.": "Mallin tiedostojärjestelmäpolku havaittu. Mallin lyhytnimi vaaditaan päivitykseen, ei voida jatkaa.",
"Model Filtering": "Mallin suodatus",
@@ -1235,7 +1243,7 @@
"Model names and usage frequency": "Mallien nimet ja käyttötiheys",
"Model not found": "Mallia ei löytynyt",
"Model not selected": "Mallia ei ole valittu",
"Model Parameters": "",
"Model Parameters": "Mallin parametrit",
"Model Params": "Mallin parametrit",
"Model Permissions": "Mallin käyttöoikeudet",
"Model responses or outputs": "Mallin vastaukset tai tuotokset",
@@ -1257,8 +1265,8 @@
"More options": "Lisää vaihtoehtoja",
"More Options": "Lisää vaihtoehtoja",
"Move": "Siirrä",
"Moved {{name}}": "",
"My Terminal": "",
"Moved {{name}}": "Siirretty {{name}}",
"My Terminal": "Minun pääte",
"Name": "Nimi",
"Name and ID are required, please fill them out": "Nimi ja ID vaaditaan, täytä puuttuvat kentät",
"Name your knowledge base": "Anna tietokannalle nimi",
@@ -1266,10 +1274,10 @@
"New": "Uusi",
"New Button": "Uusi painike",
"New Chat": "Uusi keskustelu",
"New File": "",
"New File": "Uusi tiedosto",
"New Folder": "Uusi kansio",
"New Function": "Uusi toiminto",
"New Group": "",
"New Group": "Uusi ryhmä",
"New Knowledge": "Uutta tietoa",
"New Model": "Uusi malli",
"New Note": "Uusi muistiinpano",
@@ -1277,7 +1285,7 @@
"New Prompt": "Uusi kehoite",
"New Skill": "Uusi taito",
"New Temporary Chat": "Uusi väliaikainen keskustelu",
"New Terminal": "",
"New Terminal": "Uusi pääte",
"New Tool": "Uusi työkalu",
"New Webhook": "Uusi Webhook",
"new-channel": "uusi-kanava",
@@ -1300,16 +1308,18 @@
"No file selected": "Tiedostoa ei ole valittu",
"No files found": "Tiedostoja ei löytynyt",
"No files in this knowledge base.": "Tässä tietokannassa ei ole tiedostoja.",
"No files yet. Upload files or run Python code to create them.": "",
"No functions found": "Funktioita ei löytynyt",
"No groups found": "",
"No groups found": "Ryhmiä ei löytynyt",
"No history available": "Historiaa ei saatavilla",
"No HTML, CSS, or JavaScript content found.": "HTML-, CSS- tai JavaScript-sisältöä ei löytynyt.",
"No inference engine with management support found": "",
"No kernel": "",
"No knowledge bases found.": "Tietokantoja ei löytynyt.",
"No knowledge found": "Tietoa ei löytynyt",
"No memories to clear": "Ei muistia tyhjennettäväksi",
"No model IDs": "Ei mallitunnuksia",
"No models available": "",
"No models available": "Malleja ei saatavilla",
"No models found": "Malleja ei löytynyt",
"No models selected": "Malleja ei ole valittu",
"No Notes": "Ei muistiinpanoja",
@@ -1320,13 +1330,14 @@
"No results": "Ei tuloksia",
"No results found": "Ei tuloksia",
"No search query generated": "Hakukyselyä ei luotu",
"No servers detected": "",
"No skills found": "Taitoja ei löytynyt",
"No source available": "Lähdettä ei saatavilla",
"No sources found": "Lähteitä ei löytynyt",
"No suggestion prompts": "Ei ehdotettuja promptteja",
"No Terminal connection configured.": "",
"No terminal connections configured.": "",
"No tool server connections configured.": "",
"No Terminal connection configured.": "Ei pääteyhteyttä määritettynä.",
"No terminal connections configured.": "Ei pääteyhteyksiä määritettynä.",
"No tool server connections configured.": "Työkalupalvelinyhteyksiä ei ole määritetty.",
"No tools found": "Työkaluja ei löytynyt",
"No users were found.": "Käyttäjiä ei löytynyt.",
"No valves": "Ei venttiileitä",
@@ -1385,7 +1396,7 @@
"Open Model Selector": "Avaa mallinvalitsin",
"Open Settings": "Avaa asetukset",
"Open Sidebar": "Avaa sivupalkki",
"Open Terminal": "",
"Open Terminal": "Avaa pääte",
"Open User Profile Menu": "Avaa käyttäjäprofiili ikkuna",
"Open WebUI can use tools provided by any OpenAPI server.": "Open WebUI voi käyttää minkä tahansa OpenAPI-palvelimen tarjoamia työkaluja.",
"Open WebUI uses faster-whisper internally.": "Open WebUI käyttää faster-whisperia sisäisesti.",
@@ -1415,7 +1426,7 @@
"Overview": "Yleiskatsaus",
"page": "sivu",
"Page": "Sivu",
"Page mode creates one document per page. Single mode combines all pages into one document for better chunking across page boundaries.": "",
"Page mode creates one document per page. Single mode combines all pages into one document for better chunking across page boundaries.": "Sivutila luo yhden dokumentin sivua kohden. Yksittäistila yhdistää kaikki sivut yhdeksi dokumentiksi, mikä parantaa paloittelua sivurajojen yli.",
"Paginate": "Sivutus",
"Parameters": "Parametrit",
"Parent message not found": "Ylätason viestiä ei löytynyt",
@@ -1442,7 +1453,7 @@
"Pin": "Kiinnitä",
"Pinned": "Kiinnitetty",
"Pinned Messages": "Kiinnitetyt viestit",
"Pinned Models": "",
"Pinned Models": "Kiinnitetyt mallit",
"Pioneer insights": "Pioneerin oivalluksia",
"Pipe": "Putki",
"Pipeline deleted successfully": "Putki poistettu onnistuneesti",
@@ -1475,6 +1486,7 @@
"Please select at least one user for Direct Message channel.": "Valitse vähintään yksi käyttäjä suoraviestikanavalle.",
"Please wait until all files are uploaded.": "Odota kunnes kaikki tiedostot ovat ladattu.",
"Port": "Portti",
"Ports": "",
"Positive attitude": "Positiivinen asenne",
"Prefer not to say": "En halua sanoa",
"Prefix ID": "Etuliite-ID",
@@ -1492,23 +1504,24 @@
"Prompt Autocompletion": "Kehotteen automaattinen täydennys",
"Prompt Content": "Kehotteen sisältö",
"Prompt created successfully": "Kehote luotu onnistuneesti",
"Prompt Name": "Kehoiteen nimi",
"Prompt Suggestions": "",
"Prompt Name": "Kehoteen nimi",
"Prompt Suggestions": "Kehotusehdotukset",
"Prompt updated successfully": "Kehote päivitetty onnistuneesti",
"Prompts": "Kehotteet",
"Prompts Access": "Kehoitteiden käyttöoikeudet",
"Prompts Public Sharing": "Kehoitteiden julkinen jakaminen",
"Prompts Sharing": "Kehoitteiden jako",
"Prompts Access": "Kehotteiden käyttöoikeudet",
"Prompts Public Sharing": "Kehotteiden julkinen jakaminen",
"Prompts Sharing": "Kehotteiden jako",
"Provider Type": "Tarjoajan tyyppi",
"Public": "Julkinen",
"Pull \"{{searchValue}}\" from Ollama.com": "Lataa \"{{searchValue}}\" Ollama.comista",
"Pull a model from Ollama.com": "Lataa malli Ollama.comista",
"Pull Model": "Lataa malli",
"Pyodide file browser": "",
"Query Generation Prompt": "Kyselytulosten luontikehote",
"Querying": "Kysely",
"Quick Actions": "Pikatoiminnot",
"RAG Template": "RAG-kehote",
"Rate {{rating}} out of 10": "",
"Rate {{rating}} out of 10": "Arvostele {{rating}}/10",
"Rating": "Arviointi",
"Re-rank models by topic similarity": "Uudelleenjärjestä mallit aiheyhteyden mukaan",
"Read": "Lue",
@@ -1525,7 +1538,7 @@
"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ähentää hölynpölyn tuottamisen todennäköisyyttä. Korkeampi arvo (esim. 100) antaa monipuolisempia vastauksia, kun taas matalampi arvo (esim. 10) on varovaisempi.",
"Refer to yourself as \"User\" (e.g., \"User is learning Spanish\")": "Viittaa itseen \"Käyttäjänä\" (esim. \"Käyttäjä opiskelee espanjaa\")",
"Reference Chats": "Liitä keskustelu",
"Refresh": "",
"Refresh": "Päivitä",
"Refused when it shouldn't have": "Kieltäytyi, vaikka ei olisi pitänyt",
"Regenerate": "Regeneroi",
"Regenerate Menu": "Regenerointi ikkuna",
@@ -1544,10 +1557,10 @@
"Remember Dismissal": "Muista sulkeminen",
"Remove": "Poista",
"Remove {{MODELID}} from list.": "Poista {{MODELID}} listalta",
"Remove action": "",
"Remove action": "Poista toiminto",
"Remove file": "Poista tiedosto",
"Remove File": "Poista tiedosto",
"Remove from favorites": "",
"Remove from favorites": "Poista suosikeista",
"Remove image": "Poista kuva",
"Remove Model": "Poista malli",
"Rename": "Nimeä uudelleen",
@@ -1571,6 +1584,7 @@
"Response splitting": "Vastauksen jakaminen",
"Response Watermark": "Vastauksen vesileima",
"Responses": "",
"Restart": "",
"Result": "Tulos",
"RESULT": "Tulos",
"Retrieval": "Haku",
@@ -1583,6 +1597,7 @@
"Role": "Rooli",
"RTL": "RTL",
"Run": "Suorita",
"Run All": "",
"Running": "Käynnissä",
"Running...": "Käynnissä...",
"Runs embedding tasks concurrently to speed up processing. Turn off if rate limits become an issue.": "Suorittaa upotustehtäviä samanaikaisesti käsittelyn nopeuttamiseksi. Poista käytöstä, jos kutsurajoituksesta tulee ongelma.",
@@ -1611,7 +1626,7 @@
"search for shared chats": "Hae jaetuista keskusteluista",
"search for tags": "hae tageja",
"Search Functions": "Hae toimintoja",
"Search Groups": "",
"Search Groups": "Etsi ryhmiä",
"Search In Models": "Hae mallleista",
"Search Knowledge": "Hae tietämystä",
"Search Models": "Hae malleja",
@@ -1637,7 +1652,7 @@
"See what's new": "Katso, mitä uutta",
"Seed": "Siemenluku",
"Select": "Valitse",
"Select {{modelName}} model": "",
"Select {{modelName}} model": "Valitse {{modelName}} malli",
"Select a base model": "Valitse perusmalli",
"Select a base model (e.g. llama3, gpt-4o)": "Valitse perusmalli (esim. llama3, gtp-4o)",
"Select a conversation to preview": "Valitse keskustelun esikatselu",
@@ -1668,9 +1683,9 @@
"Select Method": "Valitse metodi",
"Select only one model to call": "Valitse vain yksi malli kutsuttavaksi",
"Select view": "Valitse näkymä",
"Selected model: {{modelName}}": "",
"Selected model: {{modelName}}": "Valittu malli: {{modelName}}",
"Selected model(s) do not support image inputs": "Valitut mallit eivät tue kuvasöytteitä",
"Selected Models": "",
"Selected Models": "Valitut mallit",
"semantic": "Semaattinen",
"Send": "Lähetä",
"Send a Message": "Lähetä viesti",
@@ -1690,8 +1705,8 @@
"Set embedding model": "Aseta upotelmamalli",
"Set embedding model (e.g. {{model}})": "Aseta upotelmamalli (esim. {{model}})",
"Set reranking model (e.g. {{model}})": "Aseta uudelleenpisteytymismalli (esim. {{model}})",
"Set the default models that are automatically selected for all users when a new chat is created.": "",
"Set the models that are automatically pinned to the sidebar for all users.": "",
"Set the default models that are automatically selected for all users when a new chat is created.": "Aseta oletusmallit, jotka valitaan automaattisesti kaikille käyttäjille, kun uusi keskustelu luodaan.",
"Set the models that are automatically pinned to the sidebar for all users.": "Aseta mallit, jotka kiinnitetään automaattisesti sivupalkkiin kaikille käyttäjille.",
"Set the number of layers, which will be off-loaded to GPU. Increasing this value can significantly improve performance for models that are optimized for GPU acceleration but may also consume more power and GPU resources.": "Aseta näytönohjaimelle ladattavien tasojen määrä. Tämän arvon kasvattaminen voi parantaa merkittävästi näytönohjaimelle optimoitujen mallien suorituskykyä, mutta se voi myös lisätä näytönohjaimen virrankulutusta ja resurssien käyttöä.",
"Set the number of worker threads used for computation. This option controls how many threads are used to process incoming requests concurrently. Increasing this value can improve performance under high concurrency workloads but may also consume more CPU resources.": "Aseta työntekijäsäikeiden määrä laskentaa varten. Tämä asetus kontrolloi, kuinka monta säiettä käytetään saapuvien pyyntöjen rinnakkaiseen käsittelyyn. Arvon kasvattaminen voi parantaa suorituskykyä suurissa samanaikaisissa työkuormissa, mutta voi myös kuluttaa enemmän keskussuorittimen resursseja.",
"Set Voice": "Aseta puheääni",
@@ -1718,7 +1733,7 @@
"Show": "Näytä",
"Show \"What's New\" modal on login": "Näytä \"Mitä uutta\" -modaali kirjautumisen yhteydessä",
"Show Admin Details in Account Pending Overlay": "Näytä ylläpitäjän tiedot odottavan tilin päällä",
"Show All": "",
"Show All": "Näytä kaikki",
"Show all ({{COUNT}} characters)": "Näytä kaikki ({{COUNT}} merkkiä)",
"Show Files": "Näytä tiedostot",
"Show Formatting Toolbar": "Näytä muotoilupalkki",
@@ -1743,8 +1758,8 @@
"Skill deleted successfully": "Taito poistettu onnistuneesti",
"Skill Description": "Taidon kuvaus",
"Skill ID": "Taidon ID",
"Skill imported successfully": "",
"Skill Instructions": "",
"Skill imported successfully": "Taito tuotiin onnistuneesti",
"Skill Instructions": "Taidon ohjeistus",
"Skill Name": "Taidon nimi",
"Skill updated successfully": "Taito päivitetty onnistuneesti",
"Skills": "Taidot",
@@ -1760,7 +1775,7 @@
"Sonar Reasoning": "Sonar Reasoning",
"Sonar Reasoning Pro": "Sonar Reasoning Pro",
"Sort": "Järjestele",
"Sort by": "",
"Sort by": "Lajittele",
"Sougou Search API sID": "Sougou Search API sID",
"Sougou Search API SK": "Sougou Search API SK",
"Source": "Lähde",
@@ -1768,11 +1783,12 @@
"Speech recognition error: {{error}}": "Puheentunnistusvirhe: {{error}}",
"Speech-to-Text": "Puheentunnistus",
"Speech-to-Text Engine": "Puheentunnistusmoottori",
"Speech-to-Text Language": "",
"Speech-to-Text Language": "Puheentunnistus kieli",
"Split documents by markdown headers before applying character/token splitting.": "Jaa dokumentit Markdown-otsikoiden mukaan ennen merkki-/tunnusjaon käyttöä",
"Start a new conversation": "Aloita uusi keskustelu",
"Start of the channel": "Kanavan alku",
"Start Tag": "Aloitus tagi",
"Starting kernel...": "",
"Status": "Tila",
"Status cleared successfully": "Tila poistettu onnistuneesti",
"Status updated successfully": "Tila päivitetty onnistuneesti",
@@ -1792,8 +1808,8 @@
"STT Model": "Puheentunnistusmalli",
"STT Settings": "Puheentunnistuksen asetukset",
"Stylized PDF Export": "Muotoiltun PDF-vienti",
"Submit question": "",
"Submit suggestion": "",
"Submit question": "Lähetä kysymys",
"Submit suggestion": "Lähetä ehdotus",
"Subtitle": "Alaotsikko",
"Success": "Onnistui",
"Successfully imported {{userCount}} users.": "{{userCount}} käyttäjää tuottiin onnistuneesti.",
@@ -1830,8 +1846,8 @@
"Temperature": "Lämpötila",
"Temporary Chat": "Väliaikainen keskustelu",
"Temporary Chat by Default": "Väliaikainen keskustelu oletuksena",
"Terminal": "",
"Terminal servers saved": "",
"Terminal": "Pääte",
"Terminal servers saved": "Päätepalvelimet tallennettu",
"Text Splitter": "Tekstin jakaja",
"Text-to-Speech": "Puhesynteesi",
"Text-to-Speech Engine": "Puhesynteesimoottori",
@@ -1863,9 +1879,9 @@
"This channel was created on {{createdAt}}. This is the very beginning of the {{channelName}} channel.": "Tämä kanava on luotiin {{createdAt}}. Tämä on {{channelName}} kanavan alku.",
"This chat won't appear in history and your messages will not be saved.": "Tämä keskustelu ei näy historiassa, eikä viestejäsi tallenneta.",
"This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "Tämä varmistaa, että arvokkaat keskustelusi tallennetaan turvallisesti backend-tietokantaasi. Kiitos!",
"This feature is currently experimental and may not work as expected.": "",
"This feature is currently experimental and may not work as expected.": "Tämä ominaisuus on tällä hetkellä kokeellinen eikä välttämättä toimi odotetulla tavalla.",
"This feature is experimental and may be modified or discontinued without notice.": "Tämä ominaisuus on kokeellinen ja sitä voidaan muokata tai se voidaan lopettaa ilman erillistä ilmoitusta.",
"This folder is empty": "",
"This folder is empty": "Tämä kansio on tyhjä",
"This is a default user permission and will remain enabled.": "Tämä on oletusarvoinen käyttäjäoikeus ja pysyy käytössä.",
"This is an experimental feature, it may not function as expected and is subject to change at any time.": "Tämä on kokeellinen ominaisuus, se ei välttämättä toimi odotetulla tavalla ja se voi muuttua milloin tahansa.",
"This model is not publicly available. Please select another model.": "Tämä malli ei ole julkisesti saatavilla. Valitse toinen malli.",
@@ -1907,11 +1923,11 @@
"Toast notifications for new updates": "Ilmoituspopuppien näyttäminen uusista päivityksistä",
"Today": "Tänään",
"Today at {{LOCALIZED_TIME}}": "Tänään {{LOCALIZED_TIME}}",
"Toggle {{COUNT}} sources": "",
"Toggle 1 source": "",
"Toggle Dictation": "",
"Toggle {{COUNT}} sources": "Näytä/piilota {{COUNT}} lähdettä",
"Toggle 1 source": "Näytä/piilota 1 lähde",
"Toggle Dictation": "Sanelu päälle/pois",
"Toggle Sidebar": "Näytä/piilota sivupalkki",
"Toggle status history": "",
"Toggle status history": "Näytä/piilota tilahistoria",
"Toggle whether current connection is active.": "Vaihda, onko nykyinen yhteys aktiivinen",
"Token": "Token",
"Token counts are estimates and may not reflect actual API usage": "Tokenmäärät ovat arvioita eivätkä välttämättä vastaa todellista API-käyttöä",
@@ -1981,12 +1997,12 @@
"Upload Files": "Lataa tiedostoja",
"Upload Model": "Lataa malli",
"Upload Pipeline": "Lataa putki",
"Upload profile image": "",
"Upload profile image": "Lataa profiilikuva",
"Upload Progress": "Latauksen edistyminen",
"Upload Progress: {{uploadedFiles}}/{{totalFiles}} ({{percentage}}%)": "Latauksen edistyminen: {{uploadedFiles}}/{{totalFiles}} ({{percentage}}%)",
"Uploaded files or images": "Ladatut tiedostot tai kuvat",
"Uploading file...": "Ladataan tiedostoa...",
"Uploading...": "",
"Uploading...": "Ladataan...",
"URL": "URL",
"URL is required": "URL vaaditaan",
"URL Mode": "URL-tila",
@@ -1995,7 +2011,7 @@
"Use '#' in the prompt input to load and include your knowledge.": "Käytä '#' -merkkiä kehotekenttään ladataksesi ja sisällyttääksesi tietämystäsi.",
"Use /v1/chat/completions endpoint instead of /v1/audio/transcriptions for potentially better accuracy.": "Käytä /v1/chat/completions-päätteitä/v1/audio/transcriptions-pääteen sijaan mahdollisesti paremman tarkkuuden saavuttamiseksi.",
"Use Chat Completions API": "Käytä Chat Completions API:a",
"Use groups to organize your users and assign permissions.": "",
"Use groups to organize your users and assign permissions.": "Käytä ryhmiä käyttäjien järjestämiseen ja käyttöoikeuksien määrittämiseen.",
"Use LLM": "Käytä LLM:ää",
"Use no proxy to fetch page contents.": "Älä käytä välityspalvelinta sivun tietoja haettaessa.",
"Use proxy designated by http_proxy and https_proxy environment variables to fetch page contents.": "Käytä http_proxy- ja https_proxy-ympäristömuuttujien määrittämää välityspalvelinta sivun sisällön hakemiseen.",
@@ -2029,8 +2045,8 @@
"Version deleted": "Versio poistettu",
"View Replies": "Näytä vastaukset",
"View Result from **{{NAME}}**": "Näytä **{{NAME}}** tulokset",
"View source: {{name}}": "",
"View source: {{title}}": "",
"View source: {{name}}": "Näytä lähde: {{name}}",
"View source: {{title}}": "Näytä lähde: {{title}}",
"Visibility": "Näkyvyys",
"Visible": "Näkyvillä",
"Visible to all users": "Näkyy kaikille käyttäjille",
@@ -2040,7 +2056,7 @@
"Voice mode": "Puhetila",
"Voice Mode Custom Prompt": "Puhetilan mukautettu kehoite",
"Voice Mode Prompt": "Puhetilan kehoite",
"Waiting for upload...": "",
"Waiting for upload...": "Odottaa latausta...",
"Warning": "Varoitus",
"Warning:": "Varoitus:",
"Warning: Enabling this will allow users to upload arbitrary code on the server.": "Varoitus: Tämän käyttöönotto sallii käyttäjien ladata mielivaltaista koodia palvelimelle.",
@@ -2108,15 +2124,17 @@
"You do not have permission to send messages in this thread.": "Sinulla ei ole oikeuksia lähettää viestejä tähän ketjuun.",
"You do not have permission to upload files to this knowledge base.": "Sinulla ei ole oikeuksia ladata tiedostoja tähän tietokantaan.",
"You do not have permission to upload files.": "Sinulla ei ole lupaa ladata tiedostoja.",
"You do not have permission to upload web content.": "",
"You do not have permission to upload web content.": "Sinulla ei ole lupaa ladata verkkosisältöä.",
"You have no archived conversations.": "Sinulla ei ole arkistoituja keskusteluja.",
"You have no shared conversations.": "Sinulla ei ole jaettuja keskusteluja.",
"You have shared this chat": "Olet jakanut tämän keskustelun",
"You.com API Key": "",
"You.com API Key": "You.com API-avain",
"You're a helpful assistant.": "Olet avulias avustaja.",
"You're now logged in.": "Olet nyt kirjautunut sisään.",
"Your Account": "Tilisi",
"Your account status is currently pending activation.": "Tilisi tila on tällä hetkellä odottaa aktivointia.",
"Your browser does not support the audio tag.": "",
"Your browser does not support the video tag.": "",
"Your entire contribution will go directly to the plugin developer; Open WebUI does not take any percentage. However, the chosen funding platform might have its own fees.": "Koko panoksesi menee suoraan lisäosan kehittäjälle; Open WebUI ei pidätä prosenttiosuutta. Valittu rahoitusalusta voi kuitenkin periä omia maksujaan.",
"Your message text or inputs": "Viestisi teksti tai syöteet",
"Your usage stats have been successfully synced.": "Käyttötilastosi on synkronoitu onnistuneesti.",

Some files were not shown because too many files have changed in this diff Show More