Commit Graph

619 Commits

Author SHA1 Message Date
tarmst
efe3bca19e Add nested claim search for groups oauth claim 2025-02-19 16:47:52 +00:00
ferret99gt
5701d6d333 Change the opt dictionary to a mappings dictionary with appropriate casts
This is to bring consistency with apply_model_params_to_body_openai. Both now use a mapping dictionary then call and return apply_model_params_to_body directly.
2025-02-19 09:30:16 -05:00
Simone
074ce356de Added OpenAI usagerequested keys 2025-02-19 15:28:39 +01:00
ferret99gt
fa885c3346 Update remapping logic
We copy the params from from the original key to the new key, then delete it. This is to ensure Ollama only gets valid options.

(Add a comment as well)
2025-02-19 09:25:47 -05:00
ferret99gt
a4249a6351 Remove remapping of frequency_penalty to repeat_penalty
1) Ollama natively supports frequency_penalty, so this is not necessary.
2) Repeat_penalty is being added to Open WebUI in PR #10016, allowing Ollama users to pick which penalty methods they want.
2025-02-19 09:24:38 -05:00
ferret99gt
877d21a029 Move parameter remapping above the opt dictionary.
This is so that any remappings are handled before options are handled by apply_model_params_to_body
2025-02-19 09:23:33 -05:00
ferret99gt
6b2ba73701 Remove tfs_z
See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8

tfs_z was removed from Llama.cpp and Ollama in January 2025.
2025-02-19 09:21:36 -05:00
ferret99gt
cee08e316d Update Ollama request option list with full supported options
See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8

