File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818import httpx
1919import yaml
20- from llama_stack_client import (
21- APIResponse ,
22- AsyncAPIResponse ,
23- AsyncLlamaStackClient ,
24- AsyncStream ,
25- LlamaStackClient ,
26- NOT_GIVEN ,
27- )
28- from pydantic import BaseModel , TypeAdapter
29- from rich .console import Console
30- from termcolor import cprint
3120
3221from llama_stack .distribution .build import print_pip_install_help
3322from llama_stack .distribution .configure import parse_and_maybe_upgrade_config
4635 setup_logger ,
4736 start_trace ,
4837)
38+ from llama_stack_client import (
39+ APIResponse ,
40+ AsyncAPIResponse ,
41+ AsyncLlamaStackClient ,
42+ AsyncStream ,
43+ LlamaStackClient ,
44+ NOT_GIVEN ,
45+ )
46+ from pydantic import BaseModel , TypeAdapter
47+ from rich .console import Console
48+ from termcolor import cprint
4949
5050T = TypeVar ("T" )
5151
@@ -214,7 +214,7 @@ async def initialize(self) -> bool:
214214 f"Please run:\n \n { prefix } llama stack build --template { self .config_path_or_template_name } --image-type venv\n \n " ,
215215 "yellow" ,
216216 )
217- return False
217+ raise _e
218218
219219 if Api .telemetry in self .impls :
220220 setup_logger (self .impls [Api .telemetry ])
You can’t perform that action at this time.
0 commit comments