Spaces:
Running
Running
Commit ·
56d1732
1
Parent(s): 89ac8da
ok
Browse files- app/api/server.py +0 -4
- app/core/vector_store/deps.py +1 -1
app/api/server.py
CHANGED
|
@@ -11,7 +11,6 @@ from app.api.v1.router import api_v1_router
|
|
| 11 |
from app.api.v1.system import is_maintenance
|
| 12 |
from app.config import get_settings
|
| 13 |
from app.core.auth.deps import init_auth_db
|
| 14 |
-
from app.core.banner import get_banner
|
| 15 |
from app.core.database import pool_manager
|
| 16 |
from app.core.logger import get_logger
|
| 17 |
from app.core.redis_client import close_redis, create_redis_client
|
|
@@ -45,9 +44,6 @@ async def _self_ping():
|
|
| 45 |
|
| 46 |
@asynccontextmanager
|
| 47 |
async def lifespan(app: FastAPI):
|
| 48 |
-
print(get_banner())
|
| 49 |
-
print("=" * 60)
|
| 50 |
-
print()
|
| 51 |
if not _settings.tidb_instance_list:
|
| 52 |
_logger.error(
|
| 53 |
"No TiDB instances configured! Set TIDB_INSTANCES environment variable "
|
|
|
|
| 11 |
from app.api.v1.system import is_maintenance
|
| 12 |
from app.config import get_settings
|
| 13 |
from app.core.auth.deps import init_auth_db
|
|
|
|
| 14 |
from app.core.database import pool_manager
|
| 15 |
from app.core.logger import get_logger
|
| 16 |
from app.core.redis_client import close_redis, create_redis_client
|
|
|
|
| 44 |
|
| 45 |
@asynccontextmanager
|
| 46 |
async def lifespan(app: FastAPI):
|
|
|
|
|
|
|
|
|
|
| 47 |
if not _settings.tidb_instance_list:
|
| 48 |
_logger.error(
|
| 49 |
"No TiDB instances configured! Set TIDB_INSTANCES environment variable "
|
app/core/vector_store/deps.py
CHANGED
|
@@ -17,7 +17,7 @@ VS_TABLES: dict[str, str] = {
|
|
| 17 |
name VARCHAR(255) NOT NULL,
|
| 18 |
path VARCHAR(1024) NOT NULL,
|
| 19 |
description VARCHAR(1024) DEFAULT '',
|
| 20 |
-
metadata_json TEXT
|
| 21 |
created_at VARCHAR(64) NOT NULL
|
| 22 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
| 23 |
""",
|
|
|
|
| 17 |
name VARCHAR(255) NOT NULL,
|
| 18 |
path VARCHAR(1024) NOT NULL,
|
| 19 |
description VARCHAR(1024) DEFAULT '',
|
| 20 |
+
metadata_json TEXT,
|
| 21 |
created_at VARCHAR(64) NOT NULL
|
| 22 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
| 23 |
""",
|