Browse Source

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

Taylor Wilsdon (aider) 4 months ago
parent
commit
513d88b26d
1 changed files with 4 additions and 0 deletions
  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 {}
                 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,
                 "default_models": webui_app.state.config.DEFAULT_MODELS,