test / util /access_token.py
wendellast's picture
test prompt
c7ca763
raw
history blame contribute delete
235 Bytes
import os
from dotenv import load_dotenv
def load_token(token_env):
load_dotenv()
token = os.getenv(token_env)
if token is None:
raise ValueError("Token não encontrado no arquivo .env")
return str(token)