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 c7e0eb3

Browse filesBrowse files
committed
Changed model_alias to alias to prevent conflict
1 parent 91bf8fa commit c7e0eb3
Copy full SHA for c7e0eb3

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-3
lines changed

‎llama_cpp/server/app.py

Copy file name to clipboardExpand all lines: llama_cpp/server/app.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Settings(BaseSettings):
2424
model: str = Field(
2525
description="The path to the model to use for generating completions."
2626
)
27-
model_alias: Optional[str] = Field(
27+
alias: Optional[str] = Field(
2828
default=None,
2929
description="The alias of the model to use for generating completions.",
3030
)
@@ -768,8 +768,8 @@ async def get_models(
768768
"object": "list",
769769
"data": [
770770
{
771-
"id": settings.model_alias
772-
if settings.model_alias is not None
771+
"id": settings.alias
772+
if settings.alias is not None
773773
else llama.model_path,
774774
"object": "model",
775775
"owned_by": "me",

0 commit comments

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