summaryrefslogtreecommitdiffstats
path: root/g4f/api
diff options
context:
space:
mode:
authorThatLukinhasGuy <139662282+thatlukinhasguy1@users.noreply.github.com>2023-11-04 22:26:16 +0100
committerGitHub <noreply@github.com>2023-11-04 22:26:16 +0100
commit65c3a88e0adb6836113130e52e70e4b824a86949 (patch)
treeb40633242b046bb3fc4a57a6db7b34ec01f94710 /g4f/api
parentUpdate cli.py (diff)
downloadgpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar.gz
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar.bz2
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar.lz
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar.xz
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.tar.zst
gpt4free-65c3a88e0adb6836113130e52e70e4b824a86949.zip
Diffstat (limited to '')
-rw-r--r--g4f/api/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py
index 5fb93971..bbb0d1d5 100644
--- a/g4f/api/__init__.py
+++ b/g4f/api/__init__.py
@@ -157,6 +157,6 @@ class Api:
async def completions():
return Response(content=json.dumps({'info': 'Not working yet.'}, indent=4), media_type="application/json")
- def run(self, ip, thread_quantity):
+ def run(self, ip):
split_ip = ip.split(":")
uvicorn.run(host=split_ip[0], port=int(split_ip[1]), use_colors=False)