mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #11605] [MERGED] dependency: Update fake-useragent to v2.1.0 #22765
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11605
Author: @melroy89
Created: 3/12/2025
Status: ✅ Merged
Merged: 3/14/2025
Merged by: @tjbck
Base:
dev← Head:update_fake_useragent📝 Commits (1)
b02e6c6Deps: Update fake-useragent to v2.1.0📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
backend/requirements.txt(+1 -1)📝
pyproject.toml(+1 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Update fake-useragent to v2.1.0
I'm the maintainer of fake-useragent: https://github.com/fake-useragent/fake-useragent. And I notice you are using a old version (like 1 year old version) of fake-useragent as your dependency.
Changed
requirements.txtas well asmyproject.tomlBreaking Changes
No breaking change in Open-WebUI.
However... Fake-useragent have the following breaking change from v1 to v2:
["Google", "Chrome", "Firefox", "Edge", "Opera"," Safari", "Android", "Yandex Browser", "Samsung Internet", "Opera Mobile", "Mobile Safari", "Firefox Mobile", "Firefox iOS", "Chrome Mobile", "Chrome Mobile iOS", "Mobile Safari UI/WKWebView", "Edge Mobile", "DuckDuckGo Mobile", "MiuiBrowser", "Whale", "Twitter", "Facebook", "Amazon Silk"]firefox,edge,chrome,opera,safari. In these cases you will receive both mobile and non-mobile user-agent strings by default.["desktop", "mobile", "tablet"](nopcanymore)["Windows", "Linux", "Ubuntu", "Chrome OS", "Mac OS X", "Android", "iOS"]. And again case sensitive.Additional Information
I didn't saw any line of using using:
from fake_useragent import UserAgent. So I do not know how to validate it.However, users like https://github.com/open-webui/open-webui/issues/1024, do need to be aware of the breaking change in
fake-useragentin case they explicitly where using a specific browser, os or platform.In case people where using just the
randommethod, it will not cause any breaking changes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.