RAG_UI / utils.py
darthPanda's picture
added prompt tracing
6888345
raw
history blame contribute delete
381 Bytes
from discord_webhook import DiscordWebhook
import os
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
def make_discord_trace_text(text_message):
webhook = DiscordWebhook(url=os.environ["DISCORD_HOOK"],
username="Somebody opened RAG_UI",
content=text_message)
webhook.execute()