ShareShortcuts

TextGPT

Interact with ChatGPT using your keyboard

blackhatteam
Создать форк «TextGPT»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы blackhatteam получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
35K
Сохранено
5
Действия
26
Категория
Productivity
Версия
1.1
Язык
EN

Interact with ChatGPT using your keyboard.

Are you looking for a way to utilize ChatGPT, but don't like speaking to Siri?

TextGPT may be the shortcut you have been looking for.

Simply type your question in the prompt and Siri will speak the answer. You will also have the option to save the result and view it on your screen.

You can now access the shortcut from the Share menu.

*Results are saved by date to ICloud Drive - Shortcuts - TextGPT.

Что нового

Версия 1.1

- Added shortcut to the Share menu.

История версий
1.1 13 апр 2023 г.

- Added shortcut to the Share menu.

1.0 22 мар 2023 г.

First release

Что делает

Действий: 26
  1. Text
  2. Get File
  3. Create Folder
  4. If
  5. Show Alert
  6. Open URLs
  7. Wait
  8. Text
  9. Close Tab
    com.apple.mobilesafari
  10. Show Alert
  11. Wait
  12. Set Variable
    List
  13. Repeat
  14. Ask for Input
    What do you want to know?
  15. Text
  16. Add to Variable
  17. Show Notification
    I'm working on it. Please wait...
  18. Get Contents of URL
    https://api.openai.com/v1/completions
  19. Get Dictionary from Input
  20. Get Dictionary Value
  21. Wait
  22. Speak Text
  23. Show Alert
  24. Append to Text File
  25. Wait
  26. Show Result

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#include 'actions/documents'
#define color darkblue
#define glyph waveform

const File = getFileFromFolder(, "TextGPT", false)
createFolder("TextGPT")

if !File {
	confirm("Run Initial Setup? ")
	openURL("http://www.blackhatteams.com/p/textgpt.html")
	wait(6)
	const Text = "TextGPT"
	rawAction("com.apple.mobilesafari.CloseTab", {
		"AppIntentDescriptor": "",
		"target": "Text"
	})
	confirm("Setup Complete! ")
}
wait(2)
@List = nil

repeat _ for 100 {
	prompt("What do you want to know? ")
	@List += "{}\n"
	showNotification("I'm working on it. Please wait...", false)
	const ContentsOfURL = jsonRequest("https://api.openai.com/v1/completions", "POST", {
		"max_tokens": 500,
		"model": "text-davinci-003",
		"prompt": "{@List}",
		"stop": "\\\\n",
		"temperature": "0.5"
	}, {
		"Authorization": "Bearer {}",
		"Content-Type": "application/json"
	})
	const Dictionary = getDictionary(ContentsOfURL)
	wait(0)
	speak()
	confirm("Do you want to save the text? ")
	appendToFile("{CurrentDate}.txt", "{}{}")
	wait(2)
	show()
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от blackhatteam

См. все

Вам также может понравиться

См. все
Реклама