Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a0b61ea

Browse filesBrowse files
committed
Bugfix for models endpoint
1 parent e72f586 commit a0b61ea
Copy full SHA for a0b61ea

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎llama_cpp/server/app.py

Copy file name to clipboardExpand all lines: llama_cpp/server/app.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ class ModelList(TypedDict):
357357

358358

359359
@router.get("/v1/models", response_model=GetModelResponse)
360-
def get_models() -> ModelList:
360+
def get_models(
361+
llama: llama_cpp.Llama = Depends(get_llama),
362+
) -> ModelList:
361363
return {
362364
"object": "list",
363365
"data": [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.