From 27f9559d83541a579afeb925064fffdab1139fb3 Mon Sep 17 00:00:00 2001 From: kingbri Date: Wed, 24 Jul 2024 21:50:16 -0400 Subject: [PATCH] Dependencies: Switch to fastapi-slim Reduces dependency size since the full fastapi package isn't required. Add httptools since it makes requests faster and it was installed with fastapi previously. Signed-off-by: kingbri --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f89846f..d86d865 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ version = "0.0.1" description = "An OAI compatible exllamav2 API that's both lightweight and fast" requires-python = ">=3.10" dependencies = [ - "fastapi >= 0.110.0", + "fastapi-slim >= 0.110.0", "pydantic >= 2.0.0", "PyYAML", "rich", @@ -31,6 +31,7 @@ dependencies = [ "aiohttp", "huggingface_hub", "psutil", + "httptools>=0.5.0", # Improved asyncio loops "uvloop ; platform_system == 'Linux' and platform_machine == 'x86_64'",