Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /amphetamarina_litellm /litellm /integrations /deepeval /utils.py
| from datetime import datetime, timezone | |
| from litellm.integrations.deepeval.types import Environment | |
| def to_zod_compatible_iso(dt: datetime) -> str: | |
| return ( | |
| dt.astimezone(timezone.utc) | |
| .isoformat(timespec="milliseconds") | |
| .replace("+00:00", "Z") | |
| ) | |
| def validate_environment(environment: str): | |
| if environment not in [env.value for env in Environment]: | |
| valid_values = ", ".join(f'"{env.value}"' for env in Environment) | |
| raise ValueError( | |
| f"Invalid environment: {environment}. Please use one of the following instead: {valid_values}" | |
| ) | |
Xet Storage Details
- Size:
- 606 Bytes
- Xet hash:
- 724f12502229c9a91c9c45d0ec5f8e3a76d05fc555c0776aa899104d836a55ad
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.