R
RunPod•2w ago
prongs

Environment Variable in Serverless

Hello, quick question, how do I pass environment variables in a request for serverless endpoint? Espcially assign them with a value dynamically while sending a request.
Solution:
Modify your handler to read the data from request payload instead of environment variables.
Jump to solution
3 Replies
digigoblin
digigoblin•2w ago
Already answered you in #🎤|general , you should post to 1 place only and not multiple places. You can't pass environment variables at request level, they are done at template level.
Solution
digigoblin
digigoblin•2w ago
Modify your handler to read the data from request payload instead of environment variables.
prongs
prongs•5d ago
Thank you, that worked