We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bb6ef5 + 45cf135 commit 408bdf6Copy full SHA for 408bdf6
hivemind_etl/storage/s3_client.py
@@ -8,10 +8,15 @@
8
from botocore.config import Config
9
from botocore.exceptions import ClientError
10
from llama_index.core import Document
11
+from dotenv import load_dotenv
12
13
14
class S3Client:
15
def __init__(self):
16
+ loaded = load_dotenv()
17
+ if not loaded:
18
+ raise ValueError("Failed to load environment variables")
19
+
20
# Get AWS S3 environment variables
21
self.endpoint_url = os.getenv("AWS_ENDPOINT_URL")
22
self.access_key = os.getenv("AWS_ACCESS_KEY_ID")
0 commit comments