This adds the full suite of supported Ollama options.
2025-02-19 09:21:05 -05:00
ferret99gt
8125b0499b Remove empty ollama_options
1) The empty dictionary from line 176 is never used.
2) Lines 193-194 are not necessary as they were already done at line 177
2025-02-19 08:57:05 -05:00
ferret99gt
57b01cf8fb Fix for system prompt setting
1) Ollama supports sending the system prompt as a parameter, not as an option. (See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8) However, it is in the options dictionary and needs moved to the payload dictionary.
2) After moving the system parameter from ollama_options to ollama_payload, delete it from ollama_options. This is to prevent Ollama throwing a warning about invalid options.
2025-02-19 08:55:11 -05:00
ferret99gt
fea169a9c0 Core fix for num_predict not working.
1) max_tokens was being looked for in openai_payload, but is present in openai_payload['options'], so is never found.
2) After copying the value for max_tokens to num_predict, delete max_tokens from the dictionary. This is to prevent Ollama throwing a warning about invalid option (max_tokens)
2025-02-19 08:52:34 -05:00
ferret99gt
adde37394b Remove parameters that map directly, as they are part of options
1) This may be legacy code?
2) All three of these parameters, temperature, top_p and seed, are found in openai_payload["options"], not openai_payload. They do not need remapped any longer.
2025-02-19 08:44:59 -05:00
ferret99gt
aea8977d05 Remove mapping of max_completion_tokens
1) max_completion_tokens is being looked for in openai_payload, but would be located in openai_payload['options'], so is never found. (This applies to the prior two commits as well).
2) max_completion_tokens is not sent from the frontend, only max_tokens. It does not appear in AdvancedParams.svelte.
2b) Openai.py does use max_completion_tokens, but for o1,o3 models and converts it from max_tokens.
2025-02-19 08:39:33 -05:00
ferret99gt
e6919c3242 Remove mapping of frequency_penalty to repeat_penalty
1) Ollama natively supports frequency_penalty.
2) repeat_penaltywas added to Open Webui in PR #10016 and is not merged to main yet at this time. Once both changes go live, Ollama users can freely choose between frequency/presence penalty, or repeat penalty, as they choose.
2025-02-19 08:33:29 -05:00
ferret99gt
a560f789e4 Remove mapping of presence_penalty to new_topix_penalty
1) Ollama natively supports presence_penalty.
2) new_topic_penalty is not a valid option in Ollama. (See https://github.com/ollama/ollama/blob/main/docs/api.md#request-8)
3) Presence_penalty was added to Open Webui in PR #10016 and is not merged to main yet at this time.
2025-02-19 08:31:57 -05:00
Timothy Jaeryang Baek
9ca4727573 enh: web search behaviour 2025-02-18 21:29:27 -08:00
Timothy Jaeryang Baek
81715f6553 enh: RAG full context mode 2025-02-18 21:14:58 -08:00
Timothy Jaeryang Baek
1bbecd46c8
Merge pull request #10052 from roryeckel/playwright
Support Playwright RAG Web Loader: Revised
2025-02-18 19:57:48 -08:00
Timothy Jaeryang Baek
d0114e0703 fix: temp chat issue 2025-02-18 09:57:12 -08:00
Timothy Jaeryang Baek
1764170307 refac 2025-02-17 21:34:06 -08:00
Rory
10e0c81de9 Merge remote-tracking branch 'upstream/dev' into playwright
# Conflicts:
#	backend/open_webui/retrieval/web/utils.py
#	backend/open_webui/routers/retrieval.py
2025-02-17 21:53:39 -06:00
Timothy Jaeryang Baek
93731e4ca9 fix: temp chat message continue 2025-02-17 18:40:40 -08:00
Timothy Jaeryang Baek
ca0b7217d2 enh: full context web search 2025-02-17 18:14:26 -08:00
Timothy Jaeryang Baek
a5fa1cd835
Merge pull request #10209 from i-infra/iinf/fix-for-openrouter
[fix] no unambiguous indexing on "owned_by" - fix OpenRouter.ai
2025-02-17 15:24:21 -08:00
Timothy Jaeryang Baek
82189066e8 refac 2025-02-16 18:35:09 -08:00
Timothy Jaeryang Baek
63cf80a456 refac 2025-02-16 00:11:18 -08:00
Timothy Jaeryang Baek
19c340d3fb refac: pipelines 2025-02-15 22:25:18 -08:00
Rory
66c2acc08d Merge branch 'dev' into playwright 2025-02-15 22:14:16 -06:00
Timothy Jaeryang Baek
bbda717b69 refac: citations 2025-02-15 17:24:29 -08:00
i-infra
5e3742f899 and one last edit 2025-02-15 19:42:58 -05:00
i-infra
fb12ee3f52 fix exception where openrouter doesn't populate - no longer index without fallback 2025-02-15 19:41:41 -05:00
Rory
4da220c513 Merge remote-tracking branch 'upstream/dev' into playwright
# Conflicts:
#	backend/open_webui/config.py
#	backend/open_webui/main.py
#	backend/open_webui/retrieval/web/utils.py
#	backend/open_webui/routers/retrieval.py
#	backend/open_webui/utils/middleware.py
#	pyproject.toml
2025-02-14 20:48:22 -06:00
Yimi81
ceef600223 support async load for websearch 2025-02-14 07:05:10 +00:00
Timothy Jaeryang Baek
da757069de refac 2025-02-13 17:06:55 -08:00
Timothy Jaeryang Baek
e1435501aa fix 2025-02-13 15:17:41 -08:00
Timothy Jaeryang Baek
68519d6ca7 enh: multiple tool calls support 2025-02-13 14:50:46 -08:00
Timothy Jaeryang Baek
f20b7c2f33 fix: user direct connections 2025-02-13 14:21:34 -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
Samuel
e98f859a14 format 2025-02-13 12:19:24 +00:00
Samuel
86074cff6c fix: re-enable tool use when sending tool output 2025-02-13 12:18:21 +00:00
Timothy Jaeryang Baek
6acda2e6ec refac: code interpreter 2025-02-13 00:40:04 -08:00
Timothy Jaeryang Baek
6d899b80d0 refac: direct connections 2025-02-13 00:34:45 -08:00
Timothy Jaeryang Baek
eb568695e7 chore: format 2025-02-13 00:13:33 -08:00
Timothy Jaeryang Baek
a1dc2664c2 refac 2025-02-12 23:49:00 -08:00
Timothy Jaeryang Baek
c0dfafca70
Merge pull request #9844 from Seniorsimo/bug-9773
Fix - Added support for API tool_calls when stream false
2025-02-12 23:37:24 -08:00
Timothy Jaeryang Baek
83e5db7be7 refac 2025-02-12 23:26:47 -08:00
Timothy Jaeryang Baek
2b7f9d14d0 refac 2025-02-12 23:21:16 -08:00
Timothy Jaeryang Baek
c83e68282d feat: direct connections integration 2025-02-12 22:56:33 -08:00
Simone
b0ade6c04c Fixed typo 2025-02-13 07:04:02 +01:00
Rory
40d4db97e6 Merge remote-tracking branch 'upstream/dev' into playwright 2025-02-12 22:32:44 -06:00
Simone
7dc000a6b9 added support for API tool_calls if stream false 2025-02-12 09:11:26 +01:00
Timothy Jaeryang Baek
f916fbba56 enh: custom code interpreter prompt 2025-02-11 21:36:16 -08:00
Timothy Jaeryang Baek
16bae8f33a refac 2025-02-10 13:53:16 -08:00
Timothy Jaeryang Baek
a273cba0fb refac: code intepreter 2025-02-10 13:12:05 -08:00
Timothy Jaeryang Baek
0f12c4d14f fix: ollama tool calling
Co-Authored-By: Simone <6941100+seniorsimo@users.noreply.github.com>
2025-02-10 12:18:49 -08:00
Timothy Jaeryang Baek
293f64353d
Merge pull request #9751 from pseudorm/bug/user-signup/fix-oauth-username-claim-has-no-effect
Fix: Setting OAUTH_USERNAME_CLAIM has no effect on username for user during oauth signup
2025-02-10 11:26:56 -08:00
Timothy Jaeryang Baek
63a5ee3adb refac 2025-02-10 11:25:38 -08:00
pseudorm
336d1d95c5
Merge branch 'dev' into bug/user-signup/fix-oauth-username-claim-has-no-effect 2025-02-10 22:00:20 +08:00
chester.cheng
1b6e12a255 add warning 2025-02-10 20:49:55 +08:00
chester.cheng
db0a12f9f1 check name is none 2025-02-10 20:36:01 +08:00
Timothy Jaeryang Baek
f9c5819314 enh: code interpreter jupyter support 2025-02-10 02:25:02 -08:00
Timothy Jaeryang Baek
60095598ec chore: format 2025-02-09 22:20:47 -08:00
Timothy Jaeryang Baek
de2026b5cc
Merge pull request #9733 from rragundez/patch-ssrf
Prevent SSRF and HTML injection
2025-02-09 22:15:03 -08:00
Rory
2c711d8365 Merge remote-tracking branch 'upstream/dev' into playwright
# Conflicts:
#	backend/requirements.txt
2025-02-09 23:52:21 -06:00
Rodrigo Agundez
167c8bf00d Prevent SSRF and HTML injection 2025-02-10 10:35:10 +08:00
Timothy Jaeryang Baek
9be8bea6f4 fix: filter 2025-02-08 01:07:05 -08:00
Timothy Jaeryang Baek
ee0152c1fa
Merge pull request #9634 from zoupingshi/dev
chore: fix some typos
2025-02-07 23:07:25 -08:00
Timothy Jaeryang Baek
79c0b45543
Merge pull request #9631 from XingjianXie/remove_inlet_outlet_duplication
Refactor common code between inlet and outlet
2025-02-07 22:57:49 -08:00
Timothy Jaeryang Baek
3dde2f67cf refac 2025-02-07 22:57:39 -08:00
Timothy Jaeryang Baek
dee07a6260
Merge pull request #9629 from rragundez/handle-no-picture
Handle no picture when retrieving from Microsoft EntraID
2025-02-07 22:52:35 -08:00
Timothy Jaeryang Baek
6862081d6b
Merge pull request #9641 from SentinalMax/bugfix/GGUF-upload-issue
Fix: GGUF model upload instability
2025-02-07 22:51:44 -08:00
SentinalMax
95aaacfeb4 fixed GGUF model upload instability 2025-02-07 22:52:24 -06:00
zoupingshi
d39a274ef8 chore: fix some typos
Signed-off-by: zoupingshi <hangfachang@outlook.com>
2025-02-08 12:14:01 +08:00
Rodrigo Agundez
546ef6ab42 Check is response is OK from retrieve the picture if not then default 2025-02-08 09:49:16 +09:00
Timothy Jaeryang Baek
4271b652a5
Merge pull request #9619 from XingjianXie/fix_after_tag
Fix tag_content_handler issue
2025-02-07 14:42:14 -08:00
Timothy Jaeryang Baek
febc5d392f
Merge pull request #9620 from tarmst/add-oauth-debug-logs
feat: Adding debug logs for oauth role & group management
2025-02-07 14:41:43 -08:00
Xingjian Xie
c56bedc5ff Fix tag_content_handler issue: after_tag should be remove from the current content_blocks 2025-02-07 20:15:54 +00:00
tarmst
85912d726e Adding debug logs for oauth role & group management 2025-02-07 19:53:25 +00:00
Timothy Jaeryang Baek
8a54df1ed2
Merge pull request #9516 from cloudron-io/oauth_username
oidc: pick up username correctly
2025-02-07 11:18:53 -08:00
Mistrick
94f56db5ee
fix max seed for comfyui 2025-02-08 01:10:18 +07:00
Xingjian Xie
89669a21fc Refactor common code between inlet and outlet 2025-02-06 23:07:47 +00:00
Girish Ramakrishnan
8215aa36d0 oidc: pick up username correctly 2025-02-06 17:59:16 +01:00
Rory
74b971b888 refac: clean up solution for correcting code_interpreter backticks 2025-02-05 23:38:35 -06:00
Rory
c676303a55 enh: automatically remove incorrect backticks before code_interpreter tags 2025-02-05 23:26:13 -06:00
D. MacAlpine
34b62e71cc fix: check for email claim before skipping userinfo endpoint 2025-02-05 21:31:55 -05:00
Rory
ec6fe9939b Merge remote-tracking branch 'upstream/dev' into playwright 2025-02-05 17:47:58 -06:00
Timothy Jaeryang Baek
7ba717d171 refac: system prompt template 2025-02-05 14:35:18 -08:00
Timothy Jaeryang Baek
d9f17225ef refac 2025-02-05 14:26:09 -08:00
Timothy Jaeryang Baek
1e67956db9 refac 2025-02-05 14:20:51 -08:00
Timothy Jaeryang Baek
648878782b refac: response parse 2025-02-05 14:10:53 -08:00
Timothy Jaeryang Baek
ff84c120f5 fix: api usage 2025-02-05 13:18:17 -08:00
Timothy Jaeryang Baek
13c7d96515 refac 2025-02-05 02:38:05 -08:00
Timothy Jaeryang Baek
90cd6f272f fix: tag support 2025-02-05 02:33:40 -08:00
Timothy Jaeryang Baek
c36c63f1e8 fix: <think> tag 2025-02-05 02:10:28 -08:00
Timothy Jaeryang Baek
cce1762cb8 refac: tool calling 2025-02-05 01:03:16 -08:00
Timothy Jaeryang Baek
e41a2682f5 chore: format 2025-02-05 00:07:45 -08:00
Timothy Jaeryang Baek
f6f8c08cb0
Merge pull request #9068 from df-cgdm/main
**feat** Add user related headers when calling an external embedding api
2025-02-05 00:05:44 -08:00
Timothy Jaeryang Baek
c778345e84 refac 2025-02-05 00:01:24 -08:00
Timothy Jaeryang Baek
2b0af33274 refac 2025-02-04 23:48:01 -08:00
Timothy Jaeryang Baek
e349e26cd8 refac 2025-02-04 23:20:09 -08:00
Timothy Jaeryang Baek
314b674f32 feat: native tool calling support 2025-02-04 23:05:14 -08:00
Timothy Jaeryang Baek
7766a08b70 refac: ollama tool calls 2025-02-04 21:42:49 -08:00
Timothy Jaeryang Baek
c5a9cfacf1 refac 2025-02-04 21:20:03 -08:00
Timothy Jaeryang Baek
8d520eeecd fix: ollama native tool calling 2025-02-04 21:08:26 -08:00
Timothy Jaeryang Baek
e7da506add refac: middleware 2025-02-04 21:01:53 -08:00
Timothy Jaeryang Baek
23df351239 refac: ollama tool calling support
Co-Authored-By: smonux <85928277+smonux@users.noreply.github.com>
2025-02-04 19:22:08 -08:00
Timothy Jaeryang Baek
ec9be0d20d feat: native tool calling frontend 2025-02-04 19:14:59 -08:00
Timothy Jaeryang Baek
6ee924924e refac: code interpreter 2025-02-04 18:33:22 -08:00
Mavyre
bbffdeb758
Corrected chat generation error after failed web search query generation 2025-02-04 12:13:54 +01:00
Timothy Jaeryang Baek
b20603e01a refac 2025-02-03 22:05:52 -08:00
Rory
f85d7e3686 Merge branch 'dev' into playwright 2025-02-03 20:44:39 -06:00
Timothy Jaeryang Baek
8fdd3024f7 refac 2025-02-03 18:36:49 -08:00
Timothy Jaeryang Baek
aa7184ae0d refac 2025-02-03 18:17:38 -08:00
Timothy Jaeryang Baek
e5bb0f014a refac 2025-02-03 17:19:33 -08:00
Rory
93cc1a88ee Merge branch 'dev' into playwright 2025-02-03 19:09:26 -06:00
Rory
1b581b714f Moving code out of playwright branch 2025-02-03 18:47:26 -06:00
Timothy Jaeryang Baek
df07d671ce refac 2025-02-03 16:21:44 -08:00
Timothy Jaeryang Baek
31c176a485 refac 2025-02-03 16:18:07 -08:00
Timothy Jaeryang Baek
1635dcb69b refac 2025-02-03 16:07:43 -08:00
Rory
22746c7a3f Merge remote-tracking branch 'upstream/dev' 2025-02-03 17:28:53 -06:00
Timothy Jaeryang Baek
95c6d0e78c enh: code interpreter toggle 2025-02-03 01:14:38 -08:00
Timothy Jaeryang Baek
ca4b839e6d enh: code interpreter 2025-02-03 00:24:09 -08:00
Timothy Jaeryang Baek
58d2fd9ac1 refac: styling 2025-02-03 00:03:41 -08:00
Timothy Jaeryang Baek
78853a67e4 refac 2025-02-02 23:35:58 -08:00
Timothy Jaeryang Baek
8685256002 feat: code interpreter 2025-02-02 22:38:19 -08:00
Timothy Jaeryang Baek
eb1ede119e refac: reasoning tag 2025-02-02 20:50:54 -08:00
Rory
f837d2cdbb Merge branch 'dev' of https://github.com/open-webui/open-webui
# Conflicts:
#	src/lib/i18n/locales/sr-RS/translation.json
2025-02-02 20:31:27 -06:00
Timothy Jaeryang Baek
b94b691993 enh: utils 2025-02-02 15:11:50 -08:00
Timothy Jaeryang Baek
642a093d02 refac: tool calls 2025-02-01 21:01:06 -08:00
Rodrigo Agundez
30e4b32a5b Set default picture to user.png 2025-02-01 08:32:04 +09:00
Rodrigo Agundez
1f2b5fa68f move comment to top 2025-01-31 23:05:33 +09:00
Rodrigo Agundez
681851ca6b Configurable default role for oauth 2025-01-31 23:00:24 +09:00
Rory
77ae73e659 Adjust search event messages + translations 2025-01-30 23:18:11 -06:00
Rory
8dafe3cba8 Merge branch 'dev' of https://github.com/open-webui/open-webui 2025-01-30 18:26:55 -06:00
James W.
124fdcc48c
Merge branch 'open-webui:dev' into dev 2025-01-30 13:34:01 -07:00
James Westbrook
48c2fb0d24 fix: Add error catching for function pip install issues 2025-01-30 13:32:11 -07:00
Timothy Jaeryang Baek
cc99673906 refac: prompt variables 2025-01-29 21:56:51 -08:00
Timothy Jaeryang Baek
be665f2a3e
Merge pull request #8493 from kyunwang/fix/oidc-500-error-name-field
fix: Check OAuth name type with fallback
2025-01-29 21:08:21 -08:00
Timothy Jaeryang Baek
8727b91664 fix: display usage for non-streaming ollama response 2025-01-29 21:07:22 -08:00
Timothy Jaeryang Baek
6658e67113 fix: title gen 2025-01-29 20:03:46 -08:00
Timothy Jaeryang Baek
5420c165c6 refac: title generation 2025-01-29 14:40:36 -08:00
Timothy Jaeryang Baek
40a4443949
Merge pull request #9082 from Alex1607/main
FIX max_tokens not being set properly
2025-01-29 11:48:05 -08:00
Alexander
c2e742afe1 Fix max_tokens not being set properly 2025-01-29 19:28:09 +01:00
Didier FOURNOUT
6ca295ec59 Add user related headers when calling an external embedding api 2025-01-29 10:55:52 +00:00
Rory
4e8b390682 Add RAG_WEB_LOADER + Playwright mode + improve stability of search 2025-01-28 23:03:15 -06:00
Orion
95f4d99e3b
Update misc.py
Include empty delta object on openai_chat_chunk_message_template per OpenAI API documentation. 

