Improve invalid prompt error message

This commit is contained in:
space-nuko 2023-05-25 11:54:13 -05:00
parent cc4d3435d3
commit c33b7c5549
1 changed files with 2 additions and 2 deletions

View File

@ -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": {}
} }