Aperçu
This is the simplest and only working version of the Natural ChatGPT shortcut that I have found on the web, created by me. The free version, V3, is now available.
We have updated the shortcut based on user feedback to include the use of GPT 3.5 Turbo for faster and better responses, support for the action button on new iPhones, and the ability to save into notes. The volume has also been lowered to 50%, and questions and responses are provided in text form.
To use the shortcut, you will need an OpenAI account with the token and an iPhone with the Shortcuts app installed. Download and add the shortcut, then paste your OpenAI token where it says "TextPaste" (starting with SK and a long number) and delete the premade message. Run the shortcut and press "Always Allow" whenever it asks.
For easy access, you can go to all the shortcuts, press and hold the Natural ChatGPT shortcut, click "Share," and then click "Add to Home Screen."
Please note that updated versions will be available for supporters in the future. You can get your OpenAI token here: https://beta.openai.com/account/api-keys
Nouveautés
GPT 3.5 Turbo, Action Button Support, even faster and quiet.
Ce qu’il fait
15 actions-
Text
-
Set VariableAPIKEY
-
Dictate Text
-
If
-
Set Variablemessage_sent
-
Text
-
Add to Variable
-
URLhttps://api.openai.com/v1/completions
-
Get Contents of URL…
-
Get Dictionary from Input
-
Get Dictionary Value
-
Get Dictionary Value
-
Set Variablereponse_naturalGPT
-
Show Result
-
Show AlertSave result to notes?
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#include 'actions/text'
#define color darkblue
#define glyph lightningBolt
@APIKEY = "delete all this text and put OpenAI key here, starts with sk"
const DictatedText = listen("On Tap", "en-US")
if DictatedText {
@message_sent = DictatedText
}
@Question += "Question : {@message_sent}.\n\nNatural GPT :"
url("https://api.openai.com/v1/completions")
const ContentsOfURL = jsonRequest(, "POST", {
"frequency_penalty": "1.23",
"max_tokens": 456,
"model": "gpt-3.5-turbo-instruct",
"presence_penalty": 0,
"prompt": "{@Question}",
"temperature": 1,
"top_p": "0.3"
}, {
"Authorization": "Bearer {@APIKEY}",
"Content-Type": "application/json"
})
const Dictionary = getDictionary(ContentsOfURL)
const ValeurDuDictionnaire = getValue(Dictionary, "choices")
@reponse_naturalGPT = ValeurDuDictionnaire['text']
show("{@Question}{@reponse_naturalGPT}")
alert("Save result to notes?", "Save result to notes?")
Notes et avis
Écrire un avisAucun avis pour le moment. Sois le premier à partager ton avis !