Commit Graph

543 Commits (89e0e8992795accfc41183723064dcdab9719f8e)

Author SHA1 Message Date
BillSchumacher a861dec676
Memory fixes. 2023-04-08 23:33:18 -05:00
Toran Bruce Richards 9e139fb314
Wipe local memory on load 2023-04-09 05:22:03 +01:00
BillSchumacher 2db7f0815e
Update main.py
Remove pinecone config requirement
2023-04-08 22:25:59 -05:00
Ryan Peach 47c6117e18 Added time and date to the system message for each context 2023-04-08 22:59:28 -04:00
Chris Cheney aa786e1b41
command_name null check before calling .lower()
fixes #534

`AttributeError: 'NoneType' object has no attribute 'lower'`
2023-04-08 21:30:36 -05:00
Toran Bruce Richards b63238f40f
Merge branch 'master' into redis-backend 2023-04-09 02:43:14 +01:00
Toran Bruce Richards d1777e39a8
Fixes incorrect class names in __all__
Changes "Cache" to "Memory".
2023-04-09 02:31:51 +01:00
Bill Morgan 7cba76228e fix command error check 2023-04-08 08:24:24 -05:00
Bill Morgan 3f66a6a0a3 fix typo in prompt.txt 2023-04-08 07:41:25 -05:00
Toran Bruce Richards 7e108d8ab3
Merge pull request #416 from blankey1337/feat/image-generation
🖼 Image Generation: Adds DALL-e and Stable Diffusion support
2023-04-08 12:27:55 +01:00
Toran Bruce Richards 8b36a5cfd3
Removes comment 2023-04-08 12:27:05 +01:00
Bernhard Mueller 66eb1dcfc5 Add exec_shell command 2023-04-08 12:39:03 +07:00
kinance c4c7350670 Revised the debug mode 2023-04-08 13:05:32 +09:00
kinance 91fe21e64d Revised to support debug mode from command line 2023-04-08 12:39:57 +09:00
Fábio Machado de Oliveira 9328c8f7b5 Settings were being saved and loaded in the wrong directory 2023-04-08 00:15:14 -03:00
BillSchumacher a34c51bf86
Update scripts/config.py
Co-authored-by: Jason Kölker <jason@koelker.net>
2023-04-07 20:58:00 -05:00
BillSchumacher d7ccaf45a9
Merge branch 'master' of github.com:Torantulino/Auto-GPT into redis-backend 2023-04-07 20:39:35 -05:00
keenborder786 b983faa953
[fix]: Added an exception in main.py if pinecone_api_key is not provided 2023-04-08 04:36:10 +05:00
BillSchumacher 503b58b794
Refactor memory into factory. 2023-04-07 18:30:04 -05:00
BillSchumacher cb14c8d999
Implement local memory. 2023-04-07 18:13:18 -05:00
Coley 77c98a0311 Removed doctest call 2023-04-07 16:57:39 -04:00
Coley 7ae5ffe389 linted changes 2023-04-07 16:52:50 -04:00
Coley 7f4a7d7ccd Added class, method and function doc strings 2023-04-07 16:47:09 -04:00
BillSchumacher 14e10c9c4d
Add configurable index key for redis. 2023-04-07 15:27:48 -05:00
BillSchumacher 5d13fb2546
Remove unused function. 2023-04-07 15:03:20 -05:00
blankey1337 091db1d4c3
chore(ImageGen): cleanup 2023-04-07 12:47:49 -07:00
blankey1337 f3e64ec4e9
feat(ImageGen): support env vars, update readme 2023-04-07 11:29:43 -07:00
blankey1337 b56b04e86f
feat(ImageGen): add DALL-E support 2023-04-07 11:03:23 -07:00
blankey1337 28cc9865e4
feat(ImageGen): add stable diffusion support 2023-04-07 08:02:48 -07:00
Ikko Eltociear Ashimine c1034df2d3
fix typo in json_parser.py
specifed -> specified
2023-04-07 17:25:22 +09:00
BillSchumacher cce79695fa
Save redis memory state, with the default being to wipe on start still. 2023-04-07 00:48:27 -05:00
BillSchumacher 5a1d9e6d0a
Implement redis memory backend. 2023-04-07 00:08:25 -05:00
blankey1337 57412bcf4e
add kandinsky support - cuda issue 2023-04-06 21:16:05 -07:00
BillSchumacher 6819799ebe
Create an abstract MemoryProviderSingleton class. Pass config instead of instantiating a new one where used. 2023-04-06 22:25:17 -05:00
Dino Hensen c1326469b2 The function default serialized gpt-4 value at import time, leading to yield a value of gpt-4 after setting gpt3only when not passing a value for model to the function when calling it, this fixes it 2023-04-06 17:15:40 +02:00
Dylan N 89853cf3b8
Merge branch 'master' into master 2023-04-06 14:04:26 +02:00
Dylan ef4a02757f Add semaphore to speak module 2023-04-06 14:02:39 +02:00
Toran Bruce Richards 4330f79373
Merge pull request #229 from ReadyG/patch-1
Added missing double quotes around name in the prompt.txt text file
2023-04-06 12:28:39 +01:00
Toran Bruce Richards 672bb5e620
Merge pull request #233 from russellocean/master
Implement custom continuous task count with 'y -n' command
2023-04-06 12:27:41 +01:00
Toran Bruce Richards f33ff6ea01
Merge pull request #256 from fabricehong/fix_fix-json-wrong-interpretation
fix(json-jixer): enclose arguments in a python multi-line string so t…
2023-04-06 12:06:28 +01:00
Toran Bruce Richards 61685c6f0b Renames last_run_ai_settings to ai_settings.
Hopefully this helps people realise they can edit it themselves.
2023-04-06 11:47:12 +01:00
Toran Bruce Richards a45ed8c42a Moves last_run_ai_settings.yaml to root so it's easier to find and use. 2023-04-06 11:46:13 +01:00
Toran Bruce Richards 9067a523fe
Merge branch 'master' into pinecone-memory 2023-04-06 11:05:01 +01:00
Dylan 0cbd2bb3d0 Fix voice_index not being used 2023-04-06 11:59:46 +02:00
Toran Bruce Richards a9451f4961
Merge pull request #258 from sweetlilmre/add-azure-compat
Added functionality to allow the use of GPT on a Microsoft Azure instance
2023-04-06 10:14:44 +01:00
Toran Bruce Richards 6f3bfe7ba0
Merge pull request #259 from fabricehong/fix_fix_json_returning_wrong_type
fixing the "TypeError('the JSON object must be str, bytes or bytearray, not dict')" after a json_fix is successful
2023-04-06 10:07:59 +01:00
Toran Bruce Richards 447cb4bdfe
Merge pull request #260 from fabricehong/fix_remove_tab_in_json_str
fix(json_parser): remove the tab character that can be present in the…
2023-04-06 10:00:13 +01:00
Toran Bruce Richards ba615fb883
Merge pull request #275 from master312/master
Added fake user-agent headers to browser request.
2023-04-06 09:53:59 +01:00
Toran Bruce Richards b8f2dd59c8 Fixes "/" search not working. 2023-04-06 09:23:03 +01:00
Toran Bruce Richards 7080881d56
Merge pull request #220 from slavakurilyak/add-search-files-command
Add search_files command to the project
2023-04-06 09:18:58 +01:00
Toran Bruce Richards c92eebc11c
Merge pull request #208 from slavakurilyak/add_is_valid_int_and_key_validation
Improve Key Validation and Handling in Overwrite Memory and Message Agent Functions
2023-04-06 08:50:11 +01:00
Toran Bruce Richards a55a64c1c9 Adds voice index back in.
Agents now have a different voice again.
2023-04-06 08:46:57 +01:00
Toran Bruce Richards dcc29a5568
Fixes broken reference to speak.say_text 2023-04-06 08:29:28 +01:00
Peter Edwards 34b6f47f71 Fix for boolean eval from .env 2023-04-06 09:15:45 +02:00
Toran Bruce Richards 962fc9a42a
Changes string_key_memory to permanent_memory.
Fixes:
```Command memory_ovr returned: Error: module 'memory' has no attribute 'string_key_memory'```
2023-04-06 08:07:54 +01:00
Toran Bruce Richards 415bdaad59
Merge pull request #170 from thepok/master
More logical Prompt - found by Agusx1211
2023-04-06 07:56:44 +01:00
Toran Bruce Richards ce646f7a3f
Merge pull request #167 from ImPavloh/patch-1
Refactor load_prompt function
2023-04-06 07:55:10 +01:00
Petar Ostojic 62854afe68 Added fake user-agent headers to browser request. 2023-04-05 23:44:16 +02:00
douglas 475671d1e8 Pinecone memory and memory usage tracking 2023-04-05 16:20:43 -04:00
Fabrice Hong 051be4df10 fix(json_parser): fixing the "TypeError('the JSON object must be str, bytes or bytearray, not dict')" after a json_fix is successful 2023-04-05 20:21:40 +02:00
Fabrice Hong ffb95eb031 fix(json_parser): remove the tab character that can be present in the generated json. It makes the json.loads function throw an Invalid JSON error 2023-04-05 20:20:24 +02:00
Peter Edwards a868a39b88 Added functionality to allow the use of GPT on a Microsoft Azure instance 2023-04-05 19:44:28 +02:00
Fabrice Hong 29a45de253 fix(json-jixer): enclose arguments in a python multi-line string so the fix_json assistant (GPT-3.5) can understand we are providing 2 strings arguments instead of one 2023-04-05 19:09:56 +02:00
russellocean c8a927d3ec
Syntax Error, Revert formatting errors, remove 308 2023-04-05 10:28:50 -04:00
russellocean c8c8f5b11e
Apply suggestions from code review
Thanks to @Gerqus

