Commit Graph

37 Commits (62edc148a8b43dfe4b30c5ca9de3c462cd366a46)

Author SHA1 Message Date
Drikus Roor 62edc148a8 chore: Remove functions that had been removed on the master branch recently 2023-04-13 10:56:02 +02:00
Drikus Roor d1ea6cf002 lint: Fix all E302 linting errors 2023-04-13 10:50:51 +02:00
Itamar Friedman 3e53e976a5 flake8 style 2023-04-13 00:06:23 +03:00
Itamar Friedman bf3c76ced7 flake8 style 2023-04-13 00:04:08 +03:00
Itamar Friedman 9f972f4ee9 flake8 style 2023-04-13 00:00:33 +03:00
Itamar Friedman 54478b35f2 Merge branch 'master' into browse_scrape_links_test_and_validate 2023-04-12 23:51:53 +03:00
Drikus Roor 1f837968ff fix: Fix flake8 errors based on the flake8 command with a narrower definition of errors 2023-04-12 22:12:25 +02:00
Itamar Friedman 57bca3620e minor style 2023-04-12 23:04:43 +03:00
Itamar Friedman c63645cbba redo suggested changes. move unit test files to the fitting directory 2023-04-12 22:41:23 +03:00
Itamar Friedman 7c0c896600 Merge branch 'master' into browse_scrape_links_test_and_validate 2023-04-12 22:31:51 +03:00
Slava Kurilyak (slavakurilyak.eth) e9e4f11b4a
Merge branch 'master' into security-and-robustness-improvements 2023-04-11 09:32:51 -06:00
Itamar Friedman 64c21ee8f7 browse: make scrape_links() & scrape_text() "status_code >= 400" error message the same 2023-04-11 11:40:52 +03:00
Itamar Friedman 2d5d0131bb browse: (1) apply validation also to scrape_links(), (2) add tests for scrape_links() 2023-04-11 11:17:07 +03:00
Andy Melnikov d12da33e55 Fix flake8 W293 and W391 2023-04-11 07:53:32 +02:00
onekum b60c7518b0
Rework local file address blocks
add `def check_local_file_access`, which defines and checks for local file address prefixes; use it to restrict access
2023-04-10 12:10:28 -04:00
Slava Kurilyak (slavakurilyak.eth) 16c3cc9e23
Merge branch 'master' into security-and-robustness-improvements 2023-04-10 09:50:51 -06:00
onekum fa8461be9d
Restrict browse from accessing local files 2023-04-10 09:21:43 -04:00
Andres Caicedo 4ca12e216d Merge branch 'master' into dev 2023-04-10 09:58:13 +02:00
Itamar Friedman da4a045bd6 Adding most basic URL validation in scrape_text 2023-04-10 08:26:46 +03:00
Itamar Friedman b0cb247b83 scrape_text: added tests + hande RequestException 2023-04-10 00:18:37 +03:00
Slava Kurilyak (slavakurilyak.eth) fb36c14517
Merge branch 'master' into security-and-robustness-improvements 2023-04-09 14:56:09 -06:00
Andres Caicedo 26abb30674 Merge branch 'master' into dev 2023-04-09 15:42:53 +02:00
Andres Caicedo 011699e6a1 Code review changes 2023-04-09 15:39:11 +02:00
Petar Ostojic 62854afe68 Added fake user-agent headers to browser request. 2023-04-05 23:44:16 +02:00
slavakurilyak a4f130ff60 Improve security and robustness in browse.py 2023-04-04 19:28:13 -05:00
Andres Caicedo 239accbd82 Merge branch 'master' into dev 2023-04-04 11:47:37 +02:00
Andres Caicedo 772d4beb21 Update browse.py
Just import GET from requests library.
2023-04-04 10:54:52 +02:00
Andres Caicedo 39f758ba5c Update browse.py
Add separation between code blocks and standardize dictionary definition.
2023-04-04 10:53:47 +02:00
Preston Jensen 8a08b0c01b ask questions on websites 2023-04-03 19:20:42 -06:00
Andres Caicedo 8e2074f483 Merge branch 'master' into dev 2023-04-03 13:51:36 +02:00
Taylor Brown 30f8ed95e1 Remove unused imports 2023-04-02 21:52:50 -05:00
Taylor Brown ae9448cb89 Consolidate calls to openai
Starting to abstract away the calls to openai
2023-04-02 21:51:07 -05:00
Taylor Brown 744c5fa25b Remove hardcoding of gpt-3.5-turbo in favor of config 2023-04-02 21:38:21 -05:00
Andres Caicedo eac5c1f6e6 Add documentation 2023-04-02 19:03:37 +02:00
Ikko Eltociear Ashimine 0d94711d76
fix typo in browse.py
specifc -> specific
2023-04-03 00:34:01 +09:00
Torantulino b4685f67e6 Apply autopep8 formatting to entire codebase 2023-04-02 09:13:15 +01:00
Torantulino 7f98e8adfe Deletes old output renderer and renames AutonomousAI folder to scripts 2023-03-31 22:49:17 +01:00