Skip to content

Commit

Permalink
fix: include models from config for new SDK bentos
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 bf8f8e8 commit d62887b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/bentoml/_internal/bento/bento.py
Original file line number Diff line number Diff line change
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 d62887b

Please sign in to comment.