Skip to content

Commit

Permalink
fix: include models from config for new SDK bentos (#4705)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed May 6, 2024
1 parent 3bf3385 commit 9b30551
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/bentoml/_internal/bento/bento.py
Expand Up @@ -309,16 +309,12 @@ def create(
service=svc, # type: ignore # attrs converters do not typecheck
entry_service=svc.name,
labels=build_config.labels,
models=(
[
BentoModelInfo.from_bento_model(
m, alias=resolved_aliases.get(m.tag)
)
for m in models
]
if is_legacy
else []
),
models=[
BentoModelInfo.from_bento_model(
m, alias=resolved_aliases.get(m.tag)
)
for m in models
],
runners=(
[BentoRunnerInfo.from_runner(r) for r in svc.runners] # type: ignore # attrs converters do not typecheck
if is_legacy
Expand Down

0 comments on commit 9b30551

Please sign in to comment.