-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (89 loc) · 2.89 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (89 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nadirclaw"
dynamic = ["version"]
description = "Open-source LLM router — simple prompts to free models, complex to premium"
readme = "README.md"
requires-python = ">=3.10"
license = "PolyForm-Noncommercial-1.0.0"
authors = [{name = "Nadir", email = "nadir@nadirclaw.com"}]
keywords = ["llm", "router", "ai", "openai", "gemini", "anthropic", "cost-optimization", "model-routing"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"fastapi>=0.100.0",
"uvicorn>=0.20.0",
"litellm>=1.0.0",
"sentence-transformers>=2.0.0",
"numpy",
"python-dotenv",
"click",
"google-genai>=1.0.0",
"sse-starlette>=1.0.0",
]
[project.urls]
Homepage = "https://github.com/doramirdor/NadirClaw"
Repository = "https://github.com/doramirdor/NadirClaw"
Issues = "https://github.com/doramirdor/NadirClaw/issues"
[project.scripts]
nadirclaw = "nadirclaw.cli:main"
[tool.setuptools.packages.find]
include = ["nadirclaw*"]
[tool.setuptools.dynamic]
version = {attr = "nadirclaw.__version__"}
[tool.setuptools.package-data]
nadirclaw = [
"*.npy",
"cascade_rules/profiles/*.yaml",
"models/*.pt",
"tier_config/profiles/*.yaml",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"httpx",
"pyyaml>=6.0",
]
dashboard = [
"rich>=13.0",
]
cascade-rules = [
# PyYAML is only needed to LOAD cascade rule profiles from disk
# (`load_profile`). `load_inline` works without it, so this is opt-in.
"pyyaml>=6.0",
]
headroom = [
# Optional context-compression backend (Apache-2.0, github.com/chopratejas/headroom).
# Activated with NADIRCLAW_OPTIMIZE_BACKEND=headroom. When absent, the optimizer
# transparently falls back to the built-in native pipeline, so this stays opt-in.
# Prebuilt wheels bundle the compiled Rust `_core` extension (SmartCrusher etc.).
"headroom-ai>=0.23.0",
]
telemetry = [
"opentelemetry-api>=1.20.0",
"opentelemetry-sdk>=1.20.0",
"opentelemetry-exporter-otlp-proto-grpc>=1.20.0",
"opentelemetry-instrumentation-fastapi>=0.41b0",
]
trained = [
# Optional dependency for the TrainedVerifier (DeBERTa-v3-small
# cross-encoder loaded from nadirclaw/cascade-verifier-v1).
# The heuristic verifier remains the default for the cascade,
# so users who do not want the transformer stack pay nothing.
"transformers>=4.40",
"torch>=2.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"