R
Runpod•2mo ago
R1ckyH

runpod python api create_pod params

since the runpod have a place of template, which include image_name, should the image name be a must if want to create a pod when we having template?
No description
11 Replies
Dj
Dj•2mo ago
I would try using a blank string and just providing the template id. If that works let me know and I can make image_name optional
R1ckyH
R1ckyHOP•2mo ago
blank string will work? 🥴
Dj
Dj•2mo ago
Maybe! I'll test it for you.
R1ckyH
R1ckyHOP•2mo ago
i tried, seems work
R1ckyH
R1ckyHOP•2mo ago
No description
R1ckyH
R1ckyHOP•2mo ago
No description
Dj
Dj•2mo ago
Cool, I'll make the image_name field optional for you :ablobnod:
R1ckyH
R1ckyHOP•2mo ago
No description
R1ckyH
R1ckyHOP•2mo ago
i think u need also add a check if neither have image name nor template_id, then throw exception if no check i think maybe will make some trouble XD
R1ckyH
R1ckyHOP•2mo ago
:runpodheart:

Did you find this page helpful?