litellm-openttt
TTTPS Proof-of-Time success callback for LiteLLM. Attaches a
cryptographic audit-trail timestamp (a signed Proof-of-Time receipt) to every
litellm.completion() / litellm.acompletion() response, sealed against the
public self-serve KPP Provenance API.
This attaches a cryptographic audit-trail timestamp and integrity hash. It does not certify legal or regulatory compliance (EU AI Act, FDA, and so on). Treat it as an audit-trail timestamp, not a compliance claim.
Install
pip install litellm-openttt
Usage
import litellm
from litellm_openttt import TTTPSTimestampLoggerKPPLive
litellm.callbacks = [TTTPSTimestampLoggerKPPLive()]
resp = litellm.completion(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "hi"}],
)
print(resp.tttps_receipt)
# {"status": "ok", "receipt_id": "...", "receipt": "...", "time": "...", ...}
Set KPP_API_KEY (mint one for free via POST https://kpp.kenosian.com/v1/keys)
and optionally KPP_BASE / KPP_TIMEOUT_S as environment variables.
Fail-open: any network/upstream error degrades the receipt to
{"status": "degraded", ...} and is logged. It never raises out of the
callback, so the LLM response itself is never blocked or mutated.
License
MIT
Metadata
Release files for litellm-openttt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| litellm_openttt-0.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| litellm_openttt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / litellm_openttt-0.1.0.tar.gz
| Download URL | litellm_openttt-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dad4b8defcf47922d215bc8c357dd7560564dfa44db4a48f37c934b8bb69c7d
|
|
BLAKE2b-256 checksum How to use checksums |
8567ef74621eaa03338b0c89ac5b60159bfec365aade7e46a275659b8d0fdc08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / litellm_openttt-0.1.0-py3-none-any.whl
| Download URL | litellm_openttt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d8ead2f7430392af7cbb69221417ff675413761729b9a2de15f74f777ff39e1
|
|
BLAKE2b-256 checksum How to use checksums |
ca33a4323ec96e06b337c0b7a5a9f4c6f7325215833a4eb39aed0a2e9ac9aa3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|