Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] chore: upload descripiton to remote bento store #5047

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/bentoml/_internal/cloud/bento.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def push_model(model: Model[t.Any]) -> None:
remote_bento = rest_client.v1.create_bento(
bento_repository_name=bento_repository.name,
req=CreateBentoSchema(
description="",
description=bento.doc,
version=version,
build_at=info.creation_time,
manifest=manifest,
Expand All @@ -171,6 +171,7 @@ def push_model(model: Model[t.Any]) -> None:
bento_repository_name=bento_repository.name,
version=version,
req=UpdateBentoSchema(
description=bento.doc,
manifest=manifest,
labels=labels,
),
Expand Down
1 change: 1 addition & 0 deletions src/bentoml/_internal/cloud/schemas/schemasv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class CreateBentoSchema:

@attr.define
class UpdateBentoSchema:
description: t.Optional[str] = attr.field(default=None)
manifest: t.Optional[BentoManifestSchema] = attr.field(default=None)
labels: t.Optional[t.List[LabelItemSchema]] = attr.field(default=None)

Expand Down
Loading