8000 Remove model_name param · coderonion/llama-cpp-python@a28cb92 · GitHub
[go: up one dir, main page]

Skip to content

Commit a28cb92

Browse files
committed
Remove model_name param
1 parent 15e3dc7 commit a28cb92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ def __init__(
1616
logits_all: bool = False,
1717
vocab_only: bool = False,
1818
n_threads: Optional[int] = None,
19-
model_name: Optional[str]=None,
2019
):
2120
self.model_path = model_path
22-
self.model = model_name or model_path
2321

2422
self.params = llama_cpp.llama_context_default_params()
2523
self.params.n_ctx = n_ctx
@@ -122,7 +120,7 @@ def __call__(
122120
"id": f"cmpl-{str(uuid.uuid4())}", # Likely to change
123121
"object": "text_completion",
124122
"created": int(time.time()),
125-
"model": self.model, # Likely to change
123+
"model": self.model_path,
126124
"choices": [
127125
{
128126
"text": text,

0 commit comments

Comments
 (0)
0