Rômulo Mendes Figueiredo
b52a7e3543
refac: conditional import of chromadb
2025-02-25 11:35:36 -03:00
Timothy Jaeryang Baek
9f27d7710b
chore: format
2025-02-25 01:46:08 -08:00
Timothy Jaeryang Baek
7e2b2ec761
fix: openai usage display issue
2025-02-25 01:35:59 -08:00
Timothy Jaeryang Baek
b964b175d4
refac
2025-02-25 01:03:15 -08:00
Timothy Jaeryang Baek
46c4da4864
enh: "stream" hook
2025-02-25 01:00:29 -08:00
Timothy Jaeryang Baek
205013da2f
Merge pull request #10683 from grandtele/fix/openai-o1-legacy-roles
...
fix: restore compatibility for older o1 models (o1-mini, o1-preview)
2025-02-24 23:35:18 -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
23ff2988bf
Merge branch 'dev' into feat/onedrive-file-attach
2025-02-24 11:51:59 -08:00
hurxxxx
4cc3102758
feat: onedrive file picker integration
2025-02-25 01:47:07 +09:00
grand
8c020488dd
* fix: restore compatibility for older o1 models (o1-mini, o1-preview)
2025-02-24 12:04:06 +01:00
Timothy Jaeryang Baek
0ba45ad82b
Merge pull request #10617 from grandtele/fix/openai-o1-o3-role
...
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
fix: replace "system" with "developer" for o1 and o3 models
2025-02-23 22:33:59 -08:00
orenzhang
9748a030f7
Merge remote-tracking branch 'oui/dev' into feat_s3_virtual_path
2025-02-23 20:54:04 +08:00
orenzhang
1060d62add
refactor(s3): code lint
2025-02-23 20:52:22 +08:00
orenzhang
4c3dd84b32
feat(s3): support for s3 virtual path style
2025-02-23 20:31:08 +08:00
grand
82657acdce
* fix: adjust role mapping for o1 and o3 models in openai_o1_o3_handler
2025-02-23 13:20:45 +01:00
Timothy Jaeryang Baek
32fa8d5143
Merge pull request #10566 from oloflarsson/feat/async-pipes
...
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
feat: add optional support for async pipes
2025-02-22 02:47:08 -08:00
Timothy Jaeryang Baek
50dec12072
refac
2025-02-21 22:15:22 -08:00
hopeless
7bfa29fa81
Update payload.py
...
Fixes ollama native tool calling because native tool calling content will be str '', and tool call processing will be completely ignored.
2025-02-22 12:13:14 +08:00
Timothy Jaeryang Baek
b14e75dd6c
feat: added Trust Proxy Environment switch in Web Search admin settings tab.
...
Co-Authored-By: harry zhou <67385896+harryzhou2000@users.noreply.github.com>
2025-02-21 13:40:11 -08:00
Timothy Jaeryang Baek
6623583004
Merge pull request #10549 from jeannotdamoiseaux/fix/oauth-groups-default-typeerror
...
Fix: Ensure `user_oauth_groups` defaults to an empty list to prevent TypeError
2025-02-21 13:37:35 -08:00
Jeannot Damoiseaux
d50098b622
Fix: Ensure user_oauth_groups
defaults to an empty list to prevent TypeError
...
When the OAuth groups claim does not yield a list, `user_oauth_groups` was previously
set to None, causing a TypeError during membership checks. Changed this default to
an empty list (`[]`) to ensure the variable is always iterable, preventing errors
for non-admin users while logging in.
This fix ensures stability in the `update_user_groups` function.
2025-02-21 22:25:22 +01:00
Timothy Jaeryang Baek
ab1b910d80
Merge pull request #10486 from Micca/feature/document_intelligence_support
...
Feat: Adding Support for Azure AI Document Intelligence for Content Extraction (Revised)
2025-02-21 10:56:18 -08:00
Timothy Jaeryang Baek
613a087387
refac
2025-02-21 10:55:03 -08:00
Timothy Jaeryang Baek
b0a19a9801
Merge pull request #10501 from Synergyst/feature/openai-tts-custom-url-fix-dev
...
fix: Custom OpenAI-TTS URL to fetch actual voices and models
2025-02-21 10:52:41 -08:00
Timothy Jaeryang Baek
086a78f863
Merge pull request #10521 from Seniorsimo/add-stop-parameter
...
**fix** Added support for stop parameter in OpenAI to Ollama conversion
2025-02-21 10:51:49 -08:00
Simone
fb3886cf04
Added support for stop parameter
2025-02-21 18:46:10 +01:00
Bob McElrath
c9079d4b4d
Merge branch 'open-webui:dev' into dev
2025-02-21 09:13:53 -05:00
Bob McElrath
c4b441de65
Support thinking tags used by Openthinker
2025-02-21 09:12:34 -05:00
Synergyst
f789ad59a9
Update audio.py
...
Removed original code that was commented out
2025-02-21 04:47:46 -06:00
Coleton M
cdf620e6ee
Update audio.py to fetch custom URL voices and models
2025-02-21 04:41:45 -06:00
Olof Larsson
ab1f2ae914
feat/async-pipes
2025-02-21 08:24:48 +01:00
Timothy Jaeryang Baek
e31f680788
refac
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
2025-02-20 20:46:00 -08:00
Simone
a8859a8145
Fix on ollama to openai conversion - stream can return a single message with content
2025-02-20 21:25:32 +01:00
Timothy Jaeryang Baek
0a7a265ff5
Merge pull request #10445 from PkmX/pr-fix-web-search-proxy
...
fix: correctly interpret RAG_WEB_SEARCH_TRUST_ENV as bool
2025-02-20 11:16:47 -08:00
Timothy Jaeryang Baek
93d486d50e
revert: faulty dedup code
2025-02-20 11:02:45 -08:00
PkmX
af10aba805
fix: correctly interpret RAG_WEB_SEARCH_TRUST_ENV as bool
2025-02-21 01:46:17 +08:00
Victor Ribeiro
39c6ecb50d
feat: add audit logger middleware and custom logger using loguru
2025-02-20 11:15:38 -03:00
dependabot[bot]
eb218f6674
build(deps): bump the pip group across 2 directories with 1 update
...
Bumps the pip group with 1 update in the / directory: [python-jose](https://github.com/mpdavis/python-jose ).
Bumps the pip group with 1 update in the /backend directory: [python-jose](https://github.com/mpdavis/python-jose ).
Updates `python-jose` from 3.3.0 to 3.4.0
- [Release notes](https://github.com/mpdavis/python-jose/releases )
- [Changelog](https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mpdavis/python-jose/compare/3.3.0...3.4.0 )
Updates `python-jose` from 3.3.0 to 3.4.0
- [Release notes](https://github.com/mpdavis/python-jose/releases )
- [Changelog](https://github.com/mpdavis/python-jose/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mpdavis/python-jose/compare/3.3.0...3.4.0 )
---
updated-dependencies:
- dependency-name: python-jose
dependency-type: direct:production
dependency-group: pip
- dependency-name: python-jose
dependency-type: direct:production
dependency-group: pip
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-20 10:02:35 +00:00
Timothy Jaeryang Baek
eeb00a5ca2
chore: format
2025-02-20 01:01:29 -08:00
labanzu
a3d3ca293e
chore: optimize pdf view
2025-02-20 15:55:18 +08:00
Timothy Jaeryang Baek
0e20b15afe
Merge pull request #10410 from xinhai-ai/dev
...
fix: GitHub OAuth email retrieval when public email is not set
2025-02-19 23:16:46 -08:00
星海
de8492de34
fix: GitHub OAuth email retrieval when public email is not set
2025-02-20 15:06:07 +08:00
Liu Yue
90d9cdacfa
fix: respect proxy and timeout settings in audio-related aiohttp requests
2025-02-20 14:55:45 +08:00
Timothy Jaeryang Baek
13e58c1b64
Merge pull request #10360 from ferret99gt/ollama-option-conversion-fixes
...
fix: Update Ollama option handling in payload.py's convert_payload_openai_to_ollama
2025-02-19 22:44:07 -08:00
Timothy Jaeryang Baek
d5a049dc54
Merge pull request #10401 from xinhai-ai/main
...
fix: email claim doesn't effect
2025-02-19 20:43:43 -08:00
星海
dec44e4bcd
Fix: email claim doesn't effect
2025-02-20 11:32:48 +08:00
Timothy Jaeryang Baek
ae0554224a
refac
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
2025-02-19 18:22:31 -08:00
Timothy Jaeryang Baek
fe5c4b95d5
enh: configurable jupyter execution timeout
2025-02-19 17:05:37 -08:00
Timothy J. Baek
90fca993f3
wip: jupyter code excution timeout
2025-02-19 16:41:54 -08:00
dannyl1u
8aa6415500
include logit_bias in form_data
2025-02-19 16:23:58 -08:00
Timothy Jaeryang Baek
efefff71d1
Merge pull request #10363 from ferret99gt/ollama-model-option-conversion-updates
...
feat: Update Payload's apply_model_params_to_body_ollama with full Ollama supported options
2025-02-19 12:32:46 -08:00
Timothy Jaeryang Baek
5da47de6eb
Merge pull request #10366 from tarmst/fix-no-nested-claims-for-group-oauth
...
Fix: Add nested claim search for group oauth management
2025-02-19 12:23:54 -08:00
Timothy Jaeryang Baek
ea4ad3944c
Merge pull request #10378 from Seniorsimo/message-conversion
...
**fix** Add support for tool message in openai to Ollama message conversion
2025-02-19 12:23:11 -08:00
Timothy Jaeryang Baek
ea3f873ae9
Merge pull request #10377 from Seniorsimo/chat-message-validator
...
**fix** ChatMessage validator: content can be null when using tools
2025-02-19 12:22:31 -08:00
Timothy Jaeryang Baek
de7e8fd918
Merge pull request #10362 from Seniorsimo/usage-openai-compatible
...
**fix** Added OpenAI usage standard keys to API signature
2025-02-19 12:20:41 -08:00
Simone
6f698073bb
Add support for tool message in openai to Ollama message conversion
2025-02-19 21:11:39 +01:00
Simone
8662108344
Fix on ChatMessage validator: content can be null when using tools
2025-02-19 21:03:23 +01:00
dannyl1u
4a2a12fd21
feat: scaffolding for logit_bias
2025-02-19 10:33:49 -08:00
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
Youggls
1692a52a6a
fix(deps): upgrade pydantic from v2.9.2 to v2.10.3+ in requirements.txt and pyproject.toml
2025-02-19 19:08:17 +08:00
Youggls
0fb3c08181
feat: Add Firecrawl web loader integration
2025-02-19 16:54:44 +08:00
Timothy Jaeryang Baek
c073b8b4ee
refac
2025-02-18 23:49:27 -08:00
Timothy Jaeryang Baek
9ca4727573
enh: web search behaviour
2025-02-18 21:29:27 -08:00
Timothy Jaeryang Baek
5465cabd40
refac
2025-02-18 21:17:09 -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
4ef7aff663
refac
2025-02-18 19:35:22 -08:00
Timothy Jaeryang Baek
8f7528a0bc
Merge pull request #10272 from mkhludnev/dedupe-rag-docs
...
fix: dedupe results from multiple queries
2025-02-18 19:34:33 -08:00
Timothy Jaeryang Baek
5a7f9c81e3
Merge pull request #10308 from crpietschmann/azure-storage
...
feat: Add AzureStorageProvider for Azure Blob Storage support
2025-02-18 19:32:17 -08:00
Timothy Jaeryang Baek
886d756200
Merge pull request #10285 from the-c0d3br34k3r/issue8885_auth
...
fix: Fixed an issue with clearing application cookies during OAuth signout
2025-02-18 19:31:24 -08:00
Timothy Jaeryang Baek
32a90deeaf
Merge pull request #10309 from JoaoCostaIFG/gemini_image_gen
...
feat: add Google Imagen/Gemini API image generation
2025-02-18 19:30:20 -08:00
JoaoCostaIFG
918764a4f7
fix: Use x-goog-api-key header for Gemini image generation
...
Place the API key in a header instead of a query parameter. This avoids leaking the API key in logs on request failure, etc...
2025-02-19 00:00:54 +00:00
JoaoCostaIFG
e56b5c063c
feat: add Google Imagen/Gemini API image generation
...
Adds support for Gemini API as an image generation backend. By setting the API Base URL to something like 'https://generativelanguage.googleapis.com/v1beta ' and providing their API Key, users should be able to start generating images using models like 'imagen-3.0-generate-002'.
2025-02-18 22:39:32 +00:00
Chris Pietschmann
a232f1f34e
Update test_provider.py
2025-02-18 15:53:54 -05:00
Chris Pietschmann
9864185b57
Update test_provider.py
2025-02-18 15:49:44 -05:00
Chris Pietschmann
888ae00867
Update test_provider.py
2025-02-18 15:39:47 -05:00
Chris Pietschmann
7b5f82ffc7
Update test_provider.py
2025-02-18 15:26:04 -05:00
Chris Pietschmann
7404494772
formatting
2025-02-18 15:19:35 -05:00
Chris Pietschmann
a29f83c4e7
updates to formatting
2025-02-18 15:17:49 -05:00
Chris Pietschmann
4c352ff974
Update test_provider.py
2025-02-18 15:14:46 -05:00
Chris Pietschmann
55bd7a1c65
Update test_provider.py
2025-02-18 15:13:30 -05:00
Chris Pietschmann
9c8c837ab9
Update test_provider.py
2025-02-18 15:12:35 -05:00
Chris Pietschmann
2c328cc7c9
Update test_provider.py
2025-02-18 15:04:49 -05:00
Chris Pietschmann
56060db29d
Update test_provider.py
2025-02-18 15:01:26 -05:00
Chris Pietschmann
7d1ec20429
Update test_provider.py
2025-02-18 14:57:51 -05:00
Chris Pietschmann
ff5f0c3e39
Update test_provider.py
2025-02-18 14:51:17 -05:00