Bugfix for models endpoint

This commit is contained in:
Andrei Betlen 2023-05-07 20:17:52 -04:00
parent e72f58614b
commit a0b61ea2a7

View file

@ -357,7 +357,9 @@ GetModelResponse = create_model_from_typeddict(ModelList)
@router.get("/v1/models", response_model=GetModelResponse)
def get_models() -> ModelList:
def get_models(
llama: llama_cpp.Llama = Depends(get_llama),
) -> ModelList:
return {
"object": "list",
"data": [