mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
minor fixes
This commit is contained in:
parent
f83b97992c
commit
ade574a0ef
4 changed files with 4 additions and 5 deletions
|
@ -45,7 +45,7 @@ def format_row(row, col_widths):
|
|||
|
||||
def print_table(rows, headers=None, separate_rows: bool = False):
|
||||
def itemlen(item):
|
||||
return len(strip_ansi_colors(item))
|
||||
return max([len(line) for line in strip_ansi_colors(item).split("\n")])
|
||||
|
||||
rows = [[x or "" for x in row] for row in rows]
|
||||
if not headers:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue