mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
format code
This commit is contained in:
@@ -11,9 +11,6 @@ logger = AppLogger().get_logger()
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.post('/chat/')
|
||||
async def chat(
|
||||
prompt: Annotated[str, Form()],
|
||||
llm_service = Depends(get_llm_service)
|
||||
):
|
||||
return StreamingResponse(llm_service.stream_chat(prompt), media_type="text/plain")
|
||||
@router.post("/chat/")
|
||||
async def chat(prompt: Annotated[str, Form()], llm_service=Depends(get_llm_service)):
|
||||
return StreamingResponse(llm_service.stream_chat(prompt), media_type="text/plain")
|
||||
|
||||
Reference in New Issue
Block a user