You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"GIPHY_API_KEY is not set, please set it in the environment variables for the application. For reference, please refer to the README.md file and .env.example file"
42
+
"GIPHY_API_KEY is not set, please set it in the environment variables for the application. "
43
+
"For reference, please refer to the README.md file and .env.example file."
Send an email to the given recipient with the specified subject and body
61
+
Send an email to the given recipient with the specified subject and body.
55
62
"""
56
63
ifnotSMTP_PASSWORD:
57
64
raiseValueError(
58
-
"SMTP_PASSWORD is not set, please set it in the environment variables for the application. For reference, please refer to the README.md file and .env.example file"
65
+
"SMTP_PASSWORD is not set, please set it in the environment variables for the application. "
66
+
"For reference, please refer to the README.md file and .env.example file."
# Check for required Azure OpenAI environment variables
94
-
required_azure_vars= [
95
-
"APP_AZURE_OPENAI_API_KEY",
96
-
"APP_AZURE_OPENAI_API_VERSION",
97
-
"APP_AZURE_OPENAI_ENDPOINT",
98
-
"APP_AZURE_OPENAI_DEPLOYMENT_NAME",
99
-
]
98
+
# Only API key is required. Base URL is optional.
99
+
ifnotos.getenv("OPENAI_API_KEY"):
100
+
raiseValueError(
101
+
"OPENAI_API_KEY is not set, please set it in the environment variables for the application."
102
+
)
100
103
101
-
forvarinrequired_azure_vars:
102
-
ifnotos.getenv(var):
103
-
raiseValueError(
104
-
f"{var} is not set, please set it in the environment variables for the application. For reference, please refer to the README.md file and .env.example file"
0 commit comments