mirror of
https://github.com/open-webui/open-webui
synced 2024-12-29 15:25:29 +00:00
Merge pull request #8115 from taylorwilsdon/fix_drive_integration
Fix drive integration
This commit is contained in:
commit
1b7ee5dd2b
@ -307,17 +307,6 @@ GOOGLE_CLIENT_SECRET = PersistentConfig(
|
|||||||
os.environ.get("GOOGLE_CLIENT_SECRET", ""),
|
os.environ.get("GOOGLE_CLIENT_SECRET", ""),
|
||||||
)
|
)
|
||||||
|
|
||||||
GOOGLE_DRIVE_CLIENT_ID = PersistentConfig(
|
|
||||||
"GOOGLE_DRIVE_CLIENT_ID",
|
|
||||||
"google_drive.client_id",
|
|
||||||
os.environ.get("GOOGLE_DRIVE_CLIENT_ID", ""),
|
|
||||||
)
|
|
||||||
|
|
||||||
GOOGLE_DRIVE_API_KEY = PersistentConfig(
|
|
||||||
"GOOGLE_DRIVE_API_KEY",
|
|
||||||
"google_drive.api_key",
|
|
||||||
os.environ.get("GOOGLE_DRIVE_API_KEY", ""),
|
|
||||||
)
|
|
||||||
|
|
||||||
GOOGLE_OAUTH_SCOPE = PersistentConfig(
|
GOOGLE_OAUTH_SCOPE = PersistentConfig(
|
||||||
"GOOGLE_OAUTH_SCOPE",
|
"GOOGLE_OAUTH_SCOPE",
|
||||||
@ -1223,6 +1212,17 @@ ENABLE_GOOGLE_DRIVE_INTEGRATION = PersistentConfig(
|
|||||||
os.getenv("ENABLE_GOOGLE_DRIVE_INTEGRATION", "False").lower() == "true",
|
os.getenv("ENABLE_GOOGLE_DRIVE_INTEGRATION", "False").lower() == "true",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
GOOGLE_DRIVE_CLIENT_ID = PersistentConfig(
|
||||||
|
"GOOGLE_DRIVE_CLIENT_ID",
|
||||||
|
"google_drive.client_id",
|
||||||
|
os.environ.get("GOOGLE_DRIVE_CLIENT_ID", ""),
|
||||||
|
)
|
||||||
|
|
||||||
|
GOOGLE_DRIVE_API_KEY = PersistentConfig(
|
||||||
|
"GOOGLE_DRIVE_API_KEY",
|
||||||
|
"google_drive.api_key",
|
||||||
|
os.environ.get("GOOGLE_DRIVE_API_KEY", ""),
|
||||||
|
)
|
||||||
|
|
||||||
# RAG Content Extraction
|
# RAG Content Extraction
|
||||||
CONTENT_EXTRACTION_ENGINE = PersistentConfig(
|
CONTENT_EXTRACTION_ENGINE = PersistentConfig(
|
||||||
|
@ -347,7 +347,7 @@ async def get_rag_config(request: Request, user=Depends(get_admin_user)):
|
|||||||
return {
|
return {
|
||||||
"status": True,
|
"status": True,
|
||||||
"pdf_extract_images": request.app.state.config.PDF_EXTRACT_IMAGES,
|
"pdf_extract_images": request.app.state.config.PDF_EXTRACT_IMAGES,
|
||||||
"ENABLE_GOOGLE_DRIVE_INTEGRATION": request.app.state.config.ENABLE_GOOGLE_DRIVE_INTEGRATION,
|
"enable_google_drive_integration": request.app.state.config.ENABLE_GOOGLE_DRIVE_INTEGRATION,
|
||||||
"content_extraction": {
|
"content_extraction": {
|
||||||
"engine": request.app.state.config.CONTENT_EXTRACTION_ENGINE,
|
"engine": request.app.state.config.CONTENT_EXTRACTION_ENGINE,
|
||||||
"tika_server_url": request.app.state.config.TIKA_SERVER_URL,
|
"tika_server_url": request.app.state.config.TIKA_SERVER_URL,
|
||||||
|
Loading…
Reference in New Issue
Block a user