mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-25 04:01:52 +03:00
Update __init__.py
This commit is contained in:
parent
045a3b1c4b
commit
87cf743a41
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user