mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-01-03 07:42:30 -08:00
Update __init__.py
This commit is contained in:
parent
045a3b1c4b
commit
87cf743a41
1 changed files with 2 additions and 2 deletions
|
|
@ -162,6 +162,6 @@ async def chat_completions(request: Request, item: JSONStructure = None):
|
||||||
async def completions():
|
async def completions():
|
||||||
return Response(content=json.dumps({'info': 'Not working yet.'}, indent=4), media_type="application/json")
|
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(":")
|
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…
Add table
Add a link
Reference in a new issue