litellm/pyproject.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

87 lines
2.1 KiB
TOML
Raw Normal View History

[tool.poetry]
name = "litellm"
2024-05-21 09:44:12 +08:00
version = "1.37.19"
description = "Library to easily interface with LLM API providers"
authors = ["BerriAI"]
license = "MIT"
readme = "README.md"
[tool.poetry.urls]
homepage = "https://litellm.ai"
repository = "https://github.com/BerriAI/litellm"
documentation = "https://docs.litellm.ai"
[tool.poetry.dependencies]
2024-02-13 01:49:11 +08:00
python = ">=3.8.1,<4.0, !=3.9.7"
openai = ">=1.0.0"
python-dotenv = ">=0.2.0"
2023-09-25 22:33:23 +08:00
tiktoken = ">=0.4.0"
importlib-metadata = ">=6.8.0"
2023-09-26 00:15:50 +08:00
tokenizers = "*"
2023-09-27 04:30:35 +08:00
click = "*"
2023-10-04 12:05:20 +08:00
jinja2 = "^3.1.2"
aiohttp = "*"
requests = "^2.31.0"
2023-09-27 04:30:35 +08:00
2023-12-28 15:29:27 +08:00
uvicorn = {version = "^0.22.0", optional = true}
2024-05-05 18:25:59 +08:00
gunicorn = {version = "^22.0.0", optional = true}
Update FastAPI to update starlette to fix warnings The httpx package emits some warnings when we run the tests in `test_proxy_server.py`: ```shell $ env -i PATH=$PATH poetry run pytest litellm/tests/test_proxy_server.py ... litellm/tests/test_proxy_server.py::test_bedrock_embedding litellm/tests/test_proxy_server.py::test_chat_completion litellm/tests/test_proxy_server.py::test_chat_completion_azure litellm/tests/test_proxy_server.py::test_chat_completion_optional_params litellm/tests/test_proxy_server.py::test_embedding litellm/tests/test_proxy_server.py::test_engines_model_chat_completions litellm/tests/test_proxy_server.py::test_health litellm/tests/test_proxy_server.py::test_img_gen litellm/tests/test_proxy_server.py::test_openai_deployments_model_chat_completions_azure .../site-packages/httpx/_client.py:680: DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=WSGITransport(app=...)' instead. warnings.warn(message, DeprecationWarning) ... ``` Fixing this requires updating starlette, but the version of FastAPI in use prevents that. So I updated FastAPI to update starlette to fix the httpx warnings. When run in combination with the changes in GH-3600, the tests pass and only emit 1 warning! ```shell $ env -i PATH=$PATH poetry run pytest litellm/tests/test_proxy_server.py ====================================== test session starts ====================================== platform darwin -- Python 3.12.3, pytest-7.4.4, pluggy-1.5.0 rootdir: /Users/abramowi/Code/OpenSource/litellm plugins: anyio-4.3.0, mock-3.14.0 collected 12 items litellm/tests/test_proxy_server.py s..........s [100%] ======================================= warnings summary ======================================== litellm/utils.py:43 /Users/abramowi/Code/OpenSource/litellm/litellm/utils.py:43: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources # type: ignore -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== 10 passed, 2 skipped, 1 warning in 8.81s ============================ ```
2024-05-13 03:17:21 +08:00
fastapi = {version = "^0.111.0", optional = true}
2023-12-01 07:23:34 +08:00
backoff = {version = "*", optional = true}
pyyaml = {version = "^6.0.1", optional = true}
2023-12-01 07:23:34 +08:00
rq = {version = "*", optional = true}
2023-12-28 15:29:27 +08:00
orjson = {version = "^3.9.7", optional = true}
apscheduler = {version = "^3.10.4", optional = true}
fastapi-sso = { version = "^0.10.0", optional = true }
PyJWT = { version = "^2.8.0", optional = true }
python-multipart = { version = "^0.0.9", optional = true}
cryptography = {version = "^42.0.5", optional = true}
2024-03-23 23:32:57 +08:00
prisma = {version = "0.11.0", optional = true}
azure-identity = {version = "^1.15.0", optional = true}
azure-keyvault-secrets = {version = "^4.8.0", optional = true}
google-cloud-kms = {version = "^2.21.3", optional = true}
resend = {version = "^0.8.0", optional = true}
2023-12-01 07:23:34 +08:00
[tool.poetry.extras]
proxy = [
2024-01-10 20:17:24 +08:00
"gunicorn",
2023-12-01 07:23:34 +08:00
"uvicorn",
"fastapi",
"backoff",
"pyyaml",
2023-12-01 11:50:47 +08:00
"rq",
"orjson",
"apscheduler",
"fastapi-sso",
"PyJWT",
"python-multipart",
"cryptography"
2024-01-01 11:53:34 +08:00
]
2023-12-02 11:36:06 +08:00
extra_proxy = [
"prisma",
"azure-identity",
"azure-keyvault-secrets",
"google-cloud-kms",
"resend"
2023-12-02 11:36:06 +08:00
]
2023-09-27 04:30:35 +08:00
[tool.poetry.scripts]
litellm = 'litellm:run_server'
2023-12-22 15:14:54 +08:00
[tool.poetry.group.dev.dependencies]
flake8 = "^6.1.0"
2023-12-22 15:38:19 +08:00
black = "^23.12.0"
2023-12-22 16:25:57 +08:00
pytest = "^7.4.3"
pytest-mock = "^3.12.0"
2023-12-22 15:14:54 +08:00
[build-system]
requires = ["poetry-core", "wheel"]
build-backend = "poetry.core.masonry.api"
2023-10-06 13:15:23 +08:00
[tool.commitizen]
2024-05-21 09:44:12 +08:00
version = "1.37.19"
version_files = [
"pyproject.toml:^version"
]
2023-10-06 13:15:23 +08:00