Buckets:

download
raw
434 Bytes
import hashlib
import json
from litellm.types.router import CredentialLiteLLMParams
def get_litellm_params_sensitive_credential_hash(litellm_params: dict) -> str:
"""
Hash of the credential params, used for mapping the file id to the right model
"""
sensitive_params = CredentialLiteLLMParams(**litellm_params)
return hashlib.sha256(
json.dumps(sensitive_params.model_dump()).encode()
).hexdigest()

Xet Storage Details

Size:
434 Bytes
·
Xet hash:
9ad1f7641ef6d2344ed48b1672487094edf3ec134d4f7aac50f45f2161ebb2c3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.