mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-06-12 02:20:32 -04:00
feat(type): provide structured annotations stubs (#663)
* feat(type): provide client stubs separation of concern for more brevity code base Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> * docs: update changelog Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --------- Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
@@ -43,16 +43,13 @@ def build_container(
|
||||
"This utility can only be run within OpenLLM git repository. Clone it first with 'git clone https://github.com/bentoml/OpenLLM.git'"
|
||||
)
|
||||
if not registries:
|
||||
tags: dict[str | LiteralContainerRegistry, str] = {
|
||||
alias: f'{value}:{openllm.bundle.get_base_container_tag(version_strategy)}'
|
||||
for alias, value in openllm.bundle.CONTAINER_NAMES.items()
|
||||
tags = {
|
||||
alias: openllm.bundle.RefResolver.construct_base_image(alias, version_strategy)
|
||||
for alias in openllm.bundle.CONTAINER_NAMES
|
||||
}
|
||||
else:
|
||||
registries = [registries] if isinstance(registries, str) else list(registries)
|
||||
tags = {
|
||||
name: f'{openllm.bundle.CONTAINER_NAMES[name]}:{openllm.bundle.get_base_container_tag(version_strategy)}'
|
||||
for name in registries
|
||||
}
|
||||
tags = {name: openllm.bundle.RefResolver.construct_base_image(name, version_strategy) for name in registries}
|
||||
try:
|
||||
outputs = _BUILDER.build(
|
||||
file=pathlib.Path(__file__).parent.joinpath('Dockerfile').resolve().__fspath__(),
|
||||
|
||||
Reference in New Issue
Block a user