Skip to content

Commit

Permalink
Update retrieve langfuse api key through SSM
Browse files Browse the repository at this point in the history
  • Loading branch information
mdciri committed Dec 2, 2024
1 parent dcd2e00 commit 9ba8e27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/chatbot/src/modules/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from src.modules.engine import get_automerging_engine
from src.modules.handlers import EventHandler
from src.modules.presidio import PresidioPII
from src.modules.utils import get_ssm_parameter

from dotenv import load_dotenv

Expand All @@ -42,8 +43,8 @@
"Your role is to provide accurate, professional, and helpful responses to users' queries regarding "
"the PagoPA DevPortal documentation available at: https://dev.developer.pagopa.it"
)
LANGFUSE_PUBLIC_KEY = os.getenv("LANGFUSE_INIT_PROJECT_PUBLIC_KEY")
LANGFUSE_SECRET_KEY = os.getenv("LANGFUSE_INIT_PROJECT_SECRET_KEY")
LANGFUSE_PUBLIC_KEY = get_ssm_parameter(os.getenv("LANGFUSE_INIT_PROJECT_PUBLIC_KEY"), os.getenv("LANGFUSE_INIT_PROJECT_PUBLIC_KEY"))
LANGFUSE_SECRET_KEY = get_ssm_parameter(os.getenv("LANGFUSE_INIT_PROJECT_SECRET_KEY"), os.getenv("LANGFUSE_INIT_PROJECT_SECRET_KEY"))
LANGFUSE_HOST = os.getenv("CHB_LANGFUSE_HOST")
LANGFUSE_TAG = os.getenv("LANGFUSE_TAG", "development")
LANGFUSE = Langfuse(
Expand Down

0 comments on commit 9ba8e27

Please sign in to comment.