Skip to content

Commit

Permalink
chore: add spec into bento manifest schema (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
xianml authored Jan 22, 2025
1 parent a3959b7 commit 32571ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bentoml/_internal/bento/bento.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def get_manifest(self, dev: bool = False) -> BentoManifestSchema:
version=info.version,
dev=dev,
image=image,
spec=info.spec,
)

@classmethod
Expand Down
1 change: 1 addition & 0 deletions src/bentoml/_internal/cloud/schemas/modelschemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class BentoManifestSchema:
version: t.Optional[str] = attr.field(default=None, eq=False)
dev: bool = attr.field(default=False, eq=False)
image: t.Optional[ImageInfo] = None
spec: int = attr.field(default=1)

@property
def tag(self) -> Tag:
Expand Down

0 comments on commit 32571ff

Please sign in to comment.