feat: add web scraping tool to chat agent for extracting and summarizing webpage content

This commit is contained in:
Anish Sarkar 2025-12-23 01:49:29 +05:30
parent da7cb81252
commit 24dd52ed99
9 changed files with 1018 additions and 76 deletions

View file

@ -86,9 +86,7 @@ def create_display_image_tool():
ratio = "16:9" # Default
if "unsplash.com" in src or "pexels.com" in src:
ratio = "16:9"
elif "imgur.com" in src:
ratio = "auto"
elif "github.com" in src or "githubusercontent.com" in src:
elif "imgur.com" in src or "github.com" in src or "githubusercontent.com" in src:
ratio = "auto"
return {