https://platform.openai.com/docs/api-reference/chat/streaming#chat/streaming
2025-01-28 09:53:22 +10:00
Timothy Jaeryang Baek
ec62104211
Merge pull request #8978 from antpyykk-kone/feature/separate-auth-cookie-config
fix: Separate cookie configuration between session & auth cookies to prevent oauth flow from breaking
2025-01-27 10:32:13 -08:00
Kangyun Wang
564c0fed95 Fallback using email
- Use Email ass fallback for missing "name" field
- "email" because the email scope is required unlike the profile scope
2025-01-27 13:11:20 +01:00
Kevin Wang
9eaf01c323
Merge branch 'open-webui:main' into fix/oidc-500-error-name-field 2025-01-27 13:10:08 +01:00
Timothy Jaeryang Baek
ceaefd8053 refac 2025-01-23 13:45:45 -08:00
Timothy Jaeryang Baek
45f88b80ad refac: think status 2025-01-23 12:53:17 -08:00
Antti Pyykkönen
412923dc91 feat: separate cookie settings between session & auth cookies
Introducing two new env config options to control cookies settings regarding
authentication. These values are taken into use when setting 'token' and 'oauth_id_token'.
To maintain backwards compatibility, the original session cookie values are used as
fallback.

Separation is done to prevent issues with the session cookie. When the config value was
set as 'strict', the oauth flow was broken (since the session cookie was not provided
after the callback).

Providing a separate config for auth & session cookies allows us to keep the 'strict'
settings for auth related cookies, while also allowing the session cookie to behave as
intended (e.g., by configuring it as 'lax').

The original config was added in commit #af4f8aa. However a later commit #a2e889c reused
this config option for other type of cookies, which was not the original intent.
2025-01-23 16:16:50 +02:00
Timothy Jaeryang Baek
14e650077a refac 2025-01-22 12:49:29 -08:00
Timothy Jaeryang Baek
aaf97b85dc enh: reasoning_effort param support for openai 2025-01-22 12:07:04 -08:00
Timothy Jaeryang Baek
9feed97f22 refac: think tag 2025-01-22 09:24:40 -08:00
Timothy Jaeryang Baek
10ffbca34b refac: more reasoning tags support 2025-01-22 00:56:55 -08:00
Timothy Jaeryang Baek
d42f811a8d refac: think tag 2025-01-22 00:49:41 -08:00
Timothy Jaeryang Baek
039d685547 refac 2025-01-22 00:32:09 -08:00
Timothy Jaeryang Baek
2777d3ec49 refac: think tag styling 2025-01-22 00:23:47 -08:00
Timothy Jaeryang Baek
c9dc7299c5 enh: <think> tag support 2025-01-22 00:13:24 -08:00
Tryanks
f3e6dacf0d refac: Extend OIDC support to all OAuth authentication methods 2025-01-17 12:56:03 +08:00
Timothy Jaeryang Baek
5526c43853
Merge pull request #8620 from Tryanks/dev
fix: incorrectly indexing the key userinfo in the token.
2025-01-16 11:12:41 -08:00
Timothy Jaeryang Baek
eb17cf6915
Merge pull request #8608 from rragundez/hotfix-get-picture
Hotfix get picture
2025-01-16 11:12:18 -08:00
Timothy Jaeryang Baek
4645943066 refac: file handler 2025-01-16 11:11:23 -08:00
Tryanks
4b6700a4b2
fixed: incorrectly indexing the key userinfo in the token. 2025-01-17 00:33:20 +08:00
Rodrigo Agundez
91df1c56b2 Add headers 2025-01-16 19:32:35 +08:00
Timothy Jaeryang Baek
0425621494 refac 2025-01-16 00:13:02 -08:00
Timothy Jaeryang Baek
0360aa5520 enh: image prompt enhancer 2025-01-16 00:06:37 -08:00
Timothy Jaeryang Baek
a10302d909 enh: image generation toggle 2025-01-15 23:32:13 -08:00
Timothy Jaeryang Baek
56f57928c2 enh/refac: permissions 2025-01-15 23:01:43 -08:00
Timothy Jaeryang Baek
3328e2ea97
Merge pull request #8566 from rragundez/ms-auth-picture
Add functionality to retrive picture for microsoft oauth
2025-01-15 10:02:28 -08:00
Rodrigo Agundez
c8be0b20cc Add functionality to retrive picture for microsoft oauth 2025-01-15 09:17:22 +08:00
Kangyun Wang
1ad9be9c07 Check OAuth name type with fallback 2025-01-12 12:21:53 +01:00
Timothy Jaeryang Baek
b1bcca90b5 refac 2025-01-11 20:23:26 -08:00
Timothy Jaeryang Baek
21abe43f3b refac 2025-01-10 16:27:37 -08:00
Timothy Jaeryang Baek
6c4b2b0a8e
Merge pull request #8407 from LuisMalhadas/no_line_break_pdf(#8405)
fix: solves the lack of line breaks in chat download as pdf #8405
2025-01-08 11:34:32 -08:00
Luis Malhadas
882d8f4ce1 solves the lack of line breaks in chat download as pdf #8405 2025-01-08 16:49:53 +01:00
Timothy Jaeryang Baek
987664f9b5 fix
Co-Authored-By: Izhar Firdaus <480984+kagesenshi@users.noreply.github.com>
2025-01-08 00:57:52 -08:00
Timothy Jaeryang Baek
b3c7ecaea1 fix: oauth webhook
Co-Authored-By: Izhar Firdaus <480984+kagesenshi@users.noreply.github.com>
2025-01-08 00:38:00 -08:00
tarmst
8117bf8603 Add admin check 2025-01-06 18:23:42 +00:00
Timothy Jaeryang Baek
f3a4d61f81 fix: actions 2025-01-03 21:31:24 -08:00
Timothy Jaeryang Baek
99c3194181 fix: API_KEY_ALLOWED_ENDPOINTS 2025-01-03 13:08:21 -08:00
Timothy Jaeryang Baek
fab82b51de fix: generate_queries 2025-01-01 20:13:28 -08:00
Albin Varghese
c561eb7bbd
fix: raise exceptions properly in process_chat_payload 2025-01-01 17:15:06 +05:30
Timothy Jaeryang Baek
46bcf98ef2 fix: usage stats 2024-12-30 15:52:07 -08:00
Timothy Jaeryang Baek
947f5600d6 refac 2024-12-30 15:39:35 -08:00
Timothy Jaeryang Baek
79ce6e0a3f refac 2024-12-30 11:29:18 -08:00
Timothy Jaeryang Baek
79d7e67e51 fix: ollama options 2024-12-29 16:30:36 -08:00
Timothy Jaeryang Baek
36d927e1ba refac 2024-12-28 19:31:03 -08:00
Timothy Jaeryang Baek
54daf3b765 fix: outlet filter hook 2024-12-28 18:05:07 -08:00
Timothy Jaeryang Baek
e6e8978f78 refac 2024-12-28 16:42:43 -08:00
Timothy Jaeryang Baek
5a720a4a31 refac 2024-12-27 22:46:50 -08:00
Timothy Jaeryang Baek
d55884b50e enh: ENABLE_REALTIME_CHAT_SAVE 2024-12-27 22:36:14 -08:00
Timothy Jaeryang Baek
99386bf680 fix: api key restrictions 2024-12-27 00:32:25 -08:00
Timothy Jaeryang Baek
cd9dae0f3a refac 2024-12-26 23:51:30 -08:00
Timothy Jaeryang Baek
4f93ecf519 refac 2024-12-26 20:58:46 -08:00
Timothy Jaeryang Baek
1e974439d9 enh: configurable api key endpoint restrictions 2024-12-26 20:57:51 -08:00
Timothy Jaeryang Baek
611955bc91 refac 2024-12-26 20:38:27 -08:00
Timothy Jaeryang Baek
e3937ada38 fix: ollama usage 2024-12-26 20:35:14 -08:00
Timothy Jaeryang Baek
da7fa09053 fix: non-stream chat completion 2024-12-25 22:21:44 -08:00
Timothy Jaeryang Baek
c4937cc144 enh: webui url 2024-12-25 09:50:57 -07:00
Timothy Jaeryang Baek
d701b69e05 enh: channel notification 2024-12-25 00:53:25 -07:00
Timothy Jaeryang Baek
0d7d6899b9 refac 2024-12-24 23:45:21 -07:00
Timothy Jaeryang Baek
a2366a20ba refac: api key auth allowed paths 2024-12-24 23:32:34 -07:00
Timothy Jaeryang Baek
688f11e1c5 refac 2024-12-24 21:17:24 -07:00
Timothy Jaeryang Baek
cd86161f33 refac 2024-12-24 19:34:56 -07:00
Timothy Jaeryang Baek
e51722348a refac 2024-12-24 19:27:17 -07:00
Timothy Jaeryang Baek
95da0734b6 refac 2024-12-24 17:56:46 -07:00
Timothy Jaeryang Baek
6b25139d4f refac: web search 2024-12-24 17:52:57 -07:00
Timothy Jaeryang Baek
a074991d3a refac 2024-12-24 17:01:17 -07:00
Timothy Jaeryang Baek
a2e0fbc943 refac: collection query status 2024-12-24 16:49:32 -07:00
Timothy Jaeryang Baek
06a692282b refac 2024-12-21 16:08:20 -07:00
Timothy Jaeryang Baek
556c75e876 refac 2024-12-21 09:59:12 -07:00
Timothy Jaeryang Baek
271acb2e67 refac 2024-12-21 09:45:52 -07:00
Timothy Jaeryang Baek
de2825bb89 refac 2024-12-20 23:09:40 -08:00
Timothy Jaeryang Baek
423fee347a refac: discord webhook 2024-12-20 23:05:22 -08:00
Timothy Jaeryang Baek
2fd7bbc259 refac 2024-12-20 22:56:37 -08:00
Timothy Jaeryang Baek
50db2514dc refac 2024-12-20 22:55:46 -08:00
Timothy Jaeryang Baek
4820ecc371 enh: webhook notification 2024-12-20 22:54:43 -08:00
Timothy Jaeryang Baek
cf0aca1487 fix 2024-12-20 18:37:25 -08:00
Timothy Jaeryang Baek
d9573befff feat: chat completion notification 2024-12-19 15:14:09 -08:00
Timothy Jaeryang Baek
1ea00a58f9 refac 2024-12-19 12:16:47 -08:00
Timothy Jaeryang Baek
4c989808d6 refac 2024-12-19 11:07:02 -08:00
Timothy Jaeryang Baek
0d5ce23885 refac 2024-12-19 01:05:47 -08:00
Timothy Jaeryang Baek
2be9e55545 refac: chat requests 2024-12-19 01:00:32 -08:00
Timothy Jaeryang Baek
0f6d302760 refac 2024-12-18 18:04:56 -08:00
Timothy Jaeryang Baek
1902d4238b chore: format 2024-12-17 13:51:29 -08:00
Timothy Jaeryang Baek
a14c06fa0b
Merge pull request #7920 from envision3d/ollama-structured-output
feat: pass structured output format through to ollama
2024-12-17 13:37:24 -08:00
Timothy Jaeryang Baek
9531edf6d6
Merge pull request #7923 from tarmst/groups-from-oauth
feat: Allow user groups to be managed by oauth
2024-12-17 13:36:34 -08:00
tarmst
0f33856182 Removing prints used for debugging 2024-12-17 19:50:59 +00:00
tarmst
9737869d11 Adding oauth group management for users upon login 2024-12-17 19:38:07 +00:00
envision3d
16d900247a feat: pass structured output format through to ollama 2024-12-17 09:33:32 -06:00
Davide Del Popolo
987b0f0dfd feat: add comfyui api key 2024-12-17 08:29:00 +01:00
Timothy Jaeryang Baek
18fd3db3d5 refac 2024-12-16 13:27:54 -08:00
Timothy Jaeryang Baek
ddfed87b15 fix 2024-12-15 22:44:47 -08:00
Timothy Jaeryang Baek
6efca03a8f refac 2024-12-13 22:51:43 -08:00
Timothy Jaeryang Baek
f9a05dd1e1 refac 2024-12-12 23:31:08 -08:00
Timothy Jaeryang Baek
1197c640c4 refac 2024-12-12 22:28:42 -08:00
Timothy Jaeryang Baek
4311bb7b99 wip 2024-12-12 20:22:17 -08:00
Timothy Jaeryang Baek
fe5519e0a2 wip 2024-12-11 19:52:46 -08:00
Timothy Jaeryang Baek
3bda1a8b88 wip 2024-12-11 18:36:59 -08:00
Timothy Jaeryang Baek
d3d161f723 wip 2024-12-10 00:54:13 -08:00
Timothy Jaeryang Baek
f6bec8d9f3 general refac 2024-12-10 00:00:01 -08:00
Timothy Jaeryang Baek
f264d82d13
Merge pull request #7551 from jonassvatos/patch-1
feat: Add OAUTH_ALLOWED_DOMAINS
2024-12-09 16:27:06 -08:00
Timothy Jaeryang Baek
8718067894
Merge pull request #7678 from ZaibanAli/feature/keycloak-terminate-sso-session
feat: implement OAuth logout functionality for keyclock to terminate sso session
2024-12-09 16:26:10 -08:00
Timothy Jaeryang Baek
a3ca632921 refac: id_token -> oauth_id_token 2024-12-09 16:25:56 -08:00
Timothy Jaeryang Baek
33099bf9e4 refac 2024-12-08 16:01:56 -08:00
Timothy Jaeryang Baek
8dcee6b6ed refac: pdf 2024-12-07 14:28:17 -08:00
Zaiban Ali
48d604a525 feat: enable OAuth signup configuration for signout functionality 2024-12-07 15:21:05 +01:00
Zaiban Ali
9918ec6246 feat: update signout functionality to use OpenID configuration for logout URL and remove the logout variable from config 2024-12-07 15:13:13 +01:00
Zaiban Ali
d5ce85f34a feat: implement OAuth logout functionality for keyclock to terminate sso session 2024-12-07 13:49:12 +01:00
jonassvatos
d42de65298 Add OAUTH_ALLOWED_DOMAINS for ability to restrict from which e-mail domains can users sign-up via OAuth 2024-12-02 10:23:05 +01:00
Timothy Jaeryang Baek
9b25efc3bb refac 2024-11-30 23:50:05 -08:00
Timothy Jaeryang Baek
2fac9b45cd chore: format 2024-11-30 23:36:30 -08:00
Diwakar
541ff6b41a
Feature to set HTTP header "Content-Security-Policy"
Introduce CONTENT_SECURITY_POLICY environment variable to set HTTP header "Content-Security-Policy".

