Bugfix for models endpoint
This commit is contained in:
parent
e72f58614b
commit
a0b61ea2a7
1 changed files with 3 additions and 1 deletions
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue