8000 Use environment variable if parsed cli arg is None · joelkurian/llama-cpp-python@022e9eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 022e9eb

Browse files
committed
Use environment variable if parsed cli arg is None
1 parent 0d751a6 commit 022e9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/server/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
)
4141

4242
args = parser.parse_args()
43-
settings = Settings(**vars(args))
43+
settings = Settings(**{k: v for k, v in vars(args).items() if v is not None})
4444
app = create_app(settings=settings)
4545

4646
uvicorn.run(

0 commit comments

Comments
 (0)
0