mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 14:02:29 +00:00
fix: add parameter
This commit is contained in:
parent
3c00adae38
commit
a1a1747cf9
@ -1393,7 +1393,8 @@ async def get_base_models(user=Depends(get_admin_user)):
|
||||
|
||||
@app.post("/api/chat/completions")
|
||||
async def generate_chat_completions(
|
||||
form_data: dict, user=Depends(get_verified_user), bypass_filter: bool = False
|
||||
form_data: dict, user=Depends(get_verified_user),
|
||||
bypass_filter: bool = False, as_openai: bool = False
|
||||
):
|
||||
model_list = await get_all_models()
|
||||
models = {model["id"]: model for model in model_list}
|
||||
|
Loading…
Reference in New Issue
Block a user