summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorabc <98614666+xtekky@users.noreply.github.com>2023-10-20 20:36:34 +0200
committerabc <98614666+xtekky@users.noreply.github.com>2023-10-20 20:36:34 +0200
commitd01c2afe47a379183d41691d617613deac66c646 (patch)
treedcc79222ac3492951566b4add8cde6457e1bffd9
parent~ | g4f v-0.1.6.9 (diff)
downloadgpt4free-d01c2afe47a379183d41691d617613deac66c646.tar
gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.gz
gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.bz2
gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.lz
gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.xz
gpt4free-d01c2afe47a379183d41691d617613deac66c646.tar.zst
gpt4free-d01c2afe47a379183d41691d617613deac66c646.zip
Diffstat (limited to '')
-rw-r--r--README.md2
-rw-r--r--g4f/__init__.py2
-rw-r--r--g4f/cli.py5
-rw-r--r--setup.py2
4 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 45ba97fb..af566308 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
By using this repository or any code related to it, you agree to the [legal notice](./LEGAL_NOTICE.md). The author is not responsible for any copies, forks, reuploads made by other users, or anything else related to gpt4free. This is the author's only account and repository. To prevent impersonation or irresponsible actions, please comply with the GNU GPL license this Repository uses.
-- latest pypi version: [`0.1.6.9`](https://pypi.org/project/g4f/0.1.6.9)
+- latest pypi version: [`0.1.7.0`](https://pypi.org/project/g4f/0.1.7.0)
```sh
pip install -U 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:
diff --git a/setup.py b/setup.py
index e3d0e792..74ad3fea 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
with open("requirements.txt") as f:
required = f.read().splitlines()
-VERSION = "0.1.6.9"
+VERSION = "0.1.7.0"
DESCRIPTION = (
"The official gpt4free repository | various collection of powerful language models"
)