mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: backwards compatibility for files endpoint
This commit is contained in:
parent
a8a0e1295a
commit
294aa8628c
1 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue