feat: files endpoint

This commit is contained in:
Timothy J. Baek
2024-06-18 11:36:55 -07:00
parent ba7091c25b
commit 146e550239
4 changed files with 242 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import requests
import mimetypes
import shutil
import os
import uuid
import inspect
import asyncio
@@ -76,6 +77,7 @@ from config import (
VERSION,
CHANGELOG,
FRONTEND_BUILD_DIR,
UPLOAD_DIR,
CACHE_DIR,
STATIC_DIR,
ENABLE_OPENAI_API,
@@ -1378,6 +1380,7 @@ async def update_pipeline_valves(
)
@app.get("/api/config")
async def get_app_config():
# Checking and Handling the Absence of 'ui' in CONFIG_DATA