Keyboard GPT

An LSPosed Module that lets you integrate Generative AI like ChatGPT in keyboard. Works in All Apps

Demo Video

https://github.com/user-attachments/assets/d00d362d-078f-4d8f-8b17-1544fb62cb37

Demo Video: Custom Prompts

https://github.com/user-attachments/assets/6143837f-9896-4f60-b97a-730fd2aa0fde

Demo Video: Web Search

https://github.com/user-attachments/assets/0ee8e75c-753a-448a-bd8a-a0afe2e0ca12

Icon

Tested Keyboards

Features

  • Realtime AI response (supports normal and custom prompts)

  • Web Search

Install Guide

Root

  1. Install module apk from releases

  2. Enable module in LSPosed and select your favorite keyboard

  3. Force close the keyboard from settings, or if you don't know how, restart you phone

No Root

  1. Install module apk from releases

  2. Patch your favorite keyboard apk in LSPatch Manager and follow the instructions

Usage Guide

Open any editable text (like translate, search gif, etc) in your keyboard, and type your preferred instruction before pressing Enter

  • ?? to configure your API provider (api key, language model...)

  • ? your prompt to submit a normal prompt

  • !! to configure custom AI prompts

  • !{p} your prompt to submit a custom prompt where {p} is the prefix you chose

  • !s anything to do a web search

See "Demo Video" above

Bonus Tip: Google offers Gemini API for free. Grab a key in google aistudio

Supported Generative AI APIs

  • ChatGPT

  • Gemini

  • Groq

More suggestions are welcome !

Links

XDA Link

Telegram Discussion

Package

tn.amin.keyboard_gpt

Authors

Mino

Releases

1.1.1

Release type: Stable

7/29/2024, 2:13:12 PM

  • Fixed a bug that would prevent launching "Chose Model Dialog" since version 1.1 for new users
  • Added support for samsung keyboard

1.1

Release type: Stable

7/29/2024, 10:26:19 AM

New features and many bug fixes !

  • Added Custom Prompts feature
  • Added WebSearch feature
  • Improved ChatGPT API handling
  • Minor bug fixes

Please read the updated Usage Guide

Demo Videos

Demo Video: Custom Prompts
demo_custom_command.mp4
Demo Video: Web Search
demo_websearch_opt.mp4

1.0.7

Release type: Stable

7/27/2024, 1:21:42 PM

  • Fixed module not responding with anything when ChatGPT key is invalid

1.0.6

Release type: Stable

7/27/2024, 11:08:43 AM

  • Fix getting stuck in "Generating Response..." when error occurs

1.0.5

Release type: Stable

7/27/2024, 10:56:39 AM

  • Fixed major bug where prompt gets cleared without any response
  • Fixed bug where module stops working after some time
  • User is now notified through a toast when an exception occurs

1.0.4

Release type: Stable

7/26/2024, 7:31:50 PM

  • Disable Gemini safety settings

1.0.3

Release type: Stable

7/26/2024, 6:43:09 PM

  • Fix streamed text inserted at beginning

1.0.2

Release type: Stable

7/26/2024, 6:07:55 PM

  • Fix Android 13 bug when launching dialog

1.0.1

Release type: Stable

7/26/2024, 4:52:58 PM

Fix ChatGPT API bug
Add support for custom base url

1.0

Release type: Stable

7/26/2024, 3:54:01 PM

First KeyboardGPT version. Enjoy!

1.0.8

Release type: Stable

7/27/2024, 8:46:01 PM

  • Major bug with ChatGPT API fixed
  • Added support for Groq API provider