Timothy Jaeryang Baek
466d5bb696
refac: add separate Client IDs for OneDrive
2025-09-21 01:40:14 -04:00
Timothy Jaeryang Baek
6e4a2f18e1
refac
2025-09-21 00:14:43 -04:00
Sihyeon Jang
7042318c34
fix: prevent memory leaks in file handling and HTTP connections
...
- Fix file handle memory leak in download_file_stream by properly closing and reopening files
- Add requests.Session context manager for proper HTTP connection cleanup
- Remove unnecessary file.seek(0) after file reopening
- Add timeout to prevent hanging connections
This prevents memory accumulation during large file downloads and ensures
proper resource cleanup in all scenarios.
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-20 06:37:10 +09:00
Sihyeon Jang
6ae6cc9741
perf: optimize get_notes_by_user_id to reduce database queries
...
- Replace inefficient memory-based filtering with database-level filtering
- Add proper access control conditions to SQL query
- Reduce memory usage by filtering at database level instead of loading all notes
- Maintain access control validation with post-filtering for complex cases
This change significantly improves performance for users with many notes
by reducing the number of database queries and memory usage.
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-20 06:33:24 +09:00
Timothy Jaeryang Baek
60db9ec8ef
refac: built-in tools ui component support
2025-09-19 01:38:44 -05:00
Timothy Jaeryang Baek
e4c4ba0979
fix: oauth token
2025-09-19 00:10:48 -05:00
Timothy Jaeryang Baek
7be5b7f50f
refac
2025-09-18 22:03:14 -05:00
Timothy Jaeryang Baek
07c5b25bc8
feat: tool ui element support
2025-09-18 20:55:23 -05:00
Timothy Jaeryang Baek
cde5879987
fix: onedrive
2025-09-17 12:18:23 -05:00
Timothy Jaeryang Baek
60f62c2f59
refac
2025-09-17 11:28:04 -05:00
Timothy Jaeryang Baek
c01255570b
chore: format
2025-09-17 11:11:46 -05:00
Timothy Jaeryang Baek
caf0a1fbb6
feat: Allow Azure OpenAI to authenticate using DefaultAzureCredential
...
Co-Authored-By: Selene Blok <20491756+selenecodes@users.noreply.github.com>
2025-09-17 11:04:47 -05:00
Timothy Jaeryang Baek
c96252f7fe
refac/fix: WHISPER_LANGUAGE
2025-09-17 10:46:11 -05:00
Timothy Jaeryang Baek
0cfc8f5256
refac
2025-09-17 09:19:56 -05:00
Timothy Jaeryang Baek
4fe97d8794
feat: channel/thread @ model
2025-09-17 00:49:44 -05:00
Timothy Jaeryang Baek
9738ddfd99
refac
2025-09-16 23:19:21 -05:00
Timothy Jaeryang Baek
1077b2ac8b
fix: send notification
2025-09-16 22:53:54 -05:00
Timothy Jaeryang Baek
bbd1d2b58c
enh: channel suggestions
2025-09-16 21:41:47 -05:00
Timothy Jaeryang Baek
f0856bcb46
refac
2025-09-16 16:15:52 -05:00
Timothy Jaeryang Baek
71f99228ef
refac
2025-09-16 15:49:43 -05:00
Timothy Jaeryang Baek
8edfd29102
refac
2025-09-16 15:26:08 -05:00
Timothy Jaeryang Baek
b14617a653
refac: otel metrics handle 500
2025-09-16 12:11:32 -05:00
Timothy Jaeryang Baek
e66e0526ed
refac/enh: function valves validation
2025-09-16 12:00:59 -05:00
Timothy Jaeryang Baek
034163e9f9
chore: format
2025-09-16 11:16:08 -05:00
Timothy Jaeryang Baek
e1e3009a30
refac: granular onedrive integration types
2025-09-16 10:54:13 -05:00
Timothy Jaeryang Baek
76d358bd6c
refac
2025-09-16 10:40:15 -05:00
Timothy Jaeryang Baek
c2f98a4cd2
refac: usage info
2025-09-16 10:28:25 -05:00
Timothy Jaeryang Baek
a51f0c30ec
refac/fix: knowledge permission
2025-09-15 11:40:31 -05:00
Tim Jaeryang Baek
dd6f83e9c5
Merge pull request #17423 from aleprj/fix-filehandler
...
Fix file_handler filters
2025-09-15 11:35:39 -04:00
Timothy Jaeryang Baek
e61e7434a0
refac
2025-09-14 10:46:49 +02:00
Timothy Jaeryang Baek
1ef8204359
refac
2025-09-14 10:45:52 +02:00
Timothy Jaeryang Baek
58d7ca35e3
refac
2025-09-14 10:27:07 +02:00
Timothy Jaeryang Baek
aa8ab349ed
feat: ref chat
2025-09-14 10:26:46 +02:00
Timothy Jaeryang Baek
c03ca7270e
refac/feat: note/knowledge/chat select input menu
2025-09-14 09:54:06 +02:00
Alexandre Oliveira
f9fd22d98e
fix: setting file_handler in a filter would generate errors in messages with no files, because a "files: Null" in metadata would trigger an attempt to delete a non existent files object
2025-09-13 12:57:54 -03:00
Timothy Jaeryang Baek
9a55547827
refac/enh: model default filter/feature
2025-09-13 01:23:27 +04:00
Timothy Jaeryang Baek
210197fd43
refac/fix: web/youtube file attachment handling
2025-09-13 00:02:48 +04:00
Tim Jaeryang Baek
a156033d3c
Merge pull request #17284 from xyb/feishucn
...
feat: add Feishu OAuth integration
2025-09-12 12:48:45 +04:00
Xie Yanbo
ee82439e67
feat: add Feishu OAuth integration
...
Implement Feishu OAuth provider using standard client:
- Set up Feishu-specific endpoints for authorization, token, and userinfo
- Use user_id as sub claim for Feishu user identification
- Extract correct user information from nested 'data' field in Feishu responses
Configuration requirements:
- Set FEISHU_CLIENT_ID and FEISHU_CLIENT_SECRET environment variables to enable Feishu OAuth
- Set ENABLE_OAUTH_SIGNUP=true to allow automatic user creation after OAuth login
- Set DEFAULT_USER_ROLE=user to grant immediate access after OAuth registration
- Set OAUTH_MERGE_ACCOUNTS_BY_EMAIL=true to enable merging of existing user accounts with matching emails
2025-09-12 14:09:32 +08:00
Timothy Jaeryang Baek
051b6daa82
refac/fix: large file upload
2025-09-11 22:29:02 +04:00
Timothy Jaeryang Baek
6c0a5fa91c
refac
2025-09-11 21:56:59 +04:00
Timothy Jaeryang Baek
edc056351d
refac
2025-09-11 21:38:01 +04:00
Timothy Jaeryang Baek
2185fc61c0
refac
2025-09-11 21:29:56 +04:00
Timothy Jaeryang Baek
cf72f5503f
refac
2025-09-11 12:26:25 +04:00
Jesper Kristensen
4ca43004ed
feat: Added support for redis as session storage
2025-09-10 14:10:40 +02:00
Tim Jaeryang Baek
2dd0eaad73
Merge pull request #17328 from open-webui/main
...
dev
2025-09-10 14:04:03 +04:00
Timothy Jaeryang Baek
8339f59cdf
fix: openai audio revert
2025-09-10 14:02:19 +04:00
Timothy Jaeryang Baek
774c0056bd
refac: tool server data handling
2025-09-09 19:00:01 +04:00
Timothy Jaeryang Baek
485392fe63
chore: format
2025-09-09 18:19:31 +04:00
Timothy Jaeryang Baek
0531ca6530
refac/fix
2025-09-09 18:10:48 +04:00
Timothy Jaeryang Baek
32cb9df3c4
refac/enh: knowledge ac backend validation
2025-09-09 18:08:31 +04:00
Tim Jaeryang Baek
71fd483fba
Merge pull request #17276 from Elettrotecnica/extend-docling-configuration
...
feat: Extend docling configuration options
2025-09-09 18:04:30 +04:00
Timothy Jaeryang Baek
d0f338bb99
refac/enh: ability to export/sync function valves
2025-09-09 17:48:41 +04:00
Timothy Jaeryang Baek
0214c1e66c
refac
2025-09-09 16:48:59 +04:00
Timothy Jaeryang Baek
5f0d262c59
fix: yt embed
2025-09-09 16:00:42 +04:00
Antonio Pisano
daa2a036f8
Extend docling configuration options to include:
...
* do_ocr
* force_ocr
* pdf_backend
* table_mode
* pipeline
as per https://github.com/docling-project/docling-serve/blob/main/docs/usage.md
See https://github.com/open-webui/open-webui/issues/17148
2025-09-08 18:51:33 +02:00
Timothy Jaeryang Baek
6f6412dd16
refac
2025-09-08 19:53:44 +04:00
Timothy Jaeryang Baek
2b2d123531
refac: oauth auth type in openai connection
2025-09-08 19:42:50 +04:00
Timothy Jaeryang Baek
4cea3a57be
refac
2025-09-08 19:09:26 +04:00
Timothy Jaeryang Baek
b786d1e3f3
refac
2025-09-08 18:52:59 +04:00
Timothy Jaeryang Baek
b5bb6ae177
refac
2025-09-08 18:50:23 +04:00
Timothy Jaeryang Baek
f71834720e
refac
2025-09-08 18:35:09 +04:00
Timothy Jaeryang Baek
f11bdc6ab5
refac
2025-09-08 18:23:44 +04:00
Timothy Jaeryang Baek
fc11e4384f
refac
2025-09-08 18:17:11 +04:00
Timothy Jaeryang Baek
7693d0e2b0
refac
2025-09-08 18:09:01 +04:00
Timothy Jaeryang Baek
217f4daef0
feat: server-side OAuth token management system
...
Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
2025-09-08 18:05:43 +04:00
Timothy Jaeryang Baek
6d38ac41b6
refac
2025-09-08 14:36:00 +04:00
Timothy Jaeryang Baek
91755309ce
refac
2025-09-08 14:18:25 +04:00
Timothy Jaeryang Baek
6dc0df2473
refac
2025-09-07 05:17:38 +04:00
Timothy Jaeryang Baek
3d37e4a42d
refac
2025-09-07 05:06:03 +04:00
Timothy Jaeryang Baek
1cdb7aed1e
refac/enh: status history
2025-09-07 04:21:46 +04:00
Timothy Jaeryang Baek
0a85dd4bca
refac: web search link display
2025-09-07 03:00:28 +04:00
Timothy Jaeryang Baek
c9282135c4
refac
2025-09-07 02:02:21 +04:00
Timothy Jaeryang Baek
3d6d050ad8
refac/enh: display oauth error as toast
2025-09-07 01:48:52 +04:00
Timothy Jaeryang Baek
40e40d1ddd
enh/sec: verify folder data integrity
...
#17182
2025-09-07 01:04:56 +04:00
Timothy Jaeryang Baek
9aac148908
fix: knowledge update backend issue
2025-09-06 23:44:29 +04:00
Timothy Jaeryang Baek
1bc9711afd
refac
2025-09-05 17:28:05 +04:00
Tim Jaeryang Baek
93132abb40
Merge pull request #17195 from ShirasawaSama/patch-14
...
fix: fix error when stopping non-existent task
2025-09-04 20:21:09 +04:00
Shirasawa
e5ea595425
fix: fix error when stopping non-existent task
2025-09-04 16:52:19 +08:00
Timothy Jaeryang Baek
b70c0f36c0
enh: emoji folder icon
2025-09-04 02:50:50 +04:00
Timothy Jaeryang Baek
df66e21472
enh: regex pattern support for groups
2025-09-03 18:50:02 +04:00
Tim Jaeryang Baek
048f30aa97
Merge pull request #17158 from sihyeonn/fix/sh-cache
...
perf: fix cache key generation for model list caching
2025-09-03 16:18:33 +04:00
Tim Jaeryang Baek
357a53eb6f
Merge pull request #17147 from anfuerer/dev
...
feat: Azure OpenAI image generation support
2025-09-03 14:12:48 +04:00
Timothy Jaeryang Baek
37bf0087e5
refac: tool message format
2025-09-03 13:57:14 +04:00
Tim Jaeryang Baek
e5829572ff
Merge pull request #17175 from garylab/bugfix/api-config
...
Bugfix: Add verify token from headers also for /api/config endpoint
2025-09-03 13:39:25 +04:00
Tim Jaeryang Baek
472b71f331
Merge pull request #17166 from sihyeonn/perf/sh-model-layer
...
perf: fix N+1 query issues in user group access control validation
2025-09-03 13:36:01 +04:00
Tim Jaeryang Baek
308f4d6b26
Merge pull request #17159 from sihyeonn/perf/sh-prompts
...
perf: fix N+1 query issue in get_prompts method
2025-09-03 13:26:29 +04:00
Gary Meng
2d62796616
Allow user get /api/config with auth header
2025-09-03 13:25:09 +04:00
Tim Jaeryang Baek
330bec67b7
Merge pull request #17162 from sihyeonn/perf/sh-tools
...
perf: fix N+1 query issue in get_tools method
2025-09-03 13:22:37 +04:00
Tim Jaeryang Baek
2890c6d62d
Merge pull request #17161 from sihyeonn/perf/sh-models
...
perf: fix N+1 query issue in get_models method
2025-09-03 13:22:27 +04:00
Tim Jaeryang Baek
9119db001d
Merge pull request #17160 from sihyeonn/perf/sh-knowledge-base
...
perf: fix N+1 query issue in get_knowledge_bases method
2025-09-03 13:22:19 +04:00
Sihyeon Jang
eff06538a6
perf: fix N+1 query issues in user group access control validation
...
- Pre-fetch user group IDs in get_*_by_user_id methods across models layer
- Pass user_group_ids to has_access to avoid repeated group queries
- Reduce query count from 1+N to 1+1 pattern for access control validation
- Apply consistent optimization across knowledge, models, notes, prompts, and tools
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:56:48 +09:00
Sihyeon Jang
0503fbd2e3
perf: fix N+1 query issue in tools access control checking
...
- Pre-fetch user group IDs once per request in get_tools endpoint
- Pass user_group_ids to has_access to avoid repeated group queries
- Optimize access control validation from 1+N to 1+1 query pattern
- Reduce database load when checking multiple tools access permissions
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:49:53 +09:00
Sihyeon Jang
03d1d2a88b
perf: fix N+1 query issue in get_tools method
...
- Replace individual user queries with batch fetching
- Use single query to fetch all required users at once
- Implement O(1) user lookup with dictionary mapping
- Reduce query count from 1+N to 1+1 pattern for tools listing
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:35:35 +09:00
Sihyeon Jang
c0b3db38a5
perf: fix N+1 query issue in get_models method
...
- Replace individual user queries with batch fetching
- Use single query to fetch all required users at once
- Implement O(1) user lookup with dictionary mapping
- Reduce query count from 1+N to 1+1 pattern for models with base_model_id
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:33:41 +09:00
Sihyeon Jang
f588655f7f
perf: fix N+1 query issue in get_knowledge_bases method
...
- Replace individual user queries with batch fetching
- Use single query to fetch all required users at once
- Implement O(1) user lookup with dictionary mapping
- Reduce query count from 1+N to 1+1 pattern
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:29:47 +09:00
Sihyeon Jang
c45201a8a2
perf: fix N+1 query issue in get_prompts method
...
- Replace individual user queries with batch fetching
- Use single query to fetch all required users at once
- Implement O(1) user lookup with dictionary mapping
- Reduce query count from 1+N to 1+1 pattern
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:25:26 +09:00
Sihyeon Jang
3ccbb46938
perf: fix cache key generation for model list caching
...
- Replace Request object with user.id in cache key for get_all_models
- Request objects are new instances per HTTP request, preventing cache hits
- Cache keys now use user.id ensuring proper cache functionality
- Affects both Ollama and OpenAI model list endpoints
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-09-03 05:17:41 +09:00
Timothy Jaeryang Baek
22c4ef4fb0
enh: delete_file query param
2025-09-02 21:32:07 +04:00
Andreas Fuerer
df0d29c81c
style: fix formatting issues
2025-09-02 19:16:02 +02:00
Andreas Fuerer
bc6afc9057
feature: Azure OpenAI image generation support
...
The image generation API used on Azure OpenAI requires to specify the API
version by appending an `api-version` query parameter to the endpoint URL.
Added the environment variable `IMAGES_OPENAI_API_VERSION` with
configuration functionality in the administration UI.
2025-09-02 15:51:45 +02:00
Timothy Jaeryang Baek
e830b4959e
enh: llama cpp timing stats
2025-09-01 22:49:49 +04:00
Timothy Jaeryang Baek
4f2e426fc7
refac
2025-09-01 14:27:20 +04:00
Timothy Jaeryang Baek
609a6a3721
refac
2025-09-01 14:22:02 +04:00
Timothy Jaeryang Baek
85153afda8
refac
2025-09-01 14:21:17 +04:00
Timothy Jaeryang Baek
f56889c5c7
fix: fillter exception handling
2025-09-01 14:14:20 +04:00
Timothy Jaeryang Baek
ed5d95f434
refac
2025-09-01 02:41:29 +04:00
Timothy Jaeryang Baek
77b65ccbfb
refac/enh: forward headers to tool server
2025-09-01 01:52:10 +04:00
Timothy Jaeryang Baek
487979859a
fix: web/youtube attachements
2025-09-01 01:22:50 +04:00
Timothy Jaeryang Baek
ac0243e8b7
refac
2025-09-01 00:57:13 +04:00
Timothy Jaeryang Baek
b45219c8b1
refac
2025-09-01 00:04:26 +04:00
Tim Jaeryang Baek
ebfc887869
Merge pull request #17061 from AdamJohnSwan/dev
...
fix: for forming TTS request URL when there is a slash at the end of the base URL
2025-09-01 00:01:43 +04:00
Tim Jaeryang Baek
719d115d49
Merge pull request #17049 from rgaricano/dev-FIX_lex-sem
...
FIX: Hybrid Search
2025-09-01 00:00:25 +04:00
Tim Jaeryang Baek
4e7b0ea4b4
Merge pull request #17013 from athoik/fix-17000
...
fix: handle unicode filenames in external document loader
2025-08-31 23:58:52 +04:00
Timothy Jaeryang Baek
c2b4976c82
enh: PGVECTOR_CREATE_EXTENSION env var
2025-08-31 23:58:18 +04:00
Timothy Jaeryang Baek
e0ab5adb97
refac
2025-08-31 23:52:50 +04:00
Timothy Jaeryang Baek
b0f6f24ca8
refac
2025-08-31 23:42:34 +04:00
Adam
39ae9167ee
removed test code.
2025-08-30 20:31:13 -04:00
Adam
20b6902b9f
whitespace
2025-08-30 20:30:34 -04:00
Adam
08b958cfc9
re-add used var
2025-08-30 20:29:16 -04:00
Adam
c62f30e22c
remove whitespace
2025-08-30 20:12:46 -04:00
Adam
562710fe33
join the url instead of concatenating a string in case the user adds a slash to the end of their configured url.
2025-08-30 20:05:53 -04:00
_00_
647e38f701
Revert bypass hybrid search when BM25_weight=0
...
Revert PR https://github.com/open-webui/open-webui/commit/74b1c801
2025-08-30 10:45:35 +02:00
Athanasios Oikonomou
d735b036fe
fix: handle unicode filenames in external document loader
...
Files with special characters in their names (e.g., ü.pdf) caused issues since HTTP headers only allow Latin-1 characters.
This change URL-encodes `X-Filename` before adding it to request headers, preventing failures when uploading or processing such files.
Fixes : #17000
2025-08-28 22:19:50 +03:00
Thomas Cooper
9d80cc3b2d
PKCE requires no secret, with no secret the login button does not ever show
2025-08-28 14:47:13 -04:00
Timothy Jaeryang Baek
8cca648efa
refac
2025-08-28 13:25:48 +04:00
Timothy Jaeryang Baek
12bd04d24d
refac/enh
2025-08-28 03:24:26 +04:00
Timothy Jaeryang Baek
2bb6063dcb
refac/fix: marker
2025-08-28 03:03:31 +04:00
Timothy Jaeryang Baek
48635ced35
refac
2025-08-28 02:45:06 +04:00
Timothy Jaeryang Baek
e7c7c65227
refac/fix: error message
2025-08-28 02:35:29 +04:00
Timothy Jaeryang Baek
cf08d34879
refac
2025-08-28 02:24:21 +04:00
Timothy Jaeryang Baek
e39ce16a86
enh: custom reasoning tags
2025-08-27 17:24:16 +04:00
Timothy Jaeryang Baek
31485835a7
enh: query caching
...
Co-Authored-By: Jacob Leksan <63938553+jmleksan@users.noreply.github.com>
2025-08-27 03:07:21 +04:00
Timothy Jaeryang Baek
e4b6855984
enh: CHAT_RESPONSE_MAX_TOOL_CALL_RETRIES
2025-08-27 02:58:25 +04:00
Timothy Jaeryang Baek
edf7a3d142
refac
2025-08-26 22:05:27 +04:00
Timothy Jaeryang Baek
8b425a6295
refac
2025-08-26 21:56:52 +04:00
Timothy Jaeryang Baek
07357afcf6
refac
...
Co-Authored-By: _00_ <131402327+rgaricano@users.noreply.github.com>
2025-08-26 16:54:36 +04:00
Timothy Jaeryang Baek
803b2e35be
enh: delete_message, continue_response, regenerate_response, rate_response user permissions
...
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
2025-08-26 15:05:35 +04:00
Timothy Jaeryang Baek
23a9731899
refac/fix: hybrid search
2025-08-26 15:04:46 +04:00
Tim Jaeryang Baek
4267e22d4a
Merge pull request #16826 from selenecodes/feat/azure-document-intelligence-azure-entra-auth
...
feat: Authenticate Azure Document Intelligence using DefaultAzureCredential
2025-08-26 14:32:04 +04:00
Timothy Jaeryang Baek
c61698efcf
enh: process_in_background query param for file upload endpoint
2025-08-25 18:18:52 +04:00
Timothy Jaeryang Baek
a37d411dcf
refac
2025-08-25 18:12:47 +04:00
Timothy Jaeryang Baek
0e46f8091f
fix: __tools__ param issue
2025-08-25 14:29:05 +04:00
Timothy Jaeryang Baek
0ea421ea20
refac
2025-08-25 01:12:14 +04:00
_00_
093af754e7
FIX: Playwright Timeout (ms) interpreted as seconds
...
Fix for Playwright Timeout (ms) interpreted as seconds.
To address https://github.com/open-webui/open-webui/issues/16801
In Frontend Playwright Timeout is setted as (ms), but in backend is interpreted as (s) doing a time conversion for playwright_timeout var (that have to be in ms).
& as _Originally posted by @rawbby in [#16801 ](https://github.com/open-webui/open-webui/issues/16801#issuecomment-3216782565 )_
> I personally think milliseconds are a reasonable choice for the timeout. Maybe the conversion should be fixed, not the label.
> This would further not break existing configurations from users that rely on their current config.
>
2025-08-23 14:15:00 +02:00
Selene Blok
5051bfe7ab
feat(document retrieval): Authenticate Azure Document Intelligence using AzureDefaultCredential if API key is not provided
2025-08-22 16:15:43 +02:00
Timothy Jaeryang Baek
37a3de0703
fix
2025-08-22 17:19:57 +04:00
Timothy Jaeryang Baek
72b25ab78b
fix: image generation
2025-08-22 16:58:25 +04:00
Timothy Jaeryang Baek
fbff4e19de
fix: reranking
2025-08-22 16:47:05 +04:00
Timothy Jaeryang Baek
43b2eca418
refac
2025-08-22 14:01:57 +04:00