bye metadata

This commit is contained in:
discountchubbs
2026-06-12 03:12:13 -07:00
parent 6e7d9e5e52
commit fa284be7e6
4 changed files with 4 additions and 10 deletions
+1
View File
@@ -161,6 +161,7 @@ struct ModelManagerSP @0xaedffd8f31e7b55d {
policy @3;
offPolicy @4;
onPolicy @5;
chunked @6;
}
}
+1 -8
View File
@@ -168,15 +168,8 @@ def generate_metadata(model_path: Path, output_dir: Path, short_name: str, drivi
artifact_data["chunks"] = chunks_config
return {
"type": model_type,
"type": "chunked",
"artifact": artifact_data,
"metadata": {
"file_name": metadata_file.name,
"download_uri": {
"url": "https://gitlab.com/sunnypilot/public/docs.sunnypilot.ai/-/raw/main/",
"sha256": metadata_hash
}
}
}
+2 -1
View File
@@ -197,4 +197,5 @@ if __name__ == "__main__":
# Print metadata details
if model.artifact.chunks:
print(f"Contains {len(model.artifact.chunks)} chunks.")
print(f"Metadata: {model.metadata.fileName}, Download URI: {model.metadata.downloadUri.uri}")
if model.metadata.fileName:
print(f"Metadata: {model.metadata.fileName}, Download URI: {model.metadata.downloadUri.uri}")
-1
View File
@@ -174,7 +174,6 @@ class ModelManagerSP:
async def _process_model(self, model, destination_path: str) -> None:
"""Processes a single model download including verification"""
await self._process_artifact(model.metadata, destination_path)
await self._process_artifact(model.artifact, destination_path)
def _report_status(self) -> None: