Merge branch 'fixbug/omniparse_timeout' into 'mgx_ops'

feat: +omniparse timeout

See merge request pub/MetaGPT!351
This commit is contained in:
张雷 2024-08-27 07:00:42 +00:00
commit 82e848a2f7
3 changed files with 14 additions and 11 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}")