Skip to content

Commit 7b1c17b

Browse files
committed
remove exe_name
1 parent 5fd9892 commit 7b1c17b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

llama_cpp/server/__main__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
from llama_cpp.server.app import create_app
3232
from llama_cpp.server.settings import Settings, ServerSettings, set_settings
3333

34-
EXE_NAME = 'llama_cpp.server'
35-
3634
def get_base_type(annotation):
3735
if getattr(annotation, '__origin__', None) is Literal:
3836
return type(annotation.__args__[0])
@@ -73,7 +71,7 @@ def parse_bool_arg(arg):
7371

7472
def main():
7573
description = "🦙 Llama.cpp python server. Host your own LLMs!🚀"
76-
parser = argparse.ArgumentParser(EXE_NAME, description=description)
74+
parser = argparse.ArgumentParser(description=description)
7775
for name, field in (ServerSettings.model_fields|Settings.model_fields).items():
7876
description = field.description
7977
if field.default and description and not field.is_required():

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ sdist.include = [".git", "vendor/llama.cpp/.git"]
6363
provider = "scikit_build_core.metadata.regex"
6464
input = "llama_cpp/__init__.py"
6565

66-
[project.scripts]
67-
llama_cpp.server = "llama_cpp.server.__main__:main"
68-
6966
[project.urls]
7067
Homepage = "https://github.com/abetlen/llama-cpp-python"
7168
Issues = "https://github.com/abetlen/llama-cpp-python/issues"

0 commit comments

Comments
 (0)