AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
chore: Remove functions that had been removed on the master branch recently
Drikus Roor62edc148a8b4
diff --git a/scripts/browse.py b/scripts/browse.pyindex a5b167c928..9e93c55a33 100644--- a/scripts/browse.py+++ b/scripts/browse.py@@ -21,28 +21,12 @@ def sanitize_url(url):return urljoin(url, urlparse(url).path)-# Function to make a request with a specified timeout and handle exceptions-def make_request(url, timeout=10):- try:- response = requests.get(url, headers=cfg.user_agent_header, timeout=timeout)- response.raise_for_status()- return response- except requests.exceptions.RequestException as e:- return "Error: " + str(e)--# Define and check for local file address prefixesdef check_local_file_access(url):local_prefixes = ['file:///', 'file://localhost', 'http://localhost', 'https://localhost']return any(url.startswith(prefix) for prefix in local_prefixes)-def scrape_text(url):- """Scrape text from a webpage"""- # Basic check if the URL is valid- if not url.startswith('http'):- return "Error: Invalid URL"-def get_response(url, headers=cfg.user_agent_header, timeout=10):try:# Restrict access to local files