mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 07:14:20 +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
|
||||
*.egg-info
|
||||
dev_requirements.txt
|
||||
build
|
||||
|
|
|
@ -158,7 +158,7 @@ def prompt_for_config(
|
|||
and issubclass(get_non_none_type(field_type), BaseModel)
|
||||
):
|
||||
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
|
||||
continue
|
||||
nested_type = get_non_none_type(field_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue