summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorlate <xu_hongliang_sz@163.com>2023-10-21 06:10:03 +0200
committerlate <xu_hongliang_sz@163.com>2023-10-21 06:10:03 +0200
commit0e93d841ba92bb61debcd61bb78d1bcd00dbbb14 (patch)
tree1b30bce217799d175350f0558400d349b81cd053 /g4f
parent ~ | g4f `v-0.1.7.2` (diff)
downloadgpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar.gz
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar.bz2
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar.lz
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar.xz
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.tar.zst
gpt4free-0e93d841ba92bb61debcd61bb78d1bcd00dbbb14.zip
Diffstat (limited to '')
-rw-r--r--g4f/api/run.py2
-rw-r--r--g4f/cli.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/g4f/api/run.py b/g4f/api/run.py
index 9a2a5786..12bf9eed 100644
--- a/g4f/api/run.py
+++ b/g4f/api/run.py
@@ -3,4 +3,4 @@ import g4f.api
if __name__ == "__main__":
print(f'Starting server... [g4f v-{g4f.version}]')
- g4f.api.Api(g4f).run('localhost:1337', 8) \ No newline at end of file
+ g4f.api.Api(g4f).run('127.0.0.1:1337', 8) \ No newline at end of file
diff --git a/g4f/cli.py b/g4f/cli.py
index d2cbee70..3dbe10b7 100644
--- a/g4f/cli.py
+++ b/g4f/cli.py
@@ -17,7 +17,7 @@ def main():
args = parser.parse_args()
if args.mode == "api":
- Api(g4f).run('localhost:1337', 8)
+ Api(g4f).run('127.0.0.1:1337', 8)
elif args.mode == "gui":
run_gui_args(args)
else: