Timothy Jaeryang Baek
a8a0a2655d
refac: ollama embed form data
2025-09-30 22:04:22 -05: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
Timothy Jaeryang Baek
485392fe63
chore: format
2025-09-09 18:19:31 +04: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
0ea421ea20
refac
2025-08-25 01:12:14 +04:00
Timothy Jaeryang Baek
094a16ab49
refac
2025-08-21 03:38:26 +04:00
Timothy Jaeryang Baek
1f91e5d3c6
fix: multi-ollama mounted display issue
2025-08-21 00:03:38 +04:00
Timothy Jaeryang Baek
671f577264
feat/enh: forward chat id in header
2025-07-18 15:03:46 +04:00
Sihyeon Jang
058369adea
fix: improve cleanup_response positioning for better resource management
...
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-07-15 10:14:30 +09:00
Athanasios Oikonomou
96758176cc
fix: don't over quote forwarded headers
...
Fix introduced on #15035 is over quoting headers.
Eg mails instead of user@example.com shown as user%40example.com
Eg names instead of First Last shown as First%20Last
Also we are spending some time quoting ids and roles without required.
Keep quote only on user name, initially had problem based on the discussion
https://github.com/open-webui/open-webui/discussions/14391
Also add space in safe characters, in order remove %20 from names.
2025-07-10 22:08:28 +03:00
Timothy Jaeryang Baek
1c41e95ba6
fix/refac: ollama api backward compatibility
2025-07-06 15:02:10 +04:00
Timothy Jaeryang Baek
9a476ae41d
refac: ollama api backward compatibility
2025-07-06 14:40:21 +04:00
Gianpaolo Macario
bdd5120407
fix: rename Ollama API parameter "name" to "model"
2025-07-04 17:33:57 +02:00
Timothy Jaeryang Baek
2b88f66762
refac: MODEL_LIST_CACHE_TTL -> MODELS_CACHE_TTL
2025-06-28 14:44:47 +04:00
Timothy Jaeryang Baek
0447790e6a
feat: MODEL_LIST_CACHE_TTL
2025-06-27 15:59:30 +04:00
priten
8a63a601de
Fix typo on ollama patch
2025-06-16 12:35:09 -05:00
priten
f7920df870
Fix non-ascii error issue on ENABLE_FORWARD_USER_INFO_HEADERS
2025-06-16 12:33:11 -05:00
Timothy Jaeryang Baek
59324a82e0
refac
2025-06-16 13:19:00 +04:00
Timothy Jaeryang Baek
e46e87889e
refac: pass through ollama error message
2025-06-16 13:03:56 +04:00
Timothy Jaeryang Baek
b39d33cefb
refac
2025-06-10 16:52:37 +04:00
Timothy Jaeryang Baek
2ccc441b41
refac
2025-06-10 13:01:45 +04:00
Timothy Jaeryang Baek
8f68b25510
enh/refac: ollama advanced params
2025-06-10 12:48:34 +04:00
Timothy Jaeryang Baek
b2befd486f
refac
2025-05-30 01:24:54 +04:00
Timothy Jaeryang Baek
d43bbcae28
refac/fix: open webui params handling
2025-05-29 12:57:58 +04:00
Timothy Jaeryang Baek
940a437631
refac
2025-05-27 01:16:11 +04:00
Timothy Jaeryang Baek
1cf21d3fa2
feat: ollama unload model
2025-05-23 19:45:29 +04:00
Timothy Jaeryang Baek
0e6f09a0a9
enh: ollama loaded model display
2025-05-23 19:13:18 +04:00
Timothy Jaeryang Baek
a50a8e2ef9
refac: ollama ps
2025-05-23 18:47:50 +04:00
Timothy Jaeryang Baek
08e4c163ea
feat: local/external connections
2025-05-17 01:47:48 +04:00
Timothy Jaeryang Baek
3c4accaeb3
refac/security: ollama model upload path traversal
2025-05-14 15:17:07 +04:00
Samer Albahra
d5e866d839
Fix missing api_config for embedding Ollama proxy endpoints
2025-05-05 12:33:07 -04:00
Tim Jaeryang Baek
bbc1ae0942
Merge pull request #13441 from salbahra/bug/fix-prefix-for-embedding-model
...
fix: Incorrect model reference with Ollama proxy when prefixes are used
2025-05-03 07:17:40 -07:00
Samer Albahra
cafba3eaff
Fix model reference with Ollama proxy when prefixes are used
2025-05-02 11:30:59 -04:00
Timothy Jaeryang Baek
7d0a78a43a
refac: aiohttp trust_env=True
2025-04-28 16:47:34 +04:00
Timothy Jaeryang Baek
9bfb4ae838
fix: ollama proxy "format"
2025-04-28 16:45:23 +04:00
Timothy Jaeryang Baek
7baca2b483
fix: ollama url model download issue
2025-04-24 01:26:19 +09:00
Timothy Jaeryang Baek
eb80719cf0
feat: AIOHTTP_CLIENT_SESSION_SSL
2025-04-17 22:11:42 -07:00
Florian Kick
ec3435de00
make content parameter optional in OpenAI chat completion API endpoint
2025-04-04 13:30:51 +02:00
Timothy Jaeryang Baek
feaa01dc77
fix: ollama requests
2025-03-29 16:52:42 -07:00
foraxe
04046ed6c8
Alternative Temp Fix: Uncomment to Keep Alive Forever
2025-03-15 00:27:20 +08:00
Timothy Jaeryang Baek
c309412980
enh: connection tags
2025-03-11 20:37:30 +00:00
Timothy Jaeryang Baek
80f5573cf3
refac: AIOHTTP_CLIENT_TIMEOUT_MODEL_LIST
2025-03-03 20:24:10 -08:00
Timothy Jaeryang Baek
d8bc3098db
Merge pull request #9918 from df-cgdm/main
...
feat: Add X-OpenWebUI when forwarding to ollama servers
2025-02-24 11:55:04 -08:00
Timothy Jaeryang Baek
eeb00a5ca2
chore: format
2025-02-20 01:01:29 -08:00
Simone
8662108344
Fix on ChatMessage validator: content can be null when using tools
2025-02-19 21:03:23 +01:00
Timothy Jaeryang Baek
38291e9af2
refac
2025-02-15 16:21:19 -08:00
Didier FOURNOUT
06062568c7
black formatting
2025-02-13 16:12:46 +00:00
Didier FOURNOUT
6d62e71c34
Add x-Open-Webui headers for ollama + more for openai
2025-02-13 15:29:26 +00:00
Timothy Jaeryang Baek
60095598ec
chore: format
2025-02-09 22:20:47 -08:00
SentinalMax
95aaacfeb4
fixed GGUF model upload instability
2025-02-07 22:52:24 -06:00