Skip to content

linexjlin/inputGPT

Repository files navigation

InputGPT

A program let you query GPT from any input area.

What the app can do?

  • Call LLM without disconnecting from the workspace.
  • The fastest way to get answer from GPT.

Features

  • Cross-platform [win,mac]
  • Multilingual [en,zh,jp,es,az,fr]
  • Customize prompts

Usage

Quick start

  1. Open InputGPT click "Set API KEY" to provide OpenAI Key.
  2. Select the text for query, copy the text to clipboard
  3. Click HotKey shift + space to query GPT
  4. One click ESC key to stop generate
  5. Triple click ESC key to quick clear context

User define HotKey

Click "Set API KEY" InputGPT will open env.txt file

Add a new line to the file like this GPT_HOTKEYS=space+shift then save and close the file.

the keycode reference:

Import Prompt

Just Copy the json like below copy one of them:

Act as ChatGPT

{
  "name": "ChatGPT",
  "model": "gpt-3.5-turbo",
  "headMessages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    }
  ],
  "maxContext": 20
}

Translate

{
  "name": "Translate",
  "model": "gpt-3.5-turbo",
  "headMessages": [
    {
      "role": "system",
      "content": "Your are a translator, you translate any text I give you into {{.mylang}}. Just give me the result, do not explain."
    },
    {
      "role": "user",
      "content": "{{.msg}}"
    }
  ],
  "maxContext": 0
}

then click then import menu of the app.

For more templates

DEMO

ChatGPT

Work like github copilot complete the codes in the middle of code file. code cloze

Build

build_win.bat

or

build.sh

Credit

https://github.com/getlantern/systray

https://github.com/go-vgo/robotgo

https://github.com/robotn/gohook

https://github.com/hanyuancheung/gpt-go