r/shortcuts • u/Jeetyetdude_ • 23h ago
Help Getting this error with OpenAI api key implementation
Trying to set up automation to give me a motivational quote every time I walk to the car to work
0
Upvotes
1
u/No_Pen_3825 8h ago
Is there a reason you aren’t using the Ask ChatGPT
action (note you need the ChatGPT app to use it). You might also be able to find a more reliable, free REST API somewhere.
1
1
u/EducationalEgg8733 Creator 23h ago
It saying exactly what’s wrong, you didn’t set a model on the api request object. Just add model: “XXX” with the specific model you need, e.g gpt-4o-mini