mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-10 08:12:40 +02:00
feat: add web scraping tool to chat agent for extracting and summarizing webpage content
This commit is contained in:
parent
da7cb81252
commit
24dd52ed99
9 changed files with 1018 additions and 76 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue