mirror of
https://github.com/open-webui/open-webui
synced 2024-11-27 06:20:01 +00:00
refactor: remove unused imports in main.py
This commit is contained in:
parent
6bcfdaaaf0
commit
83191dbe08
@ -432,8 +432,6 @@ def update_body_request(request: Request,
|
|||||||
]
|
]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
from starlette.middleware import Middleware
|
|
||||||
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
|
|
||||||
|
|
||||||
async def handle_nonstreaming_response(request: Request, response: Response, tools: dict) -> Response:
|
async def handle_nonstreaming_response(request: Request, response: Response, tools: dict) -> Response:
|
||||||
response_dict = json.loads(response)
|
response_dict = json.loads(response)
|
||||||
|
Loading…
Reference in New Issue
Block a user