Skip to content

Commit

Permalink
just a simple way to pass args for uvicorn by run_server() method (#23)
Browse files Browse the repository at this point in the history
* just a simple way to pass args for uvicorn by run_server() method

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
antunsz and pre-commit-ci[bot] authored Feb 28, 2024
1 parent a850b83 commit 39ed6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/fastserve/client/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from .vllm import vLLMClient
6 changes: 2 additions & 4 deletions src/fastserve/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ def home():
def app(self):
return self._app

def run_server(
self,
):
def run_server(self, *args, **kwargs):
import uvicorn

uvicorn.run(self.app)
uvicorn.run(self.app, *args, **kwargs)

@property
def test_client(self):
Expand Down

0 comments on commit 39ed6f6

Please sign in to comment.