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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litellm_openttt-0.1.0.tar.gz.
File metadata
- Download URL: litellm_openttt-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dad4b8defcf47922d215bc8c357dd7560564dfa44db4a48f37c934b8bb69c7d
|
|
| MD5 |
fb315564b8823d06c9afb4f1464b01dc
|
|
| BLAKE2b-256 |
8567ef74621eaa03338b0c89ac5b60159bfec365aade7e46a275659b8d0fdc08
|
File details
Details for the file litellm_openttt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: litellm_openttt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d8ead2f7430392af7cbb69221417ff675413761729b9a2de15f74f777ff39e1
|
|
| MD5 |
58e837281f9f07b09e90348144da0768
|
|
| BLAKE2b-256 |
ca33a4323ec96e06b337c0b7a5a9f4c6f7325215833a4eb39aed0a2e9ac9aa3a
|