grok2api / pyproject.toml
looknicemm1's picture
Deploy grok2api (jiujiu532) to HF Space: port 7860, bucket persistence at /app/data
48d895c verified
Raw
History Blame Contribute Delete
986 Bytes
[project]
name = "grok2api"
version = "2.0.4.rc4"
description = "Grok2API rebuilt with FastAPI, fully aligned with the latest web call format. Supports streaming and non-streaming chat, image generation/editing, deep thinking, token pool concurrency, and automatic load balancing."
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"aiohttp>=3.14.0",
"aiohttp-socks>=0.11.0",
"aiomysql>=0.2.0",
"asyncpg>=0.31.0",
"certifi>=2025.10.5",
"cryptography>=48.0.1",
"curl-cffi>=0.15.0",
"fastapi>=0.119.0",
"granian>=2.7.4",
"greenlet>=3.3.1",
"loguru>=0.7.3",
"orjson>=3.11.4",
"pydantic>=2.12.3",
"python-dotenv>=1.1.1",
"python-multipart>=0.0.31",
"redis>=6.4.0",
"sqlalchemy>=2.0.46",
"idna>=3.15", # pinned for security
"starlette>=1.1.0",
"tiktoken>=0.8.0",
"urllib3>=2.7.0",
"tomli-w>=1.2.0",
]
[dependency-groups]
dev = [
"ruff>=0.15.0",
]