浏览代码

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,