diff --git a/cereal/custom.capnp b/cereal/custom.capnp index 1a6090a8b0..df8b420568 100644 --- a/cereal/custom.capnp +++ b/cereal/custom.capnp @@ -161,6 +161,7 @@ struct ModelManagerSP @0xaedffd8f31e7b55d { policy @3; offPolicy @4; onPolicy @5; + chunked @6; } } diff --git a/release/ci/model_generator.py b/release/ci/model_generator.py index 9881bf3e14..38a6386cfb 100755 --- a/release/ci/model_generator.py +++ b/release/ci/model_generator.py @@ -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 - } - } } diff --git a/sunnypilot/models/fetcher.py b/sunnypilot/models/fetcher.py index fb51961d15..e3d785b84e 100644 --- a/sunnypilot/models/fetcher.py +++ b/sunnypilot/models/fetcher.py @@ -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}") diff --git a/sunnypilot/models/manager.py b/sunnypilot/models/manager.py index b3765d12d8..f4db071c7b 100644 --- a/sunnypilot/models/manager.py +++ b/sunnypilot/models/manager.py @@ -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: