feat: +omniparse timeout

This commit is contained in:
莘权 马 2024-08-26 14:07:02 +08:00
parent eda130ca25
commit b68c139125
3 changed files with 13 additions and 10 deletions

View file

@ -189,7 +189,7 @@ class OmniParseClient:
# Do not verify if only byte data is provided
return
file_ext = Path(verify_file_path).suffix
file_ext = Path(verify_file_path).suffix.lower()
if file_ext not in allowed_file_extensions:
raise ValueError(f"Not allowed {file_ext} File extension must be one of {allowed_file_extensions}")