mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
feat: Fix error message for missing files key in input
This commit is contained in:
parent
5d92b98bcb
commit
0761738082
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user