소스 검색

feat: Add Google Drive config values to /api/config endpoint

Taylor Wilsdon (aider) 4 달 전
부모
커밋
513d88b26d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      backend/open_webui/main.py

+ 4 - 0
backend/open_webui/main.py

@@ -2246,6 +2246,10 @@ async def get_app_config(request: Request):
                 else {}
             ),
         },
+        "google_drive": {
+            "client_id": GOOGLE_DRIVE_CLIENT_ID.value,
+            "api_key": GOOGLE_DRIVE_API_KEY.value
+        },
         **(
             {
                 "default_models": webui_app.state.config.DEFAULT_MODELS,