Buckets:

download
raw
794 Bytes
"""
Credential table models.
These are the canonical credential types for the proxy. They live in the model
layer; ``litellm.types.utils`` re-exports them for backwards compatibility.
"""
from pydantic import BaseModel, model_validator
class CredentialBase(BaseModel):
credential_name: str
credential_info: dict
class CredentialItem(CredentialBase):
credential_values: dict
class CreateCredentialItem(CredentialBase):
credential_values: dict | None = None
model_id: str | None = None
@model_validator(mode="before")
@classmethod
def check_credential_params(cls, values):
if not values.get("credential_values") and not values.get("model_id"):
raise ValueError("Either credential_values or model_id must be set")
return values

Xet Storage Details

Size:
794 Bytes
·
Xet hash:
ce63ad411186c85cf94199fe0a587db3a4c9814468cb3568bfbab6c701af2ec6

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