From 8f6fde108643f650a6a212bd6f95469b925cb50f Mon Sep 17 00:00:00 2001 From: Alexander Korataev Date: Tue, 24 Oct 2023 23:16:52 +0700 Subject: [PATCH 1/4] Add requirements.txt --- requirements.txt | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d3457a4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,73 @@ +aiofiles==23.2.1 +aiohttp==3.8.6 +aiosignal==1.3.1 +annotated-types==0.6.0 +anyio==3.7.1 +async-timeout==4.0.3 +attrs==23.1.0 +blinker==1.6.3 +Brotli==1.1.0 +browser-cookie3==0.19.1 +certifi==2023.7.22 +cffi==1.16.0 +charset-normalizer==3.3.1 +click==8.1.7 +curl-cffi==0.5.9 +dataclasses-json==0.6.1 +duckduckgo-search==3.9.3 +Flask==3.0.0 +Flask-Cors==4.0.0 +frozenlist==1.4.0 +g4f==0.1.7.6 +greenlet==3.0.0 +h11==0.14.0 +h2==4.1.0 +hpack==4.0.0 +httpcore==0.18.0 +httpx==0.25.0 +hyperframe==6.0.1 +idna==3.4 +itsdangerous==2.1.2 +jeepney==0.8.0 +Jinja2==3.1.2 +Js2Py==0.74 +jsonpatch==1.33 +jsonpointer==2.4 +langchain==0.0.321 +langsmith==0.0.49 +loguru==0.7.2 +lxml==4.9.3 +lz4==4.3.2 +MarkupSafe==2.1.3 +marshmallow==3.20.1 +multidict==6.0.4 +mypy-extensions==1.0.0 +nest-asyncio==1.5.8 +numpy==1.26.1 +packaging==23.2 +Pillow==10.1.0 +platformdirs==3.11.0 +pycparser==2.21 +pycryptodome==3.19.0 +pycryptodomex==3.19.0 +pydantic==2.4.2 +pydantic_core==2.10.1 +PyExecJS==1.5.1 +pyjsparser==2.7.1 +PyYAML==6.0.1 +regex==2023.10.3 +requests==2.31.0 +six==1.16.0 +sniffio==1.3.0 +socksio==1.0.0 +SQLAlchemy==2.0.22 +tenacity==8.2.3 +tiktoken==0.5.1 +typing-inspect==0.9.0 +typing_extensions==4.8.0 +tzlocal==5.2 +urllib3==2.0.7 +waitress==2.1.2 +websockets==12.0 +Werkzeug==3.0.0 +yarl==1.9.2 From a6a27ec4f130eab055863ac4721876e360fe4da1 Mon Sep 17 00:00:00 2001 From: Alexander Korataev Date: Tue, 24 Oct 2023 23:26:43 +0700 Subject: [PATCH 2/4] Add README.md and setup.py --- README.md | 4 ++++ requirements.txt | 18 ++++++++++++++++++ setup.py | 24 ++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 setup.py diff --git a/README.md b/README.md index c61086c..ed3406d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ To install langchain_g4f, run the following command: ```shell pip install git+https://github.com/MIDORIBIN/langchain-gpt4free.git ``` +or +```shell +pip install langchain-gpt4free +``` This command will install langchain_g4f. diff --git a/requirements.txt b/requirements.txt index d3457a4..d05d7ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,8 +12,10 @@ certifi==2023.7.22 cffi==1.16.0 charset-normalizer==3.3.1 click==8.1.7 +cryptography==41.0.5 curl-cffi==0.5.9 dataclasses-json==0.6.1 +docutils==0.20.1 duckduckgo-search==3.9.3 Flask==3.0.0 Flask-Cors==4.0.0 @@ -27,25 +29,33 @@ httpcore==0.18.0 httpx==0.25.0 hyperframe==6.0.1 idna==3.4 +importlib-metadata==6.8.0 itsdangerous==2.1.2 +jaraco.classes==3.3.0 jeepney==0.8.0 Jinja2==3.1.2 Js2Py==0.74 jsonpatch==1.33 jsonpointer==2.4 +keyring==24.2.0 langchain==0.0.321 langsmith==0.0.49 loguru==0.7.2 lxml==4.9.3 lz4==4.3.2 +markdown-it-py==3.0.0 MarkupSafe==2.1.3 marshmallow==3.20.1 +mdurl==0.1.2 +more-itertools==10.1.0 multidict==6.0.4 mypy-extensions==1.0.0 nest-asyncio==1.5.8 +nh3==0.2.14 numpy==1.26.1 packaging==23.2 Pillow==10.1.0 +pkginfo==1.9.6 platformdirs==3.11.0 pycparser==2.21 pycryptodome==3.19.0 @@ -53,16 +63,23 @@ pycryptodomex==3.19.0 pydantic==2.4.2 pydantic_core==2.10.1 PyExecJS==1.5.1 +Pygments==2.16.1 pyjsparser==2.7.1 PyYAML==6.0.1 +readme-renderer==42.0 regex==2023.10.3 requests==2.31.0 +requests-toolbelt==1.0.0 +rfc3986==2.0.0 +rich==13.6.0 +SecretStorage==3.3.3 six==1.16.0 sniffio==1.3.0 socksio==1.0.0 SQLAlchemy==2.0.22 tenacity==8.2.3 tiktoken==0.5.1 +twine==4.0.2 typing-inspect==0.9.0 typing_extensions==4.8.0 tzlocal==5.2 @@ -71,3 +88,4 @@ waitress==2.1.2 websockets==12.0 Werkzeug==3.0.0 yarl==1.9.2 +zipp==3.17.0 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1afe402 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup, find_packages + + +def load_requirements(filename): + with open(filename, 'r') as file: + return file.read().splitlines() + +setup( + name="langchain_g4f", + version="0.1", + packages=find_packages(), + description="LangChain gpt4free is an open-source project that assists in building applications using LLM (Large Language Models) and provides free access to GPT4/3.5.", + author="Alexander", + author_email="alexandkorataev@gmain.com", + url="https://github.com/AlexanderKorataev/langchain-gpt4free", + license="MIT License", + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + install_requires=load_requirements("requirements.txt"), +) + From f350f31f82730bc9ff208d35b3b07dc866866c14 Mon Sep 17 00:00:00 2001 From: Alexander Korataev Date: Tue, 24 Oct 2023 23:30:03 +0700 Subject: [PATCH 3/4] Fix setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 1afe402..fb41306 100644 --- a/setup.py +++ b/setup.py @@ -20,5 +20,6 @@ setup( "Operating System :: OS Independent", ], install_requires=load_requirements("requirements.txt"), + python_requires=">=3.10", ) From a90463ac5daa63dd661a285faac297d6130f7e4b Mon Sep 17 00:00:00 2001 From: Alexander Korataev Date: Tue, 24 Oct 2023 23:49:44 +0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed3406d..e307dfd 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ pip install git+https://github.com/MIDORIBIN/langchain-gpt4free.git ``` or ```shell -pip install langchain-gpt4free +pip install langchain-g4f ``` This command will install langchain_g4f.