Access secrets and global constants as environment variables in a Sieve function.
os.environ
. Several public apps, like Dubbing and Text-To-Speech, use environment variables to let users supply custom API Keys for external services like OpenAI and ElevenLabs.
If users set secrets, they will be mapped automatically to any environment variable with a matching name. For more information on secrets, click here.
environment_variables
.
Each environment variable you would supply is packaged as a sieve.Env
object, which is structured as follows:
list
of sieve.Env
objects to the environment_variables
parameter of the header. An example function is pasted below.