mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-04-27 10:27:25 -04:00
chore: cleanup unused prompt templates (#713)
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
@@ -171,7 +171,7 @@ def test_click_conversion(gen_settings: ModelSettings):
|
||||
return attrs
|
||||
|
||||
cl_ = make_llm_config('ClickConversionLLM', gen_settings)
|
||||
wrapped = cl_.to_click_options(cli_mock)
|
||||
wrapped = cl_.parse(cli_mock)
|
||||
filtered = {k for k, v in cl_.__openllm_hints__.items() if t.get_origin(v) is not t.Union}
|
||||
click_options_filtered = [i for i in wrapped.__click_params__ if i.name and not i.name.startswith('fake_')]
|
||||
assert len(filtered) == len(click_options_filtered)
|
||||
|
||||
Reference in New Issue
Block a user