mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
if client.initialize fails, the example should exit (#954)
# What does this PR do? the example script can gracefully exit if the boolean returned from initialize is used properly Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
981bb52b59
commit
26aef50bc5
2 changed files with 5 additions and 2 deletions
|
@ -196,7 +196,7 @@ class AsyncLlamaStackAsLibraryClient(AsyncLlamaStackClient):
|
|||
self.custom_provider_registry = custom_provider_registry
|
||||
self.provider_data = provider_data
|
||||
|
||||
async def initialize(self):
|
||||
async def initialize(self) -> bool:
|
||||
try:
|
||||
self.impls = await construct_stack(self.config, self.custom_provider_registry)
|
||||
except ModuleNotFoundError as _e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue