AI Request Chooser Utility (Based on Stephen's Shortcut)
(Screenshots of the steps of all four shortcuts are at the bottom of this post.)
I took Stephen's excellent AI Request Chooser shortcut (https://www.icloud.com/shortcuts/ec48578de2484b8196c1043b33beda89) and modified it in these ways:
It's now callable from other shortcuts. So to use it, you MUST call it from another shortcut and pass the model and prompt in a dictionary. (Examples provided below.) So it's kind of a utility shortcut.
It has some error checking, in case one of the models barfs. (If you want to check it out, just add something like X to end of your API key, and watch the model throw an error!)
Like Stephen's shortcut, you have to supply your three API keys (ChatGPT, Gemini, Perplexity) in the AI Request Chooser shortcut for any of this to work.
Here's the modified AI Request Chooser shortcut:
https://www.icloud.com/shortcuts/1e9e7ba8bc8a415cb24ea4e138239bf0
Once you have the AI Request Chooser set up with your API keys, here are three sample shortcuts that call it:
Call AI Request Chooser and Create Apple Note with Result:
This will prompt you for the model you want to use, have you input your prompt, then call AI Request Chooser. The results will be put in an Apple Note with the hashtag AIResult.
The shortcut: https://www.icloud.com/shortcuts/288c610b387748ff8f975fec10f33402
Call AI Request Chooser and Create HTML File with Result:
Just like the shortcut above, except the results are saved as an HMTL file in your iCloud Drive\Shortcuts folder.
The shortcut: https://www.icloud.com/shortcuts/f83cb12881cf482c90934b7cc4de4d7f
Call AI Request Chooser, Use ChatGPT, and Get Prompt from Clipboard and Create Apple Note with Result:
As the title says, it calls AI Request Chooser, but has ChatGPT hard-coded as the model, and pulls the prompt from whatever is on your clipboard. The results will be put in an Apple Note with the hashtag AIResult.
The shortcut: https://www.icloud.com/shortcuts/5f3c832620b14d1eb18c5c2a55f638e3
For all of the three shortcuts above, the title of the file and Apple Note are determined by local Cloud Compute Model (Apple Intelligence), so the shortcut will likely not work properly if you don't have Apple Intelligence.
All shortcuts work on my macOS, iOS, and ipadOS devices.