Skip to content

Commit ab70029

Browse files
committed
fix(pr): remove get_impls()
1 parent f051458 commit ab70029

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

llama_stack/core/server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def create_app() -> StackApp:
367367
if not os.environ.get("LLAMA_STACK_DISABLE_VERSION_CHECK"):
368368
app.add_middleware(ClientVersionMiddleware)
369369

370-
impls = app.stack.get_impls()
370+
impls = app.stack.impls
371371

372372
if config.server.auth:
373373
logger.info(f"Enabling authentication with provider: {config.server.auth.provider_config.type.value}")

llama_stack/core/stack.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,6 @@ async def initialize(self):
343343
await refresh_registry_once(impls)
344344
self.impls = impls
345345

346-
def get_impls(self) -> dict[Api, Any]:
347-
"""safely access impls without raising an exception"""
348-
if self.impls is None:
349-
return {}
350-
return self.impls
351-
352346
def create_registry_refresh_task(self):
353347
assert self.impls is not None, "Must call initialize() before starting"
354348

0 commit comments

Comments
 (0)