Chat Key Save

Supercharge your productivity with ChatGPT and AutoHotkey 🚀

Project README

ChatKey Logo

License: MIT Latest Release Total Downloads Powered By: AutoHokey

About

ChatKey is small tool that enables you to use your own ChatGPT/GPT-4 prompts in any application that supports text input.

Screenshot

Usage

  1. Please ensure that you have configured the OPENAI_TOKEN environment variable with your API key
  2. Download the latest release
  3. Extract all files from the zip
  4. Run ChatKey.exe
  5. Start typing in any application that supports text input
  6. Select the text to use as input for the prompt
  7. Press the hotkey to show the popup menu (default: Alt + .).
  8. Select the prompt from the popup menu
  9. Wait for the response to be generated
  10. Review the generated response and press Enter

I versus AI has done an incredible video covering most topics:

ChatGPT & Zapier: The Future of AI Automation, Maybe

Configuration

To configure ChatKey, you can edit the config.ini file provided.

General settings

Key Description Default
popup_menu_hotkey The hotkey to show the popup menu Alt + .
replace_text Whether to replace the selected text with the response 0
show_notification Whether to show a notification when generating a response 1
max_input_length The maximum length of input text (0 = unlimited) 0

Adding prompts

To add new prompts, you must include a new section in the config.ini file. For instance, if you wish to include a prompt for translating text to French, you can achieve this by appending the following section to the configuration file:

[prompt_translate_to_french]
name = Translate to French
shortcut = t
system_prompt = "I want you to act as a French translator. I will say something in any language and you will translate it to French. The first thing I want you to translate is:"
temperature = 0.2
model = gpt-3.5-turbo

To ensure that the newly added prompt is available in the popup menu, it must be included in the [popup_menu] section. Additionally, if you have already configured multiple prompts, you can tidy up the popup menu by utilizing --- as a separator.

[popup_menu]
---
prompt_translate_to_french

The changes will be applied automatically, there's no need to restart ChatKey (the only exception to this rule is the global popup_menu_hotkey).

Prompt settings

You can individually configure the parameters of each prompt. If keys with default values are omitted, the default values will be used instead.

Key Description Default
name The name of the prompt that will be displayed in the popup menu
shortcut The shortcut key to select the prompt from the popup menu
system_content The prompt that will be used to generate the response (required)
model The model to use when generating the response, more info here gpt-3.5
temperature The temperature to use when generating the response (0.0 - 2.0) 0.7
top_p The top_p to use when generating the response (0.0 - 1.0)
presence_penalty Increase the model's likelihood to talk about new topics (-2.0 - 2.0)
frequency_penalty Decrease the model's likelihood to repeat the same line verbatim (-2.0 - 2.0)

Acknowledgements

License

The code in this repository is licensed under the MIT License. See LICENSE for more information.

Open Source Agenda is not affiliated with "Chat Key" Project. README Source: overflowy/chat-key
Stars
87
Open Issues
0
Last Commit
9 months ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating