(
self,
*,
path: str,
max_bytes: int,
model_fingerprint: str,
mmproj_fingerprint: str,
)
| 10395 | _metadata_version = "1" |
| 10396 | |
| 10397 | def __init__( |
| 10398 | self, |
| 10399 | *, |
| 10400 | path: str, |
| 10401 | max_bytes: int, |
| 10402 | model_fingerprint: str, |
| 10403 | mmproj_fingerprint: str, |
| 10404 | ) -> None: |
| 10405 | self.path = Path(path) |
| 10406 | self.max_bytes = max_bytes |
| 10407 | self.model_fingerprint = model_fingerprint |
| 10408 | self.mmproj_fingerprint = mmproj_fingerprint |
| 10409 | self.path.mkdir(parents=True, exist_ok=True) |
| 10410 | |
| 10411 | @staticmethod |
| 10412 | def _safe_open(path: Path) -> Any: |
nothing calls this directly
no outgoing calls
no test coverage detected