feat: Update Python version requirements and refine dependency constraints in configuration (#123)

* feat: Implement data synthesis task management with database models and API endpoints

* feat: Update Python version requirements and refine dependency constraints in configuration
This commit is contained in:
Dallas98
2025-12-02 16:34:22 +08:00
committed by GitHub
parent 8b164cb012
commit bcd1bc1534
3 changed files with 3124 additions and 34 deletions

View File

@@ -1,23 +1,22 @@
from fastapi import FastAPI, Request, HTTPException, status
from fastapi.middleware.cors import CORSMiddleware
from fastapi.exceptions import RequestValidationError
from starlette.exceptions import HTTPException as StarletteHTTPException
from contextlib import asynccontextmanager
from typing import Dict, Any
from fastapi import FastAPI, HTTPException
from fastapi.exceptions import RequestValidationError
from sqlalchemy import text
from starlette.exceptions import HTTPException as StarletteHTTPException
from .core.config import settings
from .core.logging import setup_logging, get_logger
from .db.session import engine, AsyncSessionLocal
from .module.shared.schema import StandardResponse
from .module import router
from .db.session import AsyncSessionLocal
from .exception import (
starlette_http_exception_handler,
fastapi_http_exception_handler,
validation_exception_handler,
general_exception_handler
)
from .module import router
from .module.shared.schema import StandardResponse
setup_logging()
logger = get_logger(__name__)

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@ authors = [
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.12"
requires-python =">=3.12,<4.0.0"
dependencies = [
"fastapi (>=0.121.1,<0.122.0)",
"uvicorn[standard] (>=0.38.0,<0.39.0)",
@@ -22,12 +22,11 @@ dependencies = [
"python-dotenv (>=1.2.1,<2.0.0)",
"python-dateutil (>=2.9.0.post0,<3.0.0)",
"pyyaml (>=6.0.3,<7.0.0)",
"greenlet (>=3.2.4,<4.0.0)",
"loguru (>=0.7.2,<0.7.3)",
"langchain (>=1.0.0)",
"langchain-community (>0.4,<0.4.1)",
"unstructured[all]",
"markdown"
"unstructured (>=0.18.21,<0.19.0)",
"markdown (>=3.10,<4.0)",
"langchain (>=1.1.0,<2.0.0)",
"langchain-community (>=0.4.1,<0.5.0)",
"langchain-openai (>=1.1.0,<2.0.0)",
]