99from rich .panel import Panel
1010from rich .table import Table
1111
12- import vec_inf .client ._utils as utils
1312from vec_inf .cli ._models import MODEL_TYPE_COLORS , MODEL_TYPE_PRIORITY
14- from vec_inf .client . _config import ModelConfig
15- from vec_inf .client . _models import ModelInfo , StatusResponse
13+ from vec_inf .cli . _utils import create_table
14+ from vec_inf .client import ModelConfig , ModelInfo , StatusResponse
1615
1716
1817class LaunchResponseFormatter :
@@ -24,7 +23,7 @@ def __init__(self, model_name: str, params: dict[str, Any]):
2423
2524 def format_table_output (self ) -> Table :
2625 """Format output as rich Table."""
27- table = utils . create_table (key_title = "Job Config" , value_title = "Value" )
26+ table = create_table (key_title = "Job Config" , value_title = "Value" )
2827
2928 # Add key information with consistent styling
3029 table .add_row ("Slurm Job ID" , self .params ["slurm_job_id" ], style = "blue" )
@@ -89,7 +88,7 @@ def output_json(self) -> None:
8988
9089 def output_table (self ) -> Table :
9190 """Create and display rich table."""
92- table = utils . create_table (key_title = "Job Status" , value_title = "Value" )
91+ table = create_table (key_title = "Job Status" , value_title = "Value" )
9392 table .add_row ("Model Name" , self .status_info .model_name )
9493 table .add_row ("Model Status" , self .status_info .server_status , style = "blue" )
9594
@@ -107,7 +106,7 @@ class MetricsResponseFormatter:
107106
108107 def __init__ (self , metrics : Union [dict [str , float ], str ]):
109108 self .metrics = self ._set_metrics (metrics )
110- self .table = utils . create_table ("Metric" , "Value" )
109+ self .table = create_table ("Metric" , "Value" )
111110 self .enabled_prefix_caching = self ._check_prefix_caching ()
112111
113112 def _set_metrics (self , metrics : Union [dict [str , float ], str ]) -> dict [str , float ]:
@@ -211,7 +210,7 @@ def _format_single_model_output(
211210 )
212211 return config_dict
213212
214- table = utils . create_table (key_title = "Model Config" , value_title = "Value" )
213+ table = create_table (key_title = "Model Config" , value_title = "Value" )
215214 for field , value in config .model_dump ().items ():
216215 if field not in {"venv" , "log_dir" }:
217216 table .add_row (field , str (value ))
0 commit comments