feat: Fix error message for missing files key in input

This commit is contained in:
Stan Girard 2024-04-19 12:01:53 +02:00
parent 5d92b98bcb
commit 0761738082

View File

@ -50,7 +50,7 @@ class SummaryAssistant(ITO):
if len(self.files) > 1: if len(self.files) > 1:
raise ValueError("Only one file can be uploaded") raise ValueError("Only one file can be uploaded")
if not self.input.inputs.files: if not self.input.inputs.files:
raise ValueError("No files key were given in the input") raise ValueError("No files were given in the input")
if len(self.input.inputs.files) > 1: if len(self.input.inputs.files) > 1:
raise ValueError("Only one file can be uploaded") raise ValueError("Only one file can be uploaded")
if not self.input.inputs.files[0].key == "doc_to_summarize": if not self.input.inputs.files[0].key == "doc_to_summarize":