James Collins
dfcbf6eee6
Refactor/move singleton out of config module ( #3161 )
2023-04-24 17:24:57 -05:00
Lei Zhang
a5cc67badd
anontation fix ( #3018 )
...
* anontation fix
* fix param name and type
---------
Co-authored-by: Richard Beales <rich@richbeales.net >
2023-04-24 21:08:02 +01:00
Vwing
d6ef9d1b5d
Make Auto-GPT aware of its running cost ( #762 )
...
* Implemented running cost counter for chat completions
This data is known to the AI as additional system context, and is printed out to the user
* Added comments to api_manager.py
* Added user-defined API budget.
The user is now prompted if they want to give the AI a budget for API calls. If they enter nothing, there is no monetary limit, but if they define a budget then the AI will be told to shut down gracefully once it has come within 1 cent of its limit, and to shut down immediately once it has exceeded its limit. If a budget is defined, Auto-GPT is always aware of how much it was given and how much remains to be spent.
* Chat completion calls are now done through api_manager. Total running cost is printed.
* Implemented api budget setting and tracking
User can now configure a maximum api budget, and the AI is aware of that and its remaining budget. The AI is instructed to shut down when exceeding the budget.
* Update autogpt/api_manager.py
Change "per token" to "per 1000 tokens" in a comment on the api cost
Co-authored-by: Rob Luke <code@robertluke.net >
* Fixed lint errors
* Include embedding costs
* Add embedding completion cost
* lint
* Added 'requires_api_key' decorator to test_commands.py, switched to a valid chat completions model
* Refactor API manager, add debug mode, and add tests
- Extract model costs to to avoid duplication
- Add debug mode parameter to ApiManager class
- Move debug mode configuration to
- Log AI response and budget messages in debug mode
- Implement 'test_api_manager.py'
* Fixed test_setup failing. An extra user input is needed for api budget
* Linting
---------
Co-authored-by: Rob Luke <code@robertluke.net >
Co-authored-by: Nicholas Tindle <nick@ntindle.com >
2023-04-23 16:04:31 -05:00
James Collins
dcd6aa912b
Add workspace abstraction ( #2982 )
...
* Add workspace abstraction
* Remove old workspace implementation
* Extract path resolution to a helper function
* Add api key requirements to new tests
2023-04-23 14:36:04 -05:00
chyezh
cac1ea27e2
Support secure and authenticated Milvus memory backends ( #2127 )
...
Co-authored-by: Reinier van der Leer (Pwuts) <github@pwuts.nl >
2023-04-23 18:11:04 +02:00
Merwane Hamadi
996a3b331a
Add CI smoke test ( #2461 )
2023-04-23 00:23:45 +02:00
Mikel Calvo
9dcdb6d6f8
Add OS Info into the initial prompt ( #2587 )
2023-04-21 21:44:02 +02:00
coditamar
6c5d21cbfc
config.py: make load_dotenv(override=True) ( #2788 )
2023-04-21 12:24:26 +02:00
Reinier van der Leer
b49ef913a8
Make load_azure_config throw if azure.yaml does not exist
2023-04-21 05:15:39 +02:00
riensen
9b78e71d16
Use allowlist and denylist naming
2023-04-20 19:01:09 +02:00
BillSchumacher
16f0e22ffa
linting
2023-04-19 18:21:03 -05:00
BillSchumacher
d7679d755f
Fix all commands and cleanup
2023-04-19 18:17:04 -05:00
BillSchumacher
23c650ca10
Merge branch 'master' of https://github.com/BillSchumacher/Auto-GPT into plugin-support
2023-04-19 17:28:17 -05:00
bszollosinagy
fa91bc154c
Fix model context overflow issue ( #2542 )
...
Co-authored-by: batyu <batyu@localhost>
2023-04-19 23:28:57 +02:00
Reinier van der Leer
e08b4d601f
Set WIPE_REDIS_ON_START default True
2023-04-19 18:37:05 +02:00
Reinier van der Leer
52233dff50
Merge branch 'master' into fix/default-config
2023-04-19 18:13:41 +02:00
Reinier van der Leer
0d7ab414d9
Merge pull request #2355 from yunzheng1112/fix-azure-config
...
* fix path of Azure config file
* default azure_api_type -> azure
2023-04-19 17:25:23 +02:00
Reinier van der Leer
7eed489ea1
Merge pull request #2351 from zvrr/zvrr-patch-1
...
fix azure_model_to_deployment_id_map type (list -> dict)
2023-04-19 17:23:40 +02:00
riensen
c5b81b5e10
Adding Allowlisted Plugins via env
2023-04-19 12:50:00 +02:00
Reinier van der Leer
8581ee2c0c
Merge branch 'master' into fix/default-config
2023-04-19 02:51:22 +02:00
BillSchumacher
aeb1178a47
linting
2023-04-18 19:26:18 -05:00
BillSchumacher
7086961e00
Merge branch 'master' of https://github.com/Significant-Gravitas/Auto-GPT into pr/1477
2023-04-18 19:20:24 -05:00
Reinier van der Leer
2db4a5da57
Merge branch 'master' into fix/default-config
2023-04-19 02:04:11 +02:00
BillSchumacher
86d3444fb8
isort, add proper skips.
2023-04-18 18:59:23 -05:00
Josh XT
9514919d37
Option to disable working directory restrictions ( #1875 )
...
Remove restriction on working directory if RESTRICT_TO_WORKSPACE != True
---------
Co-authored-by: Reinier van der Leer <github@pwuts.nl >
2023-04-19 01:54:38 +02:00
BillSchumacher
085842d43c
Merge branch 'master' of https://github.com/BillSchumacher/Auto-GPT into plugin-support
2023-04-18 18:44:40 -05:00
Tymec
5576994c2c
fix: merge conflicts
2023-04-19 01:30:28 +02:00
Reinier van der Leer
8020eaa2e9
Merge pull request #1473 from ickma/support-headless-chrome-mode
...
Add support for running Chrome in Headless mode.
2023-04-19 01:14:49 +02:00
BillSchumacher
59a9986786
Merge branch 'plugin-support' of https://github.com/BillSchumacher/Auto-GPT into pr/4
2023-04-18 18:12:35 -05:00
Reinier van der Leer
78734dade8
Consolidate default config with config.py as master
2023-04-18 23:40:43 +02:00
Evgeny Vakhteev
c62c8c6e71
merge BillSchumacher/plugin-support, conflicts
2023-04-18 13:13:38 -07:00
Richard Beales
4a07790910
Added ability to output news/announcements on startup
2023-04-18 20:09:07 +01:00
Reinier van der Leer
d6b1aa677d
consolidate browser settings
2023-04-18 16:46:58 +02:00
Reinier van der Leer
9d14b113a3
Merge remote-tracking branch 'origin/master' into support-headless-chrome-mode
2023-04-18 16:01:45 +02:00
zvrr
f7014e8773
Update config.py
...
azure_model_to_deployment_id_map default type should be a dict, not list
2023-04-18 17:06:58 +08:00
Yun Zheng
fc6070d574
Fix Azure Config file location
2023-04-18 17:03:48 +08:00
Taylor Beeston
b84de4f7f8
♻️ Use AutoGPT template package for the plugin type
2023-04-17 22:10:40 -07:00
Evgeny Vakhteev
9fd80a8660
tests, model
2023-04-17 20:51:27 -07:00
Evgeny Vakhteev
7f4e38844f
adding openai plugin loader
2023-04-17 14:57:55 -07:00
Merwane Hamadi
cf9a94a8b6
isort implemented
2023-04-17 13:42:01 -07:00
Taylor Beeston
f784049079
🏷️ Type plugins field in config
2023-04-17 12:41:34 -07:00
Richard Beales
a5506abdad
Merge pull request #2137 from suzuken/config-fix-openai-link
...
config.py: update OpenAI link to platform.openai.com
2023-04-17 17:40:48 +01:00
Evgeny Vakhteev
08ad320d19
moving load plugins into plugins from main, adding tests
2023-04-17 09:33:01 -07:00
jingxing
f2baa0872b
config.py format
2023-04-17 17:16:14 +01:00
Tom Kaitchuck
6b64158356
Unbound summary size
...
Signed-off-by: Tom Kaitchuck <Tom.Kaitchuck@gmail.com >
2023-04-17 17:08:21 +01:00
suzuken
74a8b5d832
config.py: update OpenAI link
2023-04-17 18:15:49 +09:00
BillSchumacher
8386188356
Fix early abort
2023-04-17 00:49:51 -05:00
BillSchumacher
03c137741a
Merge branch 'master' of https://github.com/BillSchumacher/Auto-GPT into plugin-support
2023-04-16 22:13:37 -05:00
BillSchumacher
c110f3489d
Finish integrating command registry
2023-04-16 21:51:36 -05:00
EH
9589334a30
Add File Downloading Capabilities ( #1680 )
...
* Added 'download_file' command
* Added util and fixed spinner
* Fixed comma and added autogpt/auto_gpt_workspace to .gitignore
* Fix linter issues
* Fix more linter issues
* Fix Lint Issues
* Added 'download_file' command
* Added util and fixed spinner
* Fixed comma and added autogpt/auto_gpt_workspace to .gitignore
* Fix linter issues
* Fix more linter issues
* Conditionally add the 'download_file' prompt
* Update args.py
* Removed Duplicate Prompt
* Switched to using path_in_workspace function
2023-04-17 03:34:02 +01:00