Improve invalid prompt error message
This commit is contained in:
parent
cc4d3435d3
commit
c33b7c5549
|
@ -554,8 +554,8 @@ def validate_prompt(prompt):
|
||||||
errors_list = "\n".join(errors_list)
|
errors_list = "\n".join(errors_list)
|
||||||
|
|
||||||
error = {
|
error = {
|
||||||
"type": "prompt_no_good_outputs",
|
"type": "prompt_outputs_failed_validation",
|
||||||
"message": "Prompt has no properly connected outputs",
|
"message": "Prompt outputs failed validation",
|
||||||
"details": errors_list,
|
"details": errors_list,
|
||||||
"extra_info": {}
|
"extra_info": {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue