fix: add parameter

This commit is contained in:
Samuel 2024-11-18 18:49:53 +00:00
parent 3c00adae38
commit a1a1747cf9

View File

@ -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}