Merge branch 'Significant-Gravitas:master' into master
commit
00ba50bcb4
24
README.md
24
README.md
|
@ -67,6 +67,18 @@ Development of this free, open-source project is made possible by all the <a hre
|
|||
- [Redis](https://redis.io)
|
||||
- ElevenLabs Key (If you want the AI to speak)
|
||||
|
||||
## ⚠️ OpenAI API Keys Configuration ⚠️
|
||||
|
||||
Obtain your OpenAI API key from: https://platform.openai.com/account/api-keys.
|
||||
|
||||
To use OpenAI API key for Auto-GPT, you **NEED** to have billing set up (AKA paid account).
|
||||
|
||||
You can set up paid account at https://platform.openai.com/account/billing/overview.
|
||||
|
||||
![For OpenAI API key to work, set up paid account at OpenAI API > Billing](./docs/imgs/openai-api-key-billing-paid-account.png)
|
||||
|
||||
#### **PLEASE ENSURE YOU HAVE DONE THIS STEP BEFORE PROCEEDING, OTHERWISE NOTHING WILL WORK!**
|
||||
|
||||
## 💾 Installation
|
||||
|
||||
To install Auto-GPT, follow these steps:
|
||||
|
@ -207,18 +219,6 @@ python -m autogpt --speak
|
|||
- Adam : pNInz6obpgDQGcFmaJgB
|
||||
- Sam : yoZ06aMxZJJ28mfd3POQ
|
||||
|
||||
|
||||
## OpenAI API Keys Configuration
|
||||
|
||||
Obtain your OpenAI API key from: https://platform.openai.com/account/api-keys.
|
||||
|
||||
To use OpenAI API key for Auto-GPT, you NEED to have billing set up (AKA paid account).
|
||||
|
||||
You can set up paid account at https://platform.openai.com/account/billing/overview.
|
||||
|
||||
![For OpenAI API key to work, set up paid account at OpenAI API > Billing](./docs/imgs/openai-api-key-billing-paid-account.png)
|
||||
|
||||
|
||||
## 🔍 Google API Keys Configuration
|
||||
|
||||
This section is optional, use the official google api if you are having issues with error 429 when running a google search.
|
||||
|
|
|
@ -40,6 +40,9 @@ def execute_python_file(file: str):
|
|||
try:
|
||||
client = docker.from_env()
|
||||
|
||||
# You can replace 'python:3.8' with the desired Python image/version
|
||||
# You can find available Python images on Docker Hub:
|
||||
# https://hub.docker.com/_/python
|
||||
image_name = "python:3.10"
|
||||
try:
|
||||
client.images.get(image_name)
|
||||
|
@ -57,9 +60,6 @@ def execute_python_file(file: str):
|
|||
elif status:
|
||||
print(status)
|
||||
|
||||
# You can replace 'python:3.8' with the desired Python image/version
|
||||
# You can find available Python images on Docker Hub:
|
||||
# https://hub.docker.com/_/python
|
||||
container = client.containers.run(
|
||||
image_name,
|
||||
f"python {file}",
|
||||
|
|
|
@ -45,7 +45,7 @@ def fix_json(json_string: str, schema: str) -> str:
|
|||
try:
|
||||
json.loads(result_string) # just check the validity
|
||||
return result_string
|
||||
except json.JSONDecodeError: # noqa: E722
|
||||
except json.JSONDecodeError:
|
||||
# Get the call stack:
|
||||
# import traceback
|
||||
# call_stack = traceback.format_exc()
|
||||
|
|
|
@ -24,4 +24,5 @@ pre-commit
|
|||
black
|
||||
isort
|
||||
gitpython==3.1.31
|
||||
tweepy
|
||||
tweepy
|
||||
jsonschema
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
argument="--continuous"
|
||||
./run.sh "$argument"
|
||||
|
||||
./run.sh --continuous $@
|
||||
|
|
|
@ -26,7 +26,7 @@ try:
|
|||
|
||||
def setUp(self) -> None:
|
||||
"""Set up the test environment"""
|
||||
self.cfg = MockConfig()
|
||||
self.cfg = mock_config()
|
||||
self.memory = MilvusMemory(self.cfg)
|
||||
|
||||
def test_add(self) -> None:
|
||||
|
|
Loading…
Reference in New Issue