mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-24 22:09:56 +00:00
Compose the legacy and v1 lifecycles behind one PythonLifecycle through LifecycleChain, built once in python-bridge, and simplify the boundary: - drop LifecycleEvent::Started; begin carries the start time and is the first thing a lifecycle hears of a call - give PythonLifecycle pass-through defaults for the threading steps and the stream notices, and document which steps thread and which observe - export one is_cancellation from litellm-host-python - callbacks-v1: private RequestFacts fields, a golden file per EventKind by construction, Python EVENTS and SUPPORTED_SCHEMAS pinned to the goldens - callbacks-v1-python: the snapshot only parses (register is the only place that rejects), Handler owns call/is_async, Pending keeps a subscriber index - callbacks-legacy-python: LegacyCallbacks becomes inherent PythonLogger methods, deployment hooks become free functions, retained headers are traversed and cleared - define the shared terms in host-python/AGENTS.md and each contract's own terms in its crate - remove test_loader.py, whose fork hook was never committed Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
19 lines
421 B
TOML
19 lines
421 B
TOML
[package]
|
|
name = "litellm-callbacks-legacy-python"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
autotests = false
|
|
|
|
[dependencies]
|
|
litellm-host.workspace = true
|
|
litellm-host-python.workspace = true
|
|
pyo3.workspace = true
|
|
serde_json.workspace = true
|
|
strum.workspace = true
|
|
|
|
[dev-dependencies]
|
|
litellm-auth.workspace = true
|
|
proptest.workspace = true
|
|
rstest.workspace = true
|