diff --git a/.env.exp b/.env.exp index a37f3f5..3feffc4 100644 --- a/.env.exp +++ b/.env.exp @@ -2,6 +2,3 @@ TELEGRAM_BOT_TOKEN=xxx WD_API_ENDPOINT=xxx # TELEGRAM_BOT_PROXY_ADDRESS=socks5://127.0.0.1:7890 - -OPENAI_BASE_URL=xxx -OPENAI_API_KEY=xxx diff --git a/pdm.lock b/pdm.lock index 5792b46..1f3e51f 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default"] strategy = ["cross_platform"] lock_version = "4.4.1" -content_hash = "sha256:6826769d74e523aea7d1cfc70a5e84cb1d17dbed491ae20130eb52d14d52529a" +content_hash = "sha256:2b25f5ffc334fde34c80649be8e90efdf7efebd4e2a92edb78e6f1aca0d2ef6f" [[package]] name = "aiofiles" @@ -367,19 +367,6 @@ files = [ {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"}, ] -[[package]] -name = "click" -version = "8.1.7" -requires_python = ">=3.7" -summary = "Composable command line interface toolkit" -dependencies = [ - "colorama; platform_system == \"Windows\"", -] -files = [ - {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, - {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, -] - [[package]] name = "colorama" version = "0.4.6" @@ -472,26 +459,6 @@ files = [ {file = "distlib-0.3.7.tar.gz", hash = "sha256:9dafe54b34a028eafd95039d5e5d4851a13734540f1331060d31c9916e7147a8"}, ] -[[package]] -name = "distro" -version = "1.9.0" -requires_python = ">=3.6" -summary = "Distro - an OS platform information API" -files = [ - {file = "distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2"}, - {file = "distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed"}, -] - -[[package]] -name = "docstring-parser" -version = "0.15" -requires_python = ">=3.6,<4.0" -summary = "Parse Python docstrings in reST, Google and Numpydoc format" -files = [ - {file = "docstring_parser-0.15-py3-none-any.whl", hash = "sha256:d1679b86250d269d06a99670924d6bce45adc00b08069dae8c47d98e89b667a9"}, - {file = "docstring_parser-0.15.tar.gz", hash = "sha256:48ddc093e8b1865899956fcc03b03e66bb7240c310fac5af81814580c55bf682"}, -] - [[package]] name = "dynaconf" version = "3.2.4" @@ -715,24 +682,6 @@ files = [ {file = "importlib_metadata-6.11.0.tar.gz", hash = "sha256:1231cf92d825c9e03cfc4da076a16de6422c863558229ea0b22b675657463443"}, ] -[[package]] -name = "instructor" -version = "0.4.7" -requires_python = ">=3.9,<4.0" -summary = "structured outputs for llm" -dependencies = [ - "aiohttp<4.0.0,>=3.9.1", - "docstring-parser<0.16,>=0.15", - "openai<2.0.0,>=1.1.0", - "pydantic<3.0.0,>=2.0.2", - "rich<14.0.0,>=13.7.0", - "typer<0.10.0,>=0.9.0", -] -files = [ - {file = "instructor-0.4.7-py3-none-any.whl", hash = "sha256:55835a4c794c430a9e55ce775f4a94c75bccbde87c9dd71519a672019957cd72"}, - {file = "instructor-0.4.7.tar.gz", hash = "sha256:5a56598f468d41409013fd1f7f66e02e1a32936cb6511989bde68f4204260207"}, -] - [[package]] name = "lazy-loader" version = "0.3" @@ -757,29 +706,6 @@ files = [ {file = "loguru-0.7.2.tar.gz", hash = "sha256:e671a53522515f34fd406340ee968cb9ecafbc4b36c679da03c18fd8d0bd51ac"}, ] -[[package]] -name = "markdown-it-py" -version = "3.0.0" -requires_python = ">=3.8" -summary = "Python port of markdown-it. Markdown parsing, done right!" -dependencies = [ - "mdurl~=0.1", -] -files = [ - {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, - {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, -] - -[[package]] -name = "mdurl" -version = "0.1.2" -requires_python = ">=3.7" -summary = "Markdown URL utilities" -files = [ - {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, - {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, -] - [[package]] name = "mpmath" version = "1.3.0" @@ -1022,25 +948,6 @@ files = [ {file = "onnxruntime-1.16.3-cp39-cp39-win_amd64.whl", hash = "sha256:28ff758b17ce3ca6bcad3d936ec53bd7f5482e7630a13f6dcae518eba8f71d85"}, ] -[[package]] -name = "openai" -version = "1.8.0" -requires_python = ">=3.7.1" -summary = "The official Python library for the openai API" -dependencies = [ - "anyio<5,>=3.5.0", - "distro<2,>=1.7.0", - "httpx<1,>=0.23.0", - "pydantic<3,>=1.9.0", - "sniffio", - "tqdm>4", - "typing-extensions<5,>=4.7", -] -files = [ - {file = "openai-1.8.0-py3-none-any.whl", hash = "sha256:0f8f53805826103fdd8adaf379ad3ec23f9d867e698cbc14caf34b778d150175"}, - {file = "openai-1.8.0.tar.gz", hash = "sha256:93366be27802f517e89328801913d2a5ede45e3b86fdcab420385b8a1b88c767"}, -] - [[package]] name = "opencv-python" version = "4.9.0.80" @@ -1384,16 +1291,6 @@ files = [ {file = "pydantic_settings-2.1.0.tar.gz", hash = "sha256:26b1492e0a24755626ac5e6d715e9077ab7ad4fb5f19a8b7ed7011d52f36141c"}, ] -[[package]] -name = "pygments" -version = "2.17.2" -requires_python = ">=3.7" -summary = "Pygments is a syntax highlighting package written in Python." -files = [ - {file = "pygments-2.17.2-py3-none-any.whl", hash = "sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c"}, - {file = "pygments-2.17.2.tar.gz", hash = "sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367"}, -] - [[package]] name = "pyreadline3" version = "3.4.1" @@ -1486,20 +1383,6 @@ files = [ {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, ] -[[package]] -name = "rich" -version = "13.7.0" -requires_python = ">=3.7.0" -summary = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" -dependencies = [ - "markdown-it-py>=2.2.0", - "pygments<3.0.0,>=2.13.0", -] -files = [ - {file = "rich-13.7.0-py3-none-any.whl", hash = "sha256:6da14c108c4866ee9520bbffa71f6fe3962e193b7da68720583850cd4548e235"}, - {file = "rich-13.7.0.tar.gz", hash = "sha256:5cb5123b5cf9ee70584244246816e9114227e0b98ad9176eede6ad54bf5403fa"}, -] - [[package]] name = "robust-downloader" version = "0.0.2" @@ -1668,20 +1551,6 @@ files = [ {file = "tqdm-4.66.1.tar.gz", hash = "sha256:d88e651f9db8d8551a62556d3cff9e3034274ca5d66e93197cf2490e2dcb69c7"}, ] -[[package]] -name = "typer" -version = "0.9.0" -requires_python = ">=3.6" -summary = "Typer, build great CLIs. Easy to code. Based on Python type hints." -dependencies = [ - "click<9.0.0,>=7.1.1", - "typing-extensions>=3.7.4.3", -] -files = [ - {file = "typer-0.9.0-py3-none-any.whl", hash = "sha256:5d96d986a21493606a358cae4461bd8cdf83cbf33a5aa950ae629ca3b51467ee"}, - {file = "typer-0.9.0.tar.gz", hash = "sha256:50922fd79aea2f4751a8e0408ff10d2662bd0c8bbfa84755a699f3bada2978b2"}, -] - [[package]] name = "typing-extensions" version = "4.8.0" diff --git a/pyproject.toml b/pyproject.toml index 45cc73a..987fff5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,6 @@ dependencies = [ "opencv-python>=4.8.1.78", "anime-identify>=0.1.0", "aiofiles>=23.2.1", - "instructor>=0.4.7", ]