mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-14 19:16:08 -05:00
[PR #1758] [CLOSED] Fix subprocess issue on Windows and improve development experience #7565
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/1758
Author: @rob-x-ai
Created: 4/26/2024
Status: ❌ Closed
Base:
dev← Head:dev📄 Description
Pull Request Checklist
Description
This pull request addresses several issues and makes improvements to the Open WebUI backend:
Fixes a syntax warning in the
main.pyfile caused by invalid escape sequences in the ASCII art. The fix involves adding therprefix before the triple quotes to treat the string as a raw string, eliminating the syntax warning.Resolves the subprocess issue on Windows by modifying the
run_background_processfunction inapps\litellm\main.py. The function now usessubprocess.Popeninstead of theasynciosubprocess functions to create a subprocess, ensuring compatibility with Windows.Updates the
dev_windows.batscript to include the necessary changes for handling theWEBUI_SECRET_KEYand adding the--reloadflag for development purposes.These changes improve the stability and development experience of the Open WebUI backend on Windows systems.
Changelog Entry
Fixed
main.pycaused by invalid escape sequences in the ASCII art.run_background_processfunction inapps\litellm\main.pyto usesubprocess.Popen.Changed
dev_windows.batscript to handle theWEBUI_SECRET_KEYand add the--reloadflag for development purposes.Documentation
dev_windows.batscript.Dependencies
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.