Content Security Policy (CSP) is a feature that helps to prevent or minimize the risk of certain types of security threats. It consists of a series of instructions from a website to a browser, which instruct the browser to place restrictions on the things that the code comprising the site is allowed to do.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
2024-11-30 21:31:54 +07:00
Timothy Jaeryang Baek
1f53e0922e enh: autocompletion 2024-11-30 00:29:27 -08:00
Timothy Jaeryang Baek
f547f1424c refac 2024-11-29 01:02:32 -08:00
Timothy Jaeryang Baek
a07213b5be feat: autocompletion 2024-11-29 00:16:49 -08:00
Timothy Jaeryang Baek
0e8e9820d0 feat: autocomplete backend endpoint 2024-11-28 23:53:52 -08:00
Timothy Jaeryang Baek
17ed7351a4 refac 2024-11-27 19:24:20 -08:00
Timothy Jaeryang Baek
cbc7801b0e chore: format 2024-11-26 20:03:06 -08:00
Walker.Chen
4b536b5283 bugfix - {{CURRENT_WEEKDAY}} is not working
Signed-off-by: Walker.Chen <walker_chen@moremote.com>  https://uniwillai.net
2024-11-27 08:53:45 +08:00
Timothy Jaeryang Baek
bd28e1ed7d refac: rag prompt template 2024-11-24 18:49:56 -08:00
Pierre Glandon
b2d3bfa3a8 feat: add description in Tool 2024-11-23 11:22:12 +01:00
Michael Poluektov
b4e7957a00 docstring quickfix 2024-11-22 20:51:48 +00:00
Michael Poluektov
8abf5d57c1 remove unused schemas file 2024-11-21 23:49:58 +00:00
Michael Poluektov
c03bfd141e fix optional args not present 2024-11-21 17:41:35 +00:00
Michael Poluektov
70838148e7 fix tools metadata 2024-11-21 17:19:56 +00:00
Timothy Jaeryang Baek
7a585fbaf3 enh: option to disable api auth 2024-11-19 12:17:23 -08:00
Antti Pyykkönen
979e6e5a79 feat: support for configuring private api key use 2024-11-19 16:14:52 +02:00
Timothy Jaeryang Baek
dbb67a12ca enh: retrieval query generation 2024-11-19 02:24:32 -08:00
Timothy Jaeryang Baek
f5df0625e3 enh: file upload user permission 2024-11-16 21:41:34 -08:00
Timothy Jaeryang Baek
07e0712b87 refac: get permissions 2024-11-16 21:16:42 -08:00
Timothy Jaeryang Baek
c0371f6525 enh: user permissions 2024-11-16 21:07:56 -08:00
Timothy Jaeryang Baek
b562067e91 refac: tools 2024-11-16 18:31:13 -08:00
Timothy Jaeryang Baek
0a8f69285c refac: toolkit -> tools 2024-11-16 17:54:38 -08:00
Timothy Jaeryang Baek
060a2791ba refac: rm print statement 2024-11-16 17:18:18 -08:00
Timothy Jaeryang Baek
227cca35e8 enh: knowledge access control 2024-11-16 16:51:55 -08:00
Timothy Jaeryang Baek
932de8f1e2 refac 2024-11-16 04:41:07 -08:00
Timothy Jaeryang Baek
2ab5b2fd71 wip: access control backend 2024-11-15 01:29:07 -08:00
Timothy Jaeryang Baek
2fdbab6640
Merge pull request #6761 from diegmonti/feat/permissions-policy
feat: Add permissions-policy to security headers
2024-11-09 00:30:48 -08:00
Diego Monti
b1805380dc feat: Add permissions-policy to security headers 2024-11-06 18:16:22 +01:00
Timothy J. Baek
4616b508b1 refac: token handling 2024-11-05 21:14:02 -08:00
Timothy J. Baek
bcf88585de fix: pdf issue w/ markdown 2024-10-28 05:47:53 -07:00
Timothy Jaeryang Baek
554e181ccb
Merge pull request #6432 from diwakar-s-maurya/main
fix: Prevent crash while setting Strict-Transport-Security security header
2024-10-26 00:23:15 -07:00
Diwakar
0a7bc50279
Prevent crash while setting Strict-Transport-Security security header 2024-10-26 13:45:28 +07:00
Fabian Fischer
23461332b9
fix: boolean values don't need to be accessed by .value 2024-10-25 09:44:03 +02:00
Willnow, Patrick
1b5ac834ef fix: get userinfo from endpoint, not only from token
as was suggested by @alvarolopez in #6262
2024-10-22 21:55:12 +02:00
Timothy J. Baek
424062d75f fix: emoji generation 2024-10-22 11:23:38 -07:00
Timothy J. Baek
9f285fb2fb feat: arena models 2024-10-22 03:16:48 -07:00
Timothy J. Baek
fc71f441c4 refac 2024-10-21 13:45:28 -07:00
Timothy J. Baek
e2d4a69750 refac: title generation 2024-10-21 04:24:17 -07:00
Timothy J. Baek
b4e73c7f19 refac: convert_payload_openai_to_ollama 2024-10-21 04:10:28 -07:00
Timothy J. Baek
9936583477 chore: format 2024-10-20 18:38:06 -07:00
Timothy Jaeryang Baek
768b7e139c
Merge branch 'dev' into dev 2024-10-20 18:37:20 -07:00
Timothy J. Baek
d795940ced feat: chat auto tag 2024-10-19 20:34:17 -07:00
Willnow, Patrick
9ad07ad0ce Add WEBUI_SESSION_COOKIE-settings missing from merge conflict 2024-10-16 20:30:35 +02:00
Willnow, Patrick
b888ee17ff Merge branch 'main' into dev
# Conflicts:
#	backend/open_webui/main.py
2024-10-16 20:16:05 +02:00
Willnow, Patrick
57d54160d3 Merge branch 'implement-oauth-role-management'
# Conflicts:
#	backend/open_webui/main.py
2024-10-16 16:54:43 +02:00
Willnow, Patrick
8eebd6bce1 Finish reorganizing oauth code 2024-10-16 16:32:57 +02:00
Willnow, Patrick
08ff494754 WIP
- refactoring oauth functions to enable refresh functionality
2024-10-16 09:42:47 +02:00
Timothy J. Baek
86c961e342 fix 2024-10-15 03:30:02 -07:00
Timothy J. Baek
b4cd503a02 refac 2024-10-15 02:51:08 -07:00
Timothy J. Baek
97bb9d41a6 refac 2024-10-15 02:48:41 -07:00
Timothy J. Baek
5273dc4535 refac 2024-10-13 00:21:06 -07:00
Timothy J. Baek
112cbdccbb revert: pdf gen 2024-10-13 00:05:28 -07:00
noczero
c41261e72b feat: PDF generator to export chat 2024-10-13 11:20:09 +07:00
Timothy J. Baek
d23f05fe0a refac 2024-10-06 14:52:12 -07:00
t
bdb2ce9448 fix: Unsupported JSON schema type {type_} 2024-10-02 15:34:48 +03:00
Timothy J. Baek
3a0a1aca11 refac: task ollama stream support 2024-09-21 01:07:57 +02:00
Timothy J. Baek
41926172d3 fix/refac: use ollama /api/chat endpoint for tasks 2024-09-21 00:30:13 +02:00
Timothy J. Baek
1053863175 chore: format 2024-09-19 03:24:39 +02:00
Phil Ogbonna
896baf021b update comment block 2024-09-16 22:02:55 -03:00
Phil Ogbonna
499e5e4f60 feat: security response headers 2024-09-16 21:53:30 -03:00
Michał Surmaczewski
8e6ea49e0e fix: incorrect casting of top_p and frequency_penalty 2024-09-08 17:52:58 +02:00
Timothy J. Baek
5c8fb4b3d5 refac: web search 2024-09-07 04:50:29 +01:00
Timothy J. Baek
ff46fe2b4a refac 2024-09-07 03:09:57 +01:00
Timothy J. Baek
03d5a670f6 refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00