Co-authored-by: Paweł Pieniacki <ppieniacki@gmail.com>
2023-04-05 10:19:56 -04:00
Bituq 73bf928c1d fixed speech blocking main thread 2023-04-05 15:50:28 +02:00
russellocean c1be8a7403
Implement custom continuous task count with 'y -n' 2023-04-05 00:56:15 -04:00
ReadyG 98a2b4d9a5
Update prompt.txt
Added double quotes around <name> on line 14.
2023-04-05 00:11:19 -04:00
slavakurilyak b418861d70 Update message_agent function to support string keys 2023-04-04 20:53:41 -05:00
slavakurilyak 1e47328079 Add search files command 2023-04-04 20:32:15 -05:00
slavakurilyak a4f130ff60 Improve security and robustness in browse.py 2023-04-04 19:28:13 -05:00
slavakurilyak ed5952782f Improve key validation and handling in overwrite_memory and message_agent functions 2023-04-04 15:53:59 -05:00
thepok 624e5b8a18 More logical Prompt - found by Agusx1211 2023-04-04 15:21:46 +02:00
Toran Bruce Richards e1d3cc9492 Fixes:
TypeError: eleven_labs_speech() missing 1 required positional argument: 'text'
2023-04-04 13:09:33 +01:00
Pavloh 8150f0c813
Refactor load_prompt function
Simplify the load_prompt function by eliminating redundancy
2023-04-04 13:24:14 +02:00
Andres Caicedo 54cbf1cae1 Merge branch 'master' into dev 2023-04-04 12:21:26 +02:00
Toran Bruce Richards e1cf66b791
Merge branch 'master' into ddg-search 2023-04-04 22:05:17 +12:00
Andres Caicedo 239accbd82 Merge branch 'master' into dev 2023-04-04 11:47:37 +02:00
Toran Bruce Richards 8747ff64b9
Merge pull request #129 from prestoj/ask-questions-on-websites
Ask questions when browsing websites
2023-04-04 21:44:16 +12:00
Andres Caicedo 6773e28b61 Merge branch 'master' into dev 2023-04-04 11:39:31 +02:00
Andres Caicedo 62615cacc9 Adds necessary spaces
Introduces spaces between code blocks.
2023-04-04 11:36:50 +02:00
Andres Caicedo 621f18eba7 Update json_parser.py
Introduces spaces between code blocks.
2023-04-04 11:34:28 +02:00
Andres Caicedo 1d10236a63 Update file_operations.py
Introduces spaces between code blocks.
2023-04-04 11:32:55 +02:00
Andres Caicedo d450ac3a0b Update execute_code.py
Just import path from OS library.
2023-04-04 11:31:20 +02:00
Andres Caicedo 1632f7ebf6 Update data.py
Just import path from OS library.
2023-04-04 11:30:20 +02:00
Andres Caicedo 8053ecd5c6 Update config.py
Introduce spaces between code blocks.
2023-04-04 11:29:02 +02:00
Andres Caicedo 632d87c195 Update commands.py
Just import datetime from datetime library.
2023-04-04 11:28:15 +02:00
Toran Bruce Richards e1472b7074
Merge pull request #149 from Void-n-Null/master
Added a default (free) library for text to speech
2023-04-04 21:08:39 +12:00
Toran Bruce Richards 01cce1b570
Merge pull request #94 from PhilipAD/'google_search'-command-instead-of-'google'-command
Fix Issue with command hallucination 💭
2023-04-04 21:05:36 +12:00
Toran Bruce Richards 4d4ff658ab
Update scripts/data.py 2023-04-04 10:04:02 +01:00
Toran Bruce Richards 8b3c2fee2e
Update scripts/data.py 2023-04-04 10:03:30 +01:00
Andres Caicedo 9699a1ca78 Update chat.py
Just import sleep from time library.
2023-04-04 11:03:09 +02:00
Toran Bruce Richards c3288dcca8
Merge branch 'master' into fix-prompt-path 2023-04-04 21:02:35 +12:00
Andres Caicedo 500b2b4836 Update chat.py
Adds code separation between code blocks.
2023-04-04 11:02:01 +02:00
Toran Bruce Richards 6d86444b6f
Renames FOLDER to SRC_DIR 2023-04-04 10:00:53 +01:00
Toran Bruce Richards 4c66cd6f4a
Renames FOLDER to SRC_DIR 2023-04-04 10:00:40 +01:00
Andres Caicedo 238824553a Update chat.py
Standardize importation of libraries to top.
2023-04-04 10:58:38 +02:00
Andres Caicedo 1b7b367ce9 Update call_ai_function.py
Standardize importation of libraries to top.
2023-04-04 10:56:56 +02:00
Toran Bruce Richards 3088050d82
Merge pull request #154 from mapleeit/patch-1
fix(prompt): fix typos
2023-04-04 20:55:13 +12:00
Andres Caicedo 772d4beb21 Update browse.py
Just import GET from requests library.
2023-04-04 10:54:52 +02:00
Toran Bruce Richards 364b7724a9
Merge pull request #133 from prestoj/human-feedback-in-manual-mode
human feedback in manual mode
2023-04-04 20:53:54 +12:00
Andres Caicedo 39f758ba5c Update browse.py
Add separation between code blocks and standardize dictionary definition.
2023-04-04 10:53:47 +02:00
Andres Caicedo 1b4a5301d0 Update ai_functions.py
Just import dumps from JSON library.
2023-04-04 10:49:28 +02:00
Andres Caicedo 27bf7c47e9 Update ai_functions.py
Unnecessary spaces
2023-04-04 10:48:19 +02:00
Andres Caicedo cd164648ba Update ai_config.py
Add separation between code blocks.
2023-04-04 10:47:04 +02:00
Andres Caicedo b6344b98e2 Update main.py
Add separation between code blocks.
2023-04-04 10:46:02 +02:00
Andres Caicedo e2892a92a1 Merge branch 'master' into dev 2023-04-04 10:37:42 +02:00
Zhaofeng Miao 4650882d97
fix(prompt): fix typos 2023-04-04 16:37:23 +08:00
Master Blood 68e4af8685 Added a default (free) library for text to speech
Adds the gTTS (Google Text-to-Speech) Python library as a fallback for text-to-speech conversion in the speak.py file. The changes were made to ensure that users can still convert text to speech even if the ElevenLabs API key is not set or if the API encounters an error. Additionally, the requirements.txt file has been updated to include the new gTTS dependency.
2023-04-03 22:38:01 -07:00
yousefissa 570c161e5e add final exception handling back 2023-04-03 22:21:42 -07:00
yousefissa 82da7f1681 fix assistant thoughts failure on string type 2023-04-03 22:19:32 -07:00
Preston Jensen 2af9cf853a human feedback in manual mode 2023-04-03 20:12:11 -06:00
Toran Bruce Richards 4839a0d89b
Merge pull request #112 from TookTheRedBean/master
fix: OpenAPI key variable name typo
2023-04-04 13:26:10 +12:00
Preston Jensen 8a08b0c01b ask questions on websites 2023-04-03 19:20:42 -06:00
Toran Bruce Richards f6c201f038
Merge pull request #102 from yousefissa/yi-fix-print-thoughts-failures
fix: UnboundLocalError: local variable 'assistant_thoughts_reasoning' referenced before assignment
2023-04-04 11:38:35 +12:00
TookTheRedBean 7556bac42e
Merge branch 'Torantulino:master' into master 2023-04-03 16:38:31 -07:00
Toran Bruce Richards e612b119d3
Merge pull request #81 from yousefissa/yi-write-to-file
Fix: create file dir if it doesnt exist during write_to_file
2023-04-04 11:27:37 +12:00
Toran Bruce Richards 7e529e19d9
Removes print. 2023-04-04 00:24:22 +01:00
Andres Caicedo 301ff85fd5 Update main.py
Introduce check to OPENAI_API_KEY
2023-04-04 00:15:17 +02:00
yousefissa 8753eba22c comments 2023-04-03 14:55:30 -07:00
yousefissa 04c43432c2 cleanup method 2023-04-03 14:53:19 -07:00
kminer 79f0882dfc fix: OpenAPI key variable name typo 2023-04-03 15:35:01 -06:00
russellocean f2ba7f21c5 Added support for Google Custom Search API
This pull request adds functionality to the project to allow for a choice between the original Google search method and the Google Custom Search API. The google_search method uses the original method of scraping the HTML from the search results page, using googlesearch-python, while the google_official_search method uses the Google Custom Search API to retrieve search results.

