mirror of
https://github.com/katanemo/plano.git
synced 2026-06-26 15:39:40 +02:00
fixed PR based on feedback
This commit is contained in:
parent
f13b420146
commit
8973bff7a0
11 changed files with 238 additions and 1012 deletions
|
|
@ -213,10 +213,6 @@ def validate_and_render_schema():
|
|||
model_aliases = config_yaml["model_aliases"]
|
||||
for alias_name, alias_config in model_aliases.items():
|
||||
target = alias_config.get("target")
|
||||
if not target:
|
||||
raise Exception(
|
||||
f"Model alias '{alias_name}' must have a target specified"
|
||||
)
|
||||
if target not in model_name_keys:
|
||||
raise Exception(
|
||||
f"Model alias '{alias_name}' targets '{target}' which is not defined as a model. Available models: {', '.join(sorted(model_name_keys))}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue