Gptkeyboard
OpenAI Chat Completion right in your keyboard on iOS
Install / Use
/learn @GalvinGao/GptkeyboardREADME
OpenAI Chat Completion in Keyboard using Pythonista
https://user-images.githubusercontent.com/12567059/223289833-7b7cb51e-2da0-46e3-8d5d-56cf668f262d.MP4
Prerequisites
-
Get Pythonista on your iOS device
Pythonista is a complete scripting environment for Python, running directly on your iPad or iPhone. It includes support for both Python 3.6 and 2.7, so you can use all the language improvements in Python 3, while still having 2.7 available for backwards compatibility.
In true Python fashion, batteries are included – from popular third-party modules like requests, numpy, matplotlib, and many more, to modules that are tailor-made for iOS. You can write scripts that access sensor and location data, your photo library, contacts, reminders, the clipboard, and much more.
You can also use Pythonista to build interactive multi-touch experiences, custom user interfaces, animations, and 2D games.
Apart from learning and practicing Python, you can also use Pythonista to automate parts of iOS with app extensions, e.g. to invoke scripts directly from the standard share sheet in almost any app.
-
Install StaSh
-
Install
sseclient-pyby launching StaSh shell usinglaunch_stash.pyand then executepip install sseclient-py -
Put the corresponding files into Pythonista documents
-
Replace
OPENAI_TOKENinchat_cmpl.pywith your OpenAI token -
Add
chat_cmpl.pyto your Keyboards in Pythonista by going toSettings->Pythonista Keyboard->Add-> Choosechat_cmpl.pyas the script -
Go to iOS Settings -> General -> Keyboard -> Keyboards -> Add New Keyboard -> Pythonista Keyboard and enable Full Access
-
Now you can use the keyboard to chat with OpenAI anywhere in iOS!
