10000 Changed model_alias to alias to prevent conflict · dahlej/llama-cpp-python@c7e0eb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7e0eb3

Browse files
committed
Changed model_alias to alias to prevent conflict
1 parent 91bf8fa commit c7e0eb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llama_cpp/server/app.py

Lines 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