Commit Graph

486 Commits (9706ae8611d901fc749be67067c971d72ec34d73)

Author SHA1 Message Date
Fabrice Hong 862d44ea39 fix(logger): fix typewriter simulation doesn't work well with Typing spinner 2023-04-12 19:54:03 +02:00
Fabrice Hong 1f5049a9c4 doc(logger): added class documentation 2023-04-12 19:41:11 +02:00
Fabrice Hong 43c006d71c feat(global): errors logs are logged as debug level and activated with program argument 'debug' 2023-04-12 19:41:08 +02:00
Richard Beales 0e004f5c14
Merge pull request #697 from Wladastic/fix-user-feedback-json-error
fix json parser
2023-04-12 18:22:47 +01:00
Richard Beales 364e2a4ba1
Merge branch 'master' into add-unit-tests-workflow 2023-04-12 18:14:37 +01:00
Richard Beales 9c9758c720
Merge pull request #700 from Rokniel/azure-deployment-additions
Add required env parameters for azure usage
2023-04-12 18:08:54 +01:00
Richard Beales c98471e333
Merge pull request #685 from STRML/fix/json-parsing
Fix various JSON input bugs
2023-04-12 18:03:34 +01:00
Bernhard Mueller 940772b502 Merge branch 'shellcommands' of github.com:muellerberndt/Auto-GPT into shellcommands 2023-04-12 23:47:16 +07:00
Bernhard Mueller affe77e18c Call subprocess.run with shell=True 2023-04-12 23:46:55 +07:00
Richard Beales a7176cd229
Merge pull request #215 from slavakurilyak/security-and-robustness-improvements
Improve Security and Robustness in browse.py
2023-04-12 17:37:44 +01:00
Bernhard Mueller 9e8d35277b
Update scripts/commands.py
Co-authored-by: Peter Stalman <sarkedev@gmail.com>
2023-04-12 23:32:17 +07:00
Bernhard Mueller cc9723c26e Make chdir code more robust 2023-04-12 23:30:35 +07:00
Bernhard Mueller 15dffed6e5 Merge branch 'master' of github.com:Torantulino/Auto-GPT into shellcommands 2023-04-12 23:15:31 +07:00
profound c5f0cb3d3f fix read config file encoding that broke Chinese 2023-04-12 23:38:30 +08:00
roby.parapat 730fbf591f pull image if it's not found locally 2023-04-12 22:15:22 +07:00
Samuel Reed 434f27fb51 Fix various JSON input bugs in correction
By not having correct_json(json_str) in the try/except,
it was still easily possible to throw Invalid JSON errors.

