mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
refac
This commit is contained in:
@@ -812,6 +812,8 @@ async def chat_completion(
|
||||
user=Depends(get_verified_user),
|
||||
bypass_filter: bool = False,
|
||||
):
|
||||
if not request.app.state.MODELS:
|
||||
await get_all_models(request)
|
||||
|
||||
try:
|
||||
model_id = form_data.get("model", None)
|
||||
|
||||
Reference in New Issue
Block a user