Merge branch 'da_change' into 'mgx_ops'

expand memory window for quick think

See merge request pub/MetaGPT!324
This commit is contained in:
林义章 2024-08-16 04:13:06 +00:00
commit 2ad493a568
2 changed files with 2 additions and 2 deletions

View file

@ -842,7 +842,7 @@ def decode_image(img_url_or_b64: str) -> Image:
def extract_image_paths(content: str) -> bool:
# We require that the path must have a space preceding it, like "xxx /an/absolute/path.jpg xxx"
pattern = r"[^\s]+\.(?:png|jpe?g|gif|bmp|tiff)"
pattern = r"[^\s]+\.(?:png|jpe?g|gif|bmp|tiff|PNG|JPE?G|GIF|BMP|TIFF)"
image_paths = re.findall(pattern, content)
return image_paths