diff options
Diffstat (limited to 'g4f')
-rw-r--r-- | g4f/api/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py index d86364d1..8ea61dba 100644 --- a/g4f/api/__init__.py +++ b/g4f/api/__init__.py @@ -162,6 +162,6 @@ async def chat_completions(request: Request, item: JSONStructure = None): async def completions(): return Response(content=json.dumps({'info': 'Not working yet.'}, indent=4), media_type="application/json") -def run(ip): +def run(ip, thread_quantity): split_ip = ip.split(":") - uvicorn.run(app, host=split_ip[0], port=int(split_ip[1]), use_colors=False) + uvicorn.run(app, host=split_ip[0], port=int(split_ip[1]), use_colors=False, workers=thread_quantity) |