Giter Site home page Giter Site logo

publieople / chatgpt-autohotkey-utility-cn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdalanon/chatgpt-autohotkey-utility

1.0 0.0 0.0 75 KB

一个使用ChatGPT API处理文本的AutoHotkey脚本。

License: GNU General Public License v3.0

AutoHotkey 100.00%

chatgpt-autohotkey-utility-cn's Introduction

ChatGPT-AutoHotkey-Utility

⏬ 在此下载

一个使用ChatGPT API处理所选文本的AutoHotkey脚本。

image

image

如何使用

  1. 安装AutoHotkey v2。请注意,此脚本在之前的AutoHotkey版本上无法使用。
  2. 将您的OpenAI API密钥复制到此处(您可能需要创建新的密钥)。
  3. 使用您喜欢的文本编辑器打开ChatGPT AutoHotkey Utility.ahk
  4. 将您的OpenAI API密钥粘贴到API_Key变量中。

image

  1. 启动ChatGPT AutoHotkey Utility.ahk
  2. 选择您想使用ChatGPT API处理的文本并按下"反引号"键来打开菜单。

image

(图片来自 emacs.stackexchange.com)

自定义菜单、提示、API和热键

您可以通过以下方式自定义提示和菜单顺序:

菜单

菜单和ChatGPT提示词下,通过添加以下代码添加一个菜单:

MenuPopup.Add("&8 - Text_To_Appear", Function_To_Execute_When_Selected)

“和”符号(&)旁边的字符是该特定菜单的热键,按下时激活该菜单。

您也可以使用以下代码添加一条分隔线:

MenuPopup.Add()

提示词

您可以使用以下代码添加一个提示词:

Function_To_Execute_When_Selected(*) {
    ChatGPT_Prompt := "在这里输入您的提示:"
    Status_Message := "处理请求时显示的状态消息"
    API_Model := "gpt-4" ; 或 API_Model := "gpt-3.5-turbo"
    ProcessRequest(ChatGPT_Prompt, Status_Message, API_Model, Retry_Status)
}

API

您可以通过更改每个提示下的API_Model来编辑用于每个提示的API。

76IxQa4

热键

您可以在热键下更改激活热键。请参阅此处以获取可能的热键列表。

image

鸣谢

chatgpt-autohotkey-utility-cn's People

Contributors

kdalanon avatar publieople avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.