Skip to content

Commit

Permalink
chore: add spec into bento manifest schema
Browse files Browse the repository at this point in the history
  • Loading branch information
xianml committed Jan 22, 2025
1 parent a3959b7 commit a00dbfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 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 Expand Up @@ -743,6 +744,7 @@ class BaseBentoInfo:
services: t.List[BentoServiceInfo] = attr.field(factory=list)
envs: t.List[BentoEnvSchema] = attr.field(factory=list)
schema: t.Dict[str, t.Any] = attr.field(factory=dict)
spec: int = attr.field(default=1)

@property
def all_models(self) -> t.List[BentoModelInfo]:
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 a00dbfd

Please sign in to comment.