"src/sdk/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "a38725050d463406b00ba0f1af3b334182c4d20e"
Unverified Commit 3069fa80 authored by mindspawn's avatar mindspawn Committed by GitHub
Browse files

Update main.py to enable http_proxy use for checking for new versions

parent a8d80f93
...@@ -902,7 +902,7 @@ async def get_app_changelog(): ...@@ -902,7 +902,7 @@ async def get_app_changelog():
@app.get("/api/version/updates") @app.get("/api/version/updates")
async def get_app_latest_release_version(): async def get_app_latest_release_version():
try: try:
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession(trust_env=True) as session:
async with session.get( async with session.get(
"https://api.github.com/repos/open-webui/open-webui/releases/latest" "https://api.github.com/repos/open-webui/open-webui/releases/latest"
) as response: ) as response:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment