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)
|
- [Redis](https://redis.io)
|
||||||
- ElevenLabs Key (If you want the AI to speak)
|
- 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
|
## 💾 Installation
|
||||||
|
|
||||||
To install Auto-GPT, follow these steps:
|
To install Auto-GPT, follow these steps:
|
||||||
|
@ -207,18 +219,6 @@ python -m autogpt --speak
|
||||||
- Adam : pNInz6obpgDQGcFmaJgB
|
- Adam : pNInz6obpgDQGcFmaJgB
|
||||||
- Sam : yoZ06aMxZJJ28mfd3POQ
|
- 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
|
## 🔍 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.
|
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:
|
try:
|
||||||
client = docker.from_env()
|
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"
|
image_name = "python:3.10"
|
||||||
try:
|
try:
|
||||||
client.images.get(image_name)
|
client.images.get(image_name)
|
||||||
|
@ -57,9 +60,6 @@ def execute_python_file(file: str):
|
||||||
elif status:
|
elif status:
|
||||||
print(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(
|
container = client.containers.run(
|
||||||
image_name,
|
image_name,
|
||||||
f"python {file}",
|
f"python {file}",
|
||||||
|
|
|
@ -45,7 +45,7 @@ def fix_json(json_string: str, schema: str) -> str:
|
||||||
try:
|
try:
|
||||||
json.loads(result_string) # just check the validity
|
json.loads(result_string) # just check the validity
|
||||||
return result_string
|
return result_string
|
||||||
except json.JSONDecodeError: # noqa: E722
|
except json.JSONDecodeError:
|
||||||
# Get the call stack:
|
# Get the call stack:
|
||||||
# import traceback
|
# import traceback
|
||||||
# call_stack = traceback.format_exc()
|
# call_stack = traceback.format_exc()
|
||||||
|
|
|
@ -24,4 +24,5 @@ pre-commit
|
||||||
black
|
black
|
||||||
isort
|
isort
|
||||||
gitpython==3.1.31
|
gitpython==3.1.31
|
||||||
tweepy
|
tweepy
|
||||||
|
jsonschema
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
argument="--continuous"
|
|
||||||
./run.sh "$argument"
|
./run.sh --continuous $@
|
||||||
|
|
|
@ -26,7 +26,7 @@ try:
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
"""Set up the test environment"""
|
"""Set up the test environment"""
|
||||||
self.cfg = MockConfig()
|
self.cfg = mock_config()
|
||||||
self.memory = MilvusMemory(self.cfg)
|
self.memory = MilvusMemory(self.cfg)
|
||||||
|
|
||||||
def test_add(self) -> None:
|
def test_add(self) -> None:
|
||||||
|
|
Loading…
Reference in New Issue