mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
make optional subclasses default to yes for configuration
This commit is contained in:
parent
55cf1f0642
commit
6de36b6a15
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ __pycache__
|
||||||
dist
|
dist
|
||||||
*.egg-info
|
*.egg-info
|
||||||
dev_requirements.txt
|
dev_requirements.txt
|
||||||
|
build
|
||||||
|
|
|
@ -158,7 +158,7 @@ def prompt_for_config(
|
||||||
and issubclass(get_non_none_type(field_type), BaseModel)
|
and issubclass(get_non_none_type(field_type), BaseModel)
|
||||||
):
|
):
|
||||||
prompt = f"Do you want to configure {field_name}? (y/n): "
|
prompt = f"Do you want to configure {field_name}? (y/n): "
|
||||||
if input(prompt).lower() != "y":
|
if input(prompt).lower() == "n":
|
||||||
config_data[field_name] = None
|
config_data[field_name] = None
|
||||||
continue
|
continue
|
||||||
nested_type = get_non_none_type(field_type)
|
nested_type = get_non_none_type(field_type)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue