Skip to content

Commit

Permalink
config test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommylees112 committed Sep 13, 2024
1 parent 84287d8 commit 2964dc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim@sha256:980b778550c0d938574f1b556362b27601ea5c620130a572feb63ac1df03eda5
FROM python:3.11

ENV PYTHONUNBUFFERED True

Expand Down
11 changes: 7 additions & 4 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

import os
from typing import Optional

from dotenv import load_dotenv

Expand All @@ -30,11 +31,13 @@
# env_file = ".env"
# case_sensitive = True
# extra = "ignore"


class Settings:
TWILIO_ACCOUNT_SID: str | None = os.environ.get("TWILIO_ACCOUNT_SID")
TWILIO_AUTH_TOKEN: str | None = os.environ.get("TWILIO_AUTH_TOKEN")
TWILIO_PHONE_NUMBER: str | None = os.environ.get("TWILIO_PHONE_NUMBER")
COHERE_API_KEY: str | None = os.environ.get("COHERE_API_KEY")
TWILIO_ACCOUNT_SID: Optional[str] = os.environ.get("TWILIO_ACCOUNT_SID")
TWILIO_AUTH_TOKEN: Optional[str] = os.environ.get("TWILIO_AUTH_TOKEN")
TWILIO_PHONE_NUMBER: Optional[str] = os.environ.get("TWILIO_PHONE_NUMBER")
COHERE_API_KEY: Optional[str] = os.environ.get("COHERE_API_KEY")

def model_dump(self):
return {
Expand Down

0 comments on commit 2964dc9

Please sign in to comment.