fix: backwards compatibility for files endpoint

This commit is contained in:
harish876 2026-04-08 00:55:52 +00:00
parent a8a0e1295a
commit 294aa8628c

View file

@ -577,11 +577,6 @@ async def create_file( # noqa: PLR0915
dependencies=[Depends(user_api_key_auth)],
tags=["files"],
)
# @router.get(
# "/files/{file_id:path}/content",
# dependencies=[Depends(user_api_key_auth)],
# tags=["files"],
# )
async def get_file_content( # noqa: PLR0915
request: Request,
fastapi_response: Response,
@ -835,6 +830,11 @@ async def get_file_content( # noqa: PLR0915
dependencies=[Depends(user_api_key_auth)],
tags=["files"],
)
@router.get(
"/files/{file_id:path}/content",
dependencies=[Depends(user_api_key_auth)],
tags=["files"],
)
async def get_file_content_streaming(
request: Request,
fastapi_response: Response,