Skip to content

Commit c08dc66

Browse files
authored
feat: add support for search filter (#1177)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
1 parent 6047364 commit c08dc66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/openllm/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def _select_bento_name(models: list[BentoInfo], target: DeploymentTarget) -> tup
4848
questionary.Separator(f'{table[0]}\n {table[1]}'),
4949
*[questionary.Choice(line, value=value[:2]) for value, line in zip(table_data, table[2:])],
5050
],
51+
use_search_filter=True,
52+
use_jk_keys=False,
5153
).ask()
5254
if selected is None:
5355
raise typer.Exit(1)
@@ -81,6 +83,8 @@ def _select_bento_version(
8183
questionary.Separator(f'{table[0]}\n {table[1]}'),
8284
*[questionary.Choice(line, value=value[:2]) for value, line in zip(model_infos, table[2:])],
8385
],
86+
use_search_filter=True,
87+
use_jk_keys=False,
8488
).ask()
8589
if selected is None:
8690
raise typer.Exit(1)
@@ -114,6 +118,8 @@ def _select_target(bento: BentoInfo, targets: list[DeploymentTarget]) -> Deploym
114118
questionary.Separator(f'{table[0]}\n {table[1]}'),
115119
*[questionary.Choice(f'{line}', value=target) for target, line in zip(targets, table[2:])],
116120
],
121+
use_search_filter=True,
122+
use_jk_keys=False,
117123
).ask()
118124
if selected is None:
119125
raise typer.Exit(1)

0 commit comments

Comments
 (0)