Timothy Jaeryang Baek 4 달 전
부모
커밋
04287eb6d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/open_webui/utils/oauth.py

+ 1 - 1
backend/open_webui/utils/oauth.py

@@ -305,7 +305,7 @@ class OAuthManager:
                 get_kwargs["headers"] = {
                     "Authorization": f"Bearer {access_token}",
                 }
-            async with aiohttp.ClientSession() as session:
+            async with aiohttp.ClientSession(trust_env=True) as session:
                 async with session.get(picture_url, **get_kwargs) as resp:
                     if resp.ok:
                         picture = await resp.read()