How to test:

To test the functionality, ensure that you have valid API keys and search engine IDs for both the Google search method and the Google Custom Search API. You can set these values in your environment variables as described in the README.md file.

Additional Notes:

This pull request only adds functionality and makes improvements to existing code. No new features or major changes have been introduced.
2023-04-03 16:44:10 -04:00
yousefissa 8a5c9800e7 fix assistant plan variables being referenced before assignment 2023-04-03 13:00:50 -07:00
Rafael Moraes 6306a033cc Fixed googlesearch dependency issue
Swapped the googlesearch package for the duckduckgo-search. It uses the ddg instant answer API and works very similarly to the googlesearch one.
2023-04-03 15:11:15 -04:00
“Philip 962a5bb76c Fix Issue with command hallucination 💭
Fixes an issue where it hallucinates on "COMMANDS" 💭
2023-04-03 19:44:12 +01:00
yousefissa 9ef4fab084 error handling back 2023-04-03 08:50:07 -07:00
yousefissa 4416aa1aa1 create file dir if it doesnt exist during write_to_file 2023-04-03 08:48:43 -07:00
Andres Caicedo a573224089 Merge branch 'master' into dev 2023-04-03 16:58:31 +02:00
Toran Bruce Richards 51e293f64c Adds --gpt3only mode! 2023-04-03 15:46:46 +01:00
Andres Caicedo ee753ed34c Merge branch 'master' into dev 2023-04-03 16:40:25 +02:00
Andres Caicedo 8a29e71465 Merge branch 'master' into dev 2023-04-03 16:37:11 +02:00
0xcha05 c8149b0415
better arg parsing 2023-04-03 19:56:01 +05:30
Veylkh f72afc7558 dirtyjson -> json
Fixes the missing UserDict (caused by migration from python 3.9 to ^3.10)
2023-04-03 14:28:22 +02:00
Andres Caicedo 765210f0cd Add extra documentation 2023-04-03 14:10:02 +02:00
Andres Caicedo 8e2074f483 Merge branch 'master' into dev 2023-04-03 13:51:36 +02:00
Toran Bruce Richards 3093ec9369 Tweaks prompt for better results on both models! 2023-04-03 11:37:43 +01:00
Toran Bruce Richards 109b9288a7 Removes logging and uses new config token limit. 2023-04-03 11:37:18 +01:00
Toran Bruce Richards e50e826857 Tweaks welcome back prompt. 2023-04-03 11:35:08 +01:00
Toran Bruce Richards f426b51038 Changes python version to 3.10 in execute_code. 2023-04-03 11:34:39 +01:00
Toran Bruce Richards c9be6edf9e Improves parsing of AI JSON output.
This makes gpt3.5 turbo fully possible! 🚀
2023-04-03 11:34:17 +01:00
Toran Bruce Richards 2bdd6b7b83 Adds missing google search import. 2023-04-03 11:33:35 +01:00
Toran Bruce Richards ba6df3674b Fixes overwrite memory command. 2023-04-03 11:33:18 +01:00
Toran Bruce Richards 6a0a1355f0 Fixes google search command. 2023-04-03 11:33:01 +01:00
Toran Bruce Richards b1cc474b92 removes unused commands. 2023-04-03 11:32:40 +01:00
Toran Bruce Richards 59d52e9bc7 Sets actual token limits. 2023-04-03 11:30:39 +01:00
Toran Bruce Richards 099a5e1090 Handles incorrect AI formatting in a more forgiving way. 2023-04-03 11:30:06 +01:00
Toran Bruce Richards 41daf07219 Vastly improves context window management.
Now uses tokens and biggest context possible.
2023-04-03 11:28:06 +01:00
Toran Bruce Richards 04710ae57b Implements counting of exact tokens 🚀 2023-04-03 11:26:09 +01:00
Toran Bruce Richards 5a669d96eb Evaluated code should not be JSON. 2023-04-03 11:25:43 +01:00
Toran Bruce Richards 1e73ee2958 Adds todo comment. 2023-04-03 11:24:36 +01:00
Taylor Brown 7fd2ce2bc6 Clean up where last_run_settings go 2023-04-02 22:12:14 -05:00
Taylor Brown 4173b07bce Remove excessive debug text 2023-04-02 22:12:12 -05:00
Taylor Brown afceca0625 Remove commented code from ai_config 2023-04-02 22:11:06 -05:00
Toran Bruce Richards 0c1636565f
Fixes missing openai import 2023-04-03 03:57:51 +01:00
Toran Bruce Richards aed8c5b469
Fixes openai key not set error. 2023-04-03 03:57:38 +01: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
Taylor Brown 80ccd10d0b Use gpt-4 by default for the main thought process
Allow specifying the llm through dotenv
Move more things into config
2023-04-02 21:35:28 -05:00
Taylor Brown 3e587bc7fb Make the json_parser more robust
For some reason the bot keeps prefacing its JSON. This fixes it for now.
2023-04-02 18:50:51 -05:00
Taylor Brown 28c18adff0 Merge master to fixes_gpt3 2023-04-02 18:30:28 -05:00
Tom Viner 1e892bfb05 don't depend on the path script is run from 2023-04-03 00:07:18 +01:00
Toran Bruce Richards 64af11f4ab
Merge pull request #32 from eltociear/patch-1
fix typo in browse.py
2023-04-03 10:52:40 +12:00
Taylor Brown 10833c86b7 Add pyyaml package to requirements 2023-04-02 17:37:30 -05:00
Taylor Brown dca5b78bfe Add missing json_parser.py and add alternative requirements
This adds fix_and_parse_json
Also, add requirements-alternative.txt to help install reqs in a different environment
2023-04-02 17:34:11 -05:00
Taylor Brown 2b5a7cc485 Add missing properties to config.py 2023-04-02 17:17:46 -05:00
Taylor Brown 9ff7e5954b Make compatible with gpt-3.5
I made the json parsing more forgivable. I improved the prompt, using things I learned from: Koobah/Auto-GPT
2023-04-02 16:39:17 -05:00
Taylor Brown f808710528 Attempt to improve JSON handling in GPT-3 2023-04-02 14:48:35 -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
James C. Palmer 5e746afef8 Use `load_dotenv()` in `chat.py` and `speak.py`. 2023-04-02 09:32:25 -04:00
Toran Bruce Richards 99a33023c4 Fixes incorrect handling of openai RateLimitExceeded errors. 2023-04-02 13:46:31 +01:00
James C. Palmer ef656a0f77 Remove `keys.py` and replace with `python-dotenv`.
- Removed `keys.py`.
- Added `.env.template`.
- Added `.env` to `.gitignore`.
- Updated various files that imported `keys` to use `os.getenv` instead.
- Updated `requirements.txt` dependencies.
- Updated README.md with instructions on setting up environment variables.

This change improves security, flexibility, and makes it easier to use Auto-GPT in notebooks. Environment variables are stored in `.env` and loaded via `load_dotenv()` in `scripts/main.py`.
2023-04-02 06:39:55 -04:00
James C. Palmer cffe083ff2 Move requirements.txt to root directory. 2023-04-02 05:44:45 -04:00
Torantulino 01b3ef2f66 Automated changes 2023-04-02 08:58:19 +00:00
Torantulino abdc7f447c Adds comment to call_ai_function. 2023-04-02 09:56:53 +01:00
Torantulino 0a290927a0 Reformats with "Black" formatter. 2023-04-02 09:55:44 +01:00
Torantulino b4685f67e6 Apply autopep8 formatting to entire codebase 2023-04-02 09:13:15 +01:00
Torantulino a2e5de7469 Removes "check_news" command.
This command is made redundant by the browse_website command.
2023-04-02 09:12:08 +01:00
Torantulino 40921f88f1 Merge branch 'master' of https://github.com/Torantulino/Entrepreneur-GPT 2023-04-02 07:40:44 +01:00
Torantulino 850847b9ec Fixes print_to_console sometiems speaking text when speaking is disabled. 2023-04-02 07:40:32 +01:00
egokick be851e391b
Add missing docker requirement 2023-04-01 15:59:33 -07:00
Torantulino de975d3bf9 Implements code execution command!
This allows the AI to execute code inside it's workspace folder.
2023-04-01 16:01:36 +01:00
Torantulino 29d8fa5d38 First imeplementation of execute_code.
This is too limited by it's sandboxing by RestrictedPython.
2023-04-01 14:37:50 +01:00
Torantulino acaa6e394a Fixes bug: Agent 0 does not exist 2023-04-01 14:24:59 +01:00
Torantulino 3edae91524 Implements Code Improvement, powered by AI Functions. 2023-04-01 10:35:32 +01:00
Torantulino 8767018c1e Adds AI functions.
These are no-code functions written by AI.
2023-04-01 10:34:32 +01:00
Torantulino a608d8dbdc Adds full file I/O 2023-04-01 04:08:30 +01:00
Toran Bruce Richards 73e845e285
Update prompt.txt 2023-04-01 03:28:17 +01:00
Torantulino ffeb1aca73 Implements handling of OpenAI rate limit error. 2023-04-01 01:30:13 +01:00
Toran Bruce Richards d71ba8ff65
Update keys.py
Accidentally leaked keys, old keys disabled ;)
2023-03-31 22:54:47 +01:00
Torantulino 7f98e8adfe Deletes old output renderer and renames AutonomousAI folder to scripts 2023-03-31 22:49:17 +01:00