UPDATE 11/25/2024
Prompt template is customizable!
To use custom prompt template export it to the NO_MORE_TYPO_PROMPT_TEMPLATE environment variable
Example:
export NO_MORE_TYPO_PROMPT_TEMPLATE="Translate this to hungarian::\n\n{text}\n\nThe answer is:"
The default value is: “Fix the syntax and typos text:\n{text}\nThe correct string is:”
UPDATE
One file executable is available now.
- Make sure the api key for the LLM of your choice is stored in the
OPENAI_API_KEY
environment variable. Also update theOPENAI_API_BASE
is needed. - The app requires grant to monitor input to capture the HotKey
[ctrl]+[shift]+[z]
Executable: https://github.com/csabakecskemeti/no_more_typo/blob/main/dist/no_more_typo
Small utility that uses LLM to fix typos and syntax on the text stored in the clipboard.