mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
Merge branch 'fixbug/omniparse_timeout' into 'mgx_ops'
feat: +omniparse timeout See merge request pub/MetaGPT!351
This commit is contained in:
commit
82e848a2f7
3 changed files with 14 additions and 11 deletions
|
|
@ -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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue