Login About Gallery
GPT-4 Chat
COMMENT
Version 2.92, 4/13/24 Model Selection, drag selected model to top. gpt-4-turbo is the latest version, and the only one that supports image upload. As of 4/13/24 gpt-4 is available after purchasing at least $5 in credits with OpenAI
LIST
gpt-4-turbo
gpt-4
gpt-3.5-turbo
SCRIPTING
Get
Item At Index
1
from
Models
COMMENT
Folder to store API key and chat logs. A subfolder called GPT will be created in this folder.
file Under Construction
COMMENT
Default System Message
TEXT
You are GPT, a large language model trained by OpenAI. Answer as concisely as possible. Knowledge cutoff: September 2021. Current date:
Current Date
COMMENT
Frequency Penalty
NUMBER
0.8
COMMENT
Temperature
NUMBER
0.9
TEXT
Message? Add @image in your message to upload an image, or leave blank to return to menu
TEXT
Speak your message
TEXT
false
TEXT
New
VARIABLES
Set variable
Mode
to
Shortcut Input
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
If
API Key
does not have any value
SCRIPTING
Choose from Menu
Yes
SCRIPTING
Ask
Paste in your API key
Input Type
Text
Default Answer
Text
TEXT
Match
sk-[\w]{32,}
in
Provided Input
Case Sensitive
SCRIPTING
If
Key
does not have any value
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
Otherwise
DOCUMENTS
Save
Key
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/GPT/openAI.txt
Overwrite If File Exists
SHORTCUTS
Run
GPT-4 Request
Input
Choose Variable
Show While Running
SCRIPTING
Exit shortcut with
Result
End If
Get one from OpenAI
SAFARI
Open
https://platform.openai.com
End Menu
SCRIPTING
Exit shortcut with
Result
End If
SCRIPTING
Repeat
1000 times
VARIABLES
Set variable
New Message
to
New
SCRIPTING
If
Mode
begins with
NewSiri
VARIABLES
Set variable
System Prompt
to
Default System Message
VARIABLES
Set variable
Message Prompt
to
Siri Prompt
VARIABLES
Set variable
New?
to
New
DOCUMENTS
Replace
New
with
World
in
Mode
Case Sensitive
Regular Expression
VARIABLES
Set variable
Mode
to
Siri
Otherwise
DOCUMENTS
Get File
Service
iCloud Drive
Show Document Picker
Select Multiple
TEXT
Match
=-=-=-=-=-=-=-=
in
Log File
Case Sensitive
SCRIPTING
If
Matches
has any value
TEXT
Split
Log File
by
Custom
=-=-=-=-=-=-=-=
SCRIPTING
Get
Last Item
from
Current Conversation
VARIABLES
Set variable
Preceding Messages
to
Old Messages
TEXT
Split
Old Messages
by
Custom
},
SCRIPTING
Get
Last Item
from
Split Old Messages
SCRIPTING
Get
Value
for
content
in
Last Message
SCRIPTING
If
Mode
begins with
Siri
VARIABLES
Set variable
Message Prompt
to
Siri Prompt
VARIABLES
Set variable
New?
to
False
Otherwise
SCRIPTING
Count
Characters
in
Last Message Content
SCRIPTING
If
Count
is greater than
200
TEXT
Match
^(.{1,200})
in
Last Message Content
Case Sensitive
TEXT
Get
Group At Index
1
in
Matches
VARIABLES
Set variable
Message Prompt
to
Text
Otherwise
VARIABLES
Set variable
Message Prompt
to
Last Message Content
End If
SCRIPTING
If
Continue
is not
Continue
SCRIPTING
Choose from Menu
Continue Conversation
VARIABLES
Set variable
New?
to
False
New Conversation
VARIABLES
Set variable
Message Prompt
to
Default Message Prompt
VARIABLES
Set variable
System Prompt
to
Default System Message
VARIABLES
Set variable
New?
to
New
New Conversation (Custom)
VARIABLES
Set variable
Message Prompt
to
Default Message Prompt
SCRIPTING
Ask
System Message? This defines the behavior of the AI.
Input Type
Text
VARIABLES
Set variable
System Prompt
to
Custom System Message
VARIABLES
Set variable
New?
to
New
View/Manage Conversations
TEXT
Split
Log File
by
Custom
-=-=-=-=-=-=-=-
SCRIPTING
Count
Items
in
Split Text
MATHS
N
-
1
Options Under Construction
SCRIPTING
Repeat
N-1
calculateexpression Under Construction
SCRIPTING
Get
Item At Index
Calculation Result
from
Split Text
End Repeat
SCRIPTING
Prompt
optional
Select Multiple
SCRIPTING
If
Selected Log Entry
has any value
TEXT
Split
Selected Log Entry
by
Custom
=-=-=-=-=-=-=-=
SCRIPTING
Get
Last Item
from
Split Text
TEXT
{"messages":[
Item from List
]}
SCRIPTING
Get dictionary from
Text
TEXT
Text
VARIABLES
Set variable
Print
to
Blank Text
SCRIPTING
Repeat with each item in
messages
SCRIPTING
Get dictionary from
Repeat Item 2
VARIABLES
Add
Text
to
Print
End Repeat
SCRIPTING
Show
Print

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

102 more actions