From 35c2b83015dab28d7f7bb6159e1e4af734386d89 Mon Sep 17 00:00:00 2001 From: Deshraj Yadav Date: Sat, 28 Oct 2023 19:18:57 -0700 Subject: [PATCH] [version] Update openai version to 0.28.0 (#866) --- poetry.lock | 52 +++++++++++++++++++++++++------------------------- pyproject.toml | 12 +++++++----- 2 files changed, 33 insertions(+), 31 deletions(-) diff --git a/poetry.lock b/poetry.lock index 5ebdc7d4..8b636f02 100644 --- a/poetry.lock +++ b/poetry.lock @@ -204,7 +204,7 @@ files = [ name = "atlassian-python-api" version = "3.41.2" description = "Python Atlassian REST API Wrapper" -optional = false +optional = true python-versions = "*" files = [ {file = "atlassian-python-api-3.41.2.tar.gz", hash = "sha256:a2022977da5a395412ace8e29c2c541312f07d45fc750435dec036af53daceda"}, @@ -302,7 +302,7 @@ typecheck = ["mypy"] name = "beautifulsoup4" version = "4.12.2" description = "Screen-scraping library" -optional = false +optional = true python-versions = ">=3.6.0" files = [ {file = "beautifulsoup4-4.12.2-py3-none-any.whl", hash = "sha256:bd2520ca0d9d7d12694a53d44ac482d181b4ec1888909b035a3dbf40d0f57d4a"}, @@ -1073,7 +1073,7 @@ dev = ["flake8", "hypothesis", "ipython", "mypy (>=0.710)", "portray", "pytest ( name = "deprecated" version = "1.2.14" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ {file = "Deprecated-1.2.14-py2.py3-none-any.whl", hash = "sha256:6fac8b097794a90302bdbb17b9b815e732d3c4720583ff1b198499d78470466c"}, @@ -2219,7 +2219,7 @@ files = [ name = "html2text" version = "2020.1.16" description = "Turn HTML into equivalent Markdown-structured text." -optional = false +optional = true python-versions = ">=3.5" files = [ {file = "html2text-2020.1.16-py3-none-any.whl", hash = "sha256:c7c629882da0cf377d66f073329ccf34a12ed2adf0169b9285ae4e63ef54c82b"}, @@ -2530,7 +2530,7 @@ i18n = ["Babel (>=2.7)"] name = "joblib" version = "1.3.2" description = "Lightweight pipelining with Python functions" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "joblib-1.3.2-py3-none-any.whl", hash = "sha256:ef4331c65f239985f3f2220ecc87db222f08fd22097a3dd5698f693875f8cbb9"}, @@ -2848,7 +2848,7 @@ files = [ name = "llama-hub" version = "0.0.29" description = "A library of community-driven data loaders for LLMs. Use with LlamaIndex and/or LangChain. " -optional = false +optional = true python-versions = ">=3.8.1,<4.0" files = [ {file = "llama_hub-0.0.29-py3-none-any.whl", hash = "sha256:728e4a1ba292adf804479baf015c6395a606329cdf3c0f3a0fae2d2ec836de18"}, @@ -2866,7 +2866,7 @@ retrying = "*" name = "llama-index" version = "0.8.29" description = "Interface between LLMs and your data" -optional = false +optional = true python-versions = "*" files = [ {file = "llama_index-0.8.29-py3-none-any.whl", hash = "sha256:e6e0ffc9cd561668e7a68c0d58c20b614979f0c86393a36a705ab583b0b838f9"}, @@ -3350,7 +3350,7 @@ files = [ name = "nest-asyncio" version = "1.5.8" description = "Patch asyncio to allow nested event loops" -optional = false +optional = true python-versions = ">=3.5" files = [ {file = "nest_asyncio-1.5.8-py3-none-any.whl", hash = "sha256:accda7a339a70599cb08f9dd09a67e0c2ef8d8d6f4c07f96ab203f2ae254e48d"}, @@ -3379,7 +3379,7 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"] name = "nltk" version = "3.8.1" description = "Natural Language Toolkit" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "nltk-3.8.1-py3-none-any.whl", hash = "sha256:fd5c9109f976fa86bcadba8f91e47f5e9293bd034474752e92a520f81c93dda5"}, @@ -3658,7 +3658,7 @@ wheel = "*" name = "oauthlib" version = "3.2.2" description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "oauthlib-3.2.2-py3-none-any.whl", hash = "sha256:8139f29aac13e25d502680e9e19963e83f16838d48a0d71c287fe40e7067fbca"}, @@ -3786,13 +3786,13 @@ sympy = "*" [[package]] name = "openai" -version = "0.27.10" +version = "0.28.1" description = "Python client library for the OpenAI API" optional = false python-versions = ">=3.7.1" files = [ - {file = "openai-0.27.10-py3-none-any.whl", hash = "sha256:beabd1757e3286fa166dde3b70ebb5ad8081af046876b47c14c41e203ed22a14"}, - {file = "openai-0.27.10.tar.gz", hash = "sha256:60e09edf7100080283688748c6803b7b3b52d5a55d21890f3815292a0552d83b"}, + {file = "openai-0.28.1-py3-none-any.whl", hash = "sha256:d18690f9e3d31eedb66b57b88c2165d760b24ea0a01f150dd3f068155088ce68"}, + {file = "openai-0.28.1.tar.gz", hash = "sha256:4be1dad329a65b4ce1a660fe6d5431b438f429b5855c883435f0f7fcb6d2dcc8"}, ] [package.dependencies] @@ -3897,7 +3897,7 @@ files = [ name = "pandas" version = "2.1.1" description = "Powerful data structures for data analysis, time series, and statistics" -optional = false +optional = true python-versions = ">=3.9" files = [ {file = "pandas-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:58d997dbee0d4b64f3cb881a24f918b5f25dd64ddf31f467bb9b67ae4c63a1e4"}, @@ -4247,7 +4247,7 @@ files = [ name = "psutil" version = "5.9.5" description = "Cross-platform lib for process and system monitoring in Python." -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ {file = "psutil-5.9.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:be8929ce4313f9f8146caad4272f6abb8bf99fc6cf59344a3167ecd74f4f203f"}, @@ -4866,7 +4866,7 @@ files = [ name = "pytz" version = "2023.3.post1" description = "World timezone definitions, modern and historical" -optional = false +optional = true python-versions = "*" files = [ {file = "pytz-2023.3.post1-py2.py3-none-any.whl", hash = "sha256:ce42d816b81b68506614c11e8937d3aa9e41007ceb50bfdcb0749b921bf646c7"}, @@ -5095,7 +5095,7 @@ full = ["numpy"] name = "regex" version = "2023.8.8" description = "Alternative regular expression module, to replace re." -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "regex-2023.8.8-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:88900f521c645f784260a8d346e12a1590f79e96403971241e64c3a265c8ecdb"}, @@ -5232,7 +5232,7 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "requests-oauthlib" version = "1.3.1" description = "OAuthlib authentication support for Requests." -optional = false +optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ {file = "requests-oauthlib-1.3.1.tar.gz", hash = "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"}, @@ -5270,7 +5270,7 @@ tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asy name = "retrying" version = "1.3.4" description = "Retrying" -optional = false +optional = true python-versions = "*" files = [ {file = "retrying-1.3.4-py3-none-any.whl", hash = "sha256:8cc4d43cb8e1125e0ff3344e9de678fefd85db3b750b81b2240dc0183af37b35"}, @@ -5745,7 +5745,7 @@ files = [ name = "soupsieve" version = "2.5" description = "A modern CSS selector implementation for Beautiful Soup." -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "soupsieve-2.5-py3-none-any.whl", hash = "sha256:eaa337ff55a1579b6549dc679565eac1e3d000563bcb1c8ab0d0fefbc0c2cdc7"}, @@ -5886,7 +5886,7 @@ files = [ name = "tiktoken" version = "0.4.0" description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models" -optional = false +optional = true python-versions = ">=3.8" files = [ {file = "tiktoken-0.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:176cad7f053d2cc82ce7e2a7c883ccc6971840a4b5276740d0b732a2b2011f8a"}, @@ -6369,7 +6369,7 @@ typing-extensions = ">=3.7.4" name = "tzdata" version = "2023.3" description = "Provider of IANA time zone data" -optional = false +optional = true python-versions = ">=2" files = [ {file = "tzdata-2023.3-py2.py3-none-any.whl", hash = "sha256:7e65763eef3120314099b6939b5546db7adce1e7d6f2e179e3df563c70511eda"}, @@ -6948,7 +6948,7 @@ dev = ["black (>=19.3b0)", "pytest (>=4.6.2)"] name = "wrapt" version = "1.15.0" description = "Module for decorators, wrappers and monkey patching." -optional = false +optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ {file = "wrapt-1.15.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:ca1cccf838cd28d5a0883b342474c630ac48cac5df0ee6eacc9c7290f76b11c1"}, @@ -7174,7 +7174,7 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [extras] cohere = ["cohere"] community = ["llama-hub"] -dataloaders = ["beautifulsoup4", "docx2txt", "duckduckgo-search", "jq", "jq", "langchain", "pypdf", "pytube", "sentence-transformers", "unstructured"] +dataloaders = ["beautifulsoup4", "docx2txt", "duckduckgo-search", "jq", "jq", "pypdf", "pytube", "sentence-transformers", "unstructured"] discord = ["discord"] elasticsearch = ["elasticsearch"] gmail = ["llama-hub", "requests"] @@ -7183,7 +7183,7 @@ images = ["ftfy", "pillow", "regex", "torch", "torchvision"] llama2 = ["replicate"] milvus = ["pymilvus"] opensearch = ["opensearch-py"] -opensource = ["gpt4all", "langchain", "sentence-transformers", "torch"] +opensource = ["gpt4all", "sentence-transformers", "torch"] pinecone = ["pinecone-client"] poe = ["fastapi-poe"] qdrant = ["qdrant-client"] @@ -7196,4 +7196,4 @@ whatsapp = ["flask", "twilio"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.13" -content-hash = "7768ec9e20e75bd5a44d04b8e804af01311c6ebd91bb3d6d53a9d8f93e2bc6f9" +content-hash = "4021d63d76a9128c8d7342bc482dfe90fa9878fde1359c2f0730fa9188e503af" diff --git a/pyproject.toml b/pyproject.toml index 7b9602b2..afb25ace 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,11 @@ [tool.poetry] name = "embedchain" -version = "0.0.81" +version = "0.0.82" description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data" -authors = ["Taranjeet Singh, Deshraj Yadav"] +authors = [ + "Taranjeet Singh ", + "Deshraj Yadav ", +] license = "Apache License" readme = "README.md" exclude = [ @@ -89,7 +92,7 @@ python = ">=3.9,<3.13" python-dotenv = "^1.0.0" langchain = "^0.0.279" requests = "^2.31.0" -openai = "^0.27.5" +openai = ">=0.28.0" tiktoken = { version="^0.4.0", optional=true } chromadb ="^0.4.8" youtube-transcript-api = { version="^0.6.1", optional=true } @@ -143,7 +146,7 @@ pytest-asyncio = "^0.21.1" [tool.poetry.extras] streamlit = ["streamlit"] community = ["llama-hub"] -opensource = ["sentence-transformers", "torch", "gpt4all", "langchain"] +opensource = ["sentence-transformers", "torch", "gpt4all"] elasticsearch = ["elasticsearch"] opensearch = ["opensearch-py"] poe = ["fastapi-poe"] @@ -163,7 +166,6 @@ dataloaders=[ "docx2txt", "duckduckgo-search", "jq", - "langchain", "pypdf", "pytube", "sentence-transformers",