When responses were received with no JSON at all, parsing
would fail on attempting to locate the braces.
2023-04-12 10:34:33 -04:00
Alrik Olson 2ef9928a2e Merge remote-tracking branch 'origin/master' into prompt-generator 2023-04-12 07:33:36 -07:00
Eesa Hamza ec6918ab48 Added some comments 2023-04-12 16:59:50 +03:00
Eesa Hamza 083ccb6bd3 Added a memory backend argument 2023-04-12 16:58:39 +03:00
Wlad 0105dd340a Merge remote-tracking branch 'upstream/master' into fix-user-feedback-json-error 2023-04-12 15:01:24 +02:00
Peter Edwards 6fa9501251
Merge branch 'Torantulino:master' into more_azure 2023-04-12 13:28:23 +02:00
Gull Man c932087997 add encoding to open file 2023-04-12 12:13:18 +02:00
sarango 16b37fff1d Fix to LocalCache add method, created integration test for it 2023-04-12 21:49:23 +12:00
Peter Edwards 650e2dcd6d cleaned up .env to move Azure config to separate azure.yaml file
updated README.md to explain new config
added Azure yaml loader to config class
centralized model retrieval into config class
this commit effectively combines and replaces #700 and #580
2023-04-12 11:27:37 +02:00
Itamar Friedman 1a7159095a Merge remote-tracking branch 'upstream/master' into browse_scrape_links_test_and_validate 2023-04-12 12:18:16 +03:00
Richard Beales 3ea57ca326
Merge pull request #888 from chozzz/bugfix
Bugfix for #803 - Debug mode
2023-04-12 10:06:04 +01:00
Wlad c6605b06c5 Merge remote-tracking branch 'upstream/master' into fix-user-feedback-json-error 2023-04-12 10:58:09 +02:00
Wlad 4063483b87 add my fixes 2023-04-12 10:56:54 +02:00
Richard Beales 4dbf72159d
Merge pull request #542 from ccheney/attr-error-lower
command_name null check before calling .lower()
2023-04-12 09:54:05 +01:00
Itamar Friedman e8b7a117da Merge remote-tracking branch 'origin/master' into browse_scrape_links_test_and_validate 2023-04-12 11:51:43 +03:00
Itamar Friedman 98778cea73 Merge remote-tracking branch 'upstream/master' 2023-04-12 11:48:55 +03:00
Richard Beales a0cebb02db
Merge pull request #733 from keenborder786/gpt_4_only_option
GPT-4 Only Option
2023-04-12 09:36:45 +01:00
Richard Beales 56ed3eed9b
Merge pull request #871 from Legionof7/typofix
Changed spelling from "GTP" to "GPT". Also removed the 3 as this can run on GPT4.
2023-04-12 09:25:43 +01:00
Drikus Roor f34751a0c3 revert: Revert relative imports in scripts and fix imports in tests 2023-04-12 10:16:00 +02:00
Drikus Roor d0ae72e63b refactor: Refactor imports to be compatible with unit tests 2023-04-12 10:16:00 +02:00
Richard Beales c765b345b4
Merge pull request #904 from endolith/typos
Fix some typos
2023-04-12 08:50:06 +01:00
Toran Bruce Richards 429317e6b2
Merge pull request #910 from dillweed/Elevenlabs-Voice-ID-ENV
Elevenlabs voice ID
2023-04-12 19:26:12 +12:00
Toran Bruce Richards 4c6f18bc59
Merge pull request #878 from Androbin/patch-1
Fix Spinner
2023-04-12 19:22:31 +12:00
Peter Edwards 17b037faf7
Merge branch 'Torantulino:master' into more_azure 2023-04-12 09:18:17 +02:00
Toran Bruce Richards e4bb730826
Merge pull request #759 from BillSchumacher/fix-too-specific-except
Fix case where index throws value error.
2023-04-12 18:51:57 +12:00
vadi 7736762b5a Fix #840 - Add defensive coding for local memory to load the JSON file that was gitignored at 54101c7997
- Added unit test placholder for local cache test
- Removed unused imports from local cache unit test placeholder
2023-04-12 16:38:53 +10:00
vadi bc6f34d7dc Fixes #803
- Brings back debug mode
- Replaces all calls from cfg.debug to cfg.debug_mode that was updated on 5b2d6010dc
- Remove unnecessary config instance at main.py
2023-04-12 16:32:16 +10:00
Dill f8438aabc2 Added option for custom elevenlabs voice IDs. 2023-04-11 21:37:03 -07:00
endolith cf8b06f11f Fix some typos 2023-04-12 00:11:24 -04:00
Chris Cheney 3ffff9f112 Merge branch 'master' of github.com:Torantulino/Auto-GPT into attr-error-lower 2023-04-11 22:51:53 -05:00
Robin Richtsfeld afc7fa6e26
Fix JSON formatting in prompt.txt 2023-04-12 03:09:08 +02:00
Robin Richtsfeld 8d7e0153f0
Fix Spinner 2023-04-12 02:26:30 +02:00
JZ 9725c727da
Changed spelling from "GTP" to "GPT". Also removed the 3 as this can run on GPT4. 2023-04-11 16:22:26 -07:00
Wlad edf364efe8 Merge remote-tracking branch 'upstream/master' into fix-user-feedback-json-error 2023-04-11 23:32:31 +02:00
meta-fx 570f76bd51 Removed trailing spaces and fixed CRLF being removed 2023-04-11 14:44:22 -05:00
Alrik Olson 7a0c9e8a9d fix attempts to import a non-existent module 2023-04-11 10:30:53 -07:00
Alrik Olson 72d4783a1d formatting 2023-04-11 09:21:20 -07:00
Alrik Olson b73bca6b2d Merge remote-tracking branch 'origin/master' into prompt-generator 2023-04-11 09:17:36 -07:00
Alrik Olson fd1cfd2eff Add docs and format code 2023-04-11 09:15:45 -07:00
Alrik Olson b19eb74874 Refactor the seed prompt to be generated programmatically
This removes the tedium of having to re-number every numbered item in the prompt.txt if you want to add/remove commands.
2023-04-11 09:09:59 -07:00
Slava Kurilyak (slavakurilyak.eth) e9e4f11b4a
Merge branch 'master' into security-and-robustness-improvements 2023-04-11 09:32:51 -06:00
kinance e0cb648858 Make the cfg.debug to cfg.debug_mode consistent across files 2023-04-11 23:01:49 +09:00
PierreBastiani dbb78b636f check for authorise 'y' without trailing space 2023-04-11 14:57:29 +01:00
meta-fx efd6a7ecf5
Merge branch 'master' into added-new-voice 2023-04-11 08:39:15 -05:00
meta-fx 3cdde2d49c Resolved conflicts in config.py and speak.py 2023-04-11 08:15:58 -05:00
Toran Bruce Richards d7b747600d
Merge pull request #782 from onekum/patch-1
Change "an" to "a"
2023-04-11 12:55:27 +01:00
Peter Edwards 23f46adc61
Merge branch 'Torantulino:master' into more_azure 2023-04-11 13:54:07 +02:00
Itamar Friedman 1210ba41d0 Merge remote-tracking branch 'upstream/master' 2023-04-11 14:47:28 +03:00
Peter Edwards 9d33a75083 Changes for Azure embedding handling 2023-04-11 13:45:37 +02:00
coditamar f6c8a0f289
Merge branch 'master' into browse_scrape_links_test_and_validate 2023-04-11 14:43:57 +03:00
Toran Bruce Richards 186a8c615e
Merge pull request #678 from kinance/kinance-resolve-debug-config-conflict
Resolve the conflict around debug mode flag after pull merge
2023-04-11 12:34:01 +01:00
Toran Bruce Richards ff7c000c83
Merge pull request #786 from kinance/kiannce-remove-duplicate-debug-mode
Remove duplicates of set debug mode func
2023-04-11 12:31:44 +01:00
kinance b06974904c Remove duplicates of set debug mode func 2023-04-11 19:26:23 +09:00
Rokniel 63d3238c6c
Merge branch 'master' into azure-deployment-additions 2023-04-11 12:21:46 +03:00
onekum b90f355e7d
Change "an" to "a"
Grammar error: In English, only words starting with (a, e, i, o, u) get "an".
2023-04-11 05:01:02 -04: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
Toran Bruce Richards 5a6e565c52
Merge pull request #706 from Sma-Das/remove_imports
[Cleanup] Removed unneeded imports
2023-04-11 06:17:44 +01:00
BillSchumacher 66d316a19c
Fix case where index throws value error. 2023-04-10 21:55:35 -05:00
Toran Bruce Richards 3ed3f16d14
Merge pull request #242 from bituq/master
Fixed speech blocking main thread
2023-04-11 03:31:04 +01:00
Bernhard Mueller aba7956f10
Merge branch 'master' into shellcommands 2023-04-11 09:25:53 +07:00
meta-fx 3ee62211db Fixed formatting issues 2023-04-10 20:56:27 -05:00
Toran Bruce Richards 95f9380f13
Merge pull request #747 from BillSchumacher/fix-json-error
Update json_utils.py
2023-04-11 02:06:15 +01:00
meta-fx 0cf790b633 Added new env variable and speech function for alternative TTS voice 2023-04-10 20:00:43 -05:00
BillSchumacher efcc6a3f76
Update json_utils.py
This was used differently in a local branch and an error.
2023-04-10 19:50:40 -05:00
Wlad 365ef9b50b cleanup 2023-04-11 01:57:49 +02:00
BillSchumacher 1b128a1ef0
Use UTF-8 encoding for Windows users. 2023-04-10 18:50:54 -05:00
kinance 3695c1e0e6
Merge branch 'Torantulino:master' into kinance-resolve-debug-config-conflict 2023-04-11 08:49:43 +09:00
Wlad a86948fa23 include broken json in error log 2023-04-11 01:31:18 +02:00
Wlad 87a2cf029d try another fix 2023-04-11 01:30:07 +02:00
Wlad e80091c482 Merge remote-tracking branch 'upstream/master' into fix-user-feedback-json-error 2023-04-11 01:27:27 +02:00
Wlad 82379bb416 fix dump 2023-04-11 01:02:45 +02:00
Dylan N 6ab197a9c5
Merge branch 'master' into master 2023-04-11 00:52:28 +02:00
Bituq 353785d23d Fix macos_tts_speech merge conflict 2023-04-11 00:50:57 +02:00
Toran Bruce Richards ed581461df
Merge pull request #712 from nponeccop/pr-whitespace2
Remove trailing whitespace throughout
2023-04-10 23:02:31 +01:00
Toran Bruce Richards 78d2d57b8d
Merge pull request #702 from yoshikouki/clean-up-command
Remove unnecessary assignments
2023-04-10 23:00:15 +01:00
Toran Bruce Richards 7c5e3b03c5
Merge pull request #690 from onekum/patch-2
Restrict browse from accessing local files
2023-04-10 22:57:02 +01:00
Toran Bruce Richards cdcec2f619
Merge pull request #648 from pratiksinghchauhan/fix-#323-error-communicating-to-openai
Fix #323 Error communicating with OpenAI: Invalid URL 'your-base-url-for-azure/embeddings'
2023-04-10 22:46:46 +01:00
Toran Bruce Richards 3aade672b6
Merge pull request #637 from Wladastic/use-macos-tts-instead-of-gtts
add config to use mac os tts instead of elevenlabs or gtts
2023-04-10 22:42:55 +01:00
Toran Bruce Richards 0eab8d1087
Merge pull request #633 from Sma-Das/clean_input
[Utility] Created clean_input to cleanly exit KeyboardInterrupts
2023-04-10 22:39:45 +01:00
Wladastic 4ad1fc14a4 use regex instead of re 2023-04-10 22:59:16 +02:00
keenborder786 334a1d2632
[feat]: Added a argument which allows gpt4 only mode and configure the fast_llm_model accordingly 2023-04-11 01:23:59 +05:00
Wlad ca4afca5da add log when json was fixed. 2023-04-10 21:48:00 +02:00
Wladastic 33d1fd3d6d attempt fix 2023-04-10 21:30:21 +02:00
Richard Beales f69e46208e remove trailing newline 2023-04-10 19:50:56 +01:00
Richard Beales c6bdb0f0ba remove trailing newline 2023-04-10 19:50:13 +01:00
Richard Beales f727f5d9ea Merge https://github.com/richbeales/Auto-GPT 2023-04-10 19:36:04 +01:00
Richard Beales 081415ab6c fix merge conflict 2023-04-10 19:32:52 +01:00
Wladastic 1f9d66b745 Merge branch 'master' into fix-user-feedback-json-error 2023-04-10 19:45:39 +02:00
Wlad bb36634b46 fix line 328 error 2023-04-10 19:40:55 +02:00
Andy Melnikov c9701a3302 Remove trailing whitespace throughout 2023-04-10 18:17:11 +02:00
Bernhard Mueller 9598679180
Merge branch 'master' into shellcommands 2023-04-10 23:16:39 +07: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
Sma Das 5c1c3f9c7e
Added exit message on `KeyboardInterrupt` 2023-04-10 11:31:43 -04:00
Sma Das cd07115a39
Removed trailing whitespace 2023-04-10 11:29:15 -04:00
Sma Das 8cf58d00cf Removed unneeded imports 2023-04-10 10:57:47 -04:00
Sma Das cf1856aa25
Merge branch 'master' into clean_input 2023-04-10 10:50:05 -04:00
Dylan N 88a802a675
Remove voice_settings parameters
I removed the voice_settings parameters as it was an irrelevant change.
2023-04-10 16:44:01 +02:00
kinance 389cc82a5a
Merge branch 'Torantulino:master' into kinance-resolve-debug-config-conflict 2023-04-10 23:08:25 +09:00
yoshikouki 527e084f39 Remove unnecessary assignments 2023-04-10 22:57:41 +09:00
Kari Ahdan a504f0bdd3 Add required env parameters for azure usage 2023-04-10 16:43:06 +03:00
Toran Bruce Richards 4d42e14d3d
Merge pull request #695 from cryptidv/master
Changed occurances of 'cfg.debug_mode'  to 'cfg.debug'
2023-04-10 14:35:51 +01:00
Wlad 66b36e9879 fix json parser - messy 2023-04-10 15:35:10 +02:00
Toran Bruce Richards c300276d6d Change debug_mode to debug in chat.py. 2023-04-10 14:32:13 +01:00
Toran Bruce Richards 37b4473137 Fixes extra arg given in chat-with-ai call in main 2023-04-10 14:23:20 +01:00
cryptidv 026361aa3a Changed occurances of 'cfg.debug_mode' to 'cfg.debug' 2023-04-10 14:22:58 +01:00
onekum fa8461be9d
Restrict browse from accessing local files 2023-04-10 09:21:43 -04:00
Pratik Singh Chauhan 72f609fd26
Merge branch 'master' into fix-#323-error-communicating-to-openai 2023-04-10 18:24:45 +05:30
Toran Bruce Richards 186235f488 Fixes missing cfg in main.py 2023-04-10 13:54:27 +01:00
Wladastic 826a9c8452
Merge branch 'master' into use-macos-tts-instead-of-gtts 2023-04-10 14:47:28 +02:00
Toran Bruce Richards e87b6912bd
Merge branch 'master' into add_documentation 2023-04-10 13:43:24 +01:00
Toran Bruce Richards 78315a99ee
Merge branch 'master' into pr-whitespace 2023-04-10 13:35:47 +01:00
Toran Bruce Richards 93c2582705
Merge branch 'master' into master 2023-04-10 13:29:53 +01:00
Andy Melnikov 4a86da95f9 Remove trailing spaces throughout
This happens often in PRs so fixing this everywhere will make many PRs
mergeable as they won't include irrelevant whitespace fixes
2023-04-10 14:25:24 +02:00
Wlad 7e9941e5b1 fix whitespace 2023-04-10 14:17:18 +02:00
Wlad ec239734c5 fix whitespace 2023-04-10 14:15:30 +02:00
Toran Bruce Richards df01d6a4ac
Merge pull request #378 from eltociear/patch-2
fix typo in json_parser.py
2023-04-10 13:14:12 +01:00
Wlad 9dbc8c0455 Merge branch 'master' into use-macos-tts-instead-of-gtts 2023-04-10 14:13:48 +02:00
Toran Bruce Richards ecd448ca0f
Merge pull request #115 from AndresCdo/open_ai_api_key
Introduce check to OPENAI_API_KEY
2023-04-10 13:12:26 +01:00
Ikko Eltociear Ashimine bcf1606d8a
Merge branch 'master' into patch-2 2023-04-10 20:56:55 +09:00
kinance 5b2d6010dc Resolve the conflict around debug mode flag after pull merge 2023-04-10 20:10:11 +09:00
Toran Bruce Richards 97f853a79d
Merge pull request #33 from AndresCdo/dev
Add documentation
2023-04-10 12:07:42 +01:00
Toran Bruce Richards 1f0209bba7
Fixe incorrect Docstring 2023-04-10 12:07:16 +01:00
Wlad ed16bba0ca fix gtts_speech 2023-04-10 11:22:47 +02:00
Wlad 1946b564a1 fix gtts_speech 2023-04-10 11:22:24 +02:00
Wlad 64eb882947 fix code messup of assistant 2023-04-10 11:20:58 +02:00
Wlad 205a0c84cf fix config read 2023-04-10 11:18:17 +02:00
Wlad 2facc3e2cb add config for mac os tts 2023-04-10 11:11:03 +02:00
onekum b673302134
Make `do_nothing` line uniform 2023-04-10 04:43:34 -04:00
Andres Caicedo 4ca12e216d Merge branch 'master' into dev 2023-04-10 09:58:13 +02:00
Richard Beales 3e249b0557 Merge branch 'master' of https://github.com/Torantulino/Auto-GPT 2023-04-10 08:37:59 +01:00
Richard Beales 2fb06a3db5
trying to get the right amount of spacing / newlines at the end of main.py! 2023-04-10 08:14:48 +01:00
Richard Beales 9cea7c0f61
Update main.py 2023-04-10 08:11:54 +01:00