mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
v0.5.7 - OpenAI packages versioning issue #3437
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?
Originally created by @DmitriyAlergant on GitHub (Jan 26, 2025).
Bug Report
Installation Method
Docker, v 0.5.7
Confirmation:
Current Behavior:
Certain custom functions that relied on pre-packaged OpenAI SDK no longer work in v0.5.7.
Example: https://openwebui.com/f/hasanraiyan/openai but also several others that relied on "import openai" SDK rather then doing their own http queries.
There is an error on deploying the function (as it attempts to fetch a list of models):
Expected Behavior:
Functions that relied on pre-packaged OpenAI SDK (import openai) continue to work. They worked till recently (at least till 0.5.4)
Description
Bug Summary:
This is a well-known OpenAI client error related to versioning conflicts of their SDK and httpx package:
https://community.openai.com/t/error-with-openai-1-56-0-client-init-got-an-unexpected-keyword-argument-proxies/1040332/2
A solution is either to upgrade the SDK to 1.55.3 or 1.56.1, or to downgrade httpx.
Reproduction Details
Steps to Reproduce:
Clear-case, not dependent on any community functions. Attempt to create the following function
An error "Client.init() got an unexpected keyword argument 'proxies'" comes up.
@DmitriyAlergant commented on GitHub (Jan 26, 2025):
Update: it's broken since 0.5.5. Still works in 0.5.4 and below.
P.S> No idea how built-in OpenAI integration connection still works. It does work indeed, only custom functions using OpenAI SDK are broken.
@rgaricano commented on GitHub (Jan 26, 2025):
It seem that is an openai python lib dependencies issue ( https://github.com/openai/openai-python/issues/1903 )
the solution for workaround is downgrade httpx to 0.27.2 (httpx==0.27.2)
check your versions libs.
@DmitriyAlergant commented on GitHub (Jan 29, 2025):
@tjbck I thought of submitting a PR (even if only for requirements.txt bump) but frankly there is nothing even to submit except a dummy commit. The issue should self-resolve with the next build...
Probably some PyPi packages updates in last 5 days may have fixed it... In the future, consider freezing packages versions to requirements.txt?
Any plans when 0.5.8 may be coming up?
@DmitriyAlergant commented on GitHub (Feb 12, 2025):
Verified, the issue is solved (at least in 0.5.10), thanks.