From d01c2afe47a379183d41691d617613deac66c646 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:36:34 +0100 Subject: ~ | 0.1.7.0 --- g4f/__init__.py | 2 +- g4f/cli.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'g4f') diff --git a/g4f/__init__.py b/g4f/__init__.py index 62f1de8d..597cb2c4 100644 --- a/g4f/__init__.py +++ b/g4f/__init__.py @@ -5,7 +5,7 @@ from .Provider import BaseProvider, RetryProvider from .typing import Messages, CreateResult, Union, List from .debug import logging -version = '0.1.6.9' +version = '0.1.7.0' version_check = True def check_pypi_version() -> None: diff --git a/g4f/cli.py b/g4f/cli.py index 42401cc8..d2cbee70 100644 --- a/g4f/cli.py +++ b/g4f/cli.py @@ -1,6 +1,7 @@ import argparse +import g4f -from g4f.api import run_api +from g4f.api import Api from g4f.gui.run import gui_parser, run_gui_args @@ -16,7 +17,7 @@ def main(): args = parser.parse_args() if args.mode == "api": - run_api() + Api(g4f).run('localhost:1337', 8) elif args.mode == "gui": run_gui_args(args) else: -- cgit v1.2.3