Coder Social home page Coder Social logo

ahk_ai's Introduction

AI_AHK

The entire README is generated by GPT :) This script is designed to interact with the OpenAI API and generate various types of text based on user input. The user can highlight a section of text and then enter a command to generate different types of output.

Features

  • The script checks for the existence of an API key file (API_Key.ini) and prompts the user to enter their key if it does not exist.
  • The script allows the user to enter a command to generate different types of text output, such as fill in the blank statements, key points, terminology, summaries, and explanations.
  • The script uses the clipboard to get the text that the user has highlighted.
  • The script posts a request to the OpenAI API with the user's input and command, and returns the generated text.

How to use

  1. Press the F12 button to activate the script.
  2. Highlight the text you want to generate output for.
  3. Enter a command to specify the type of output you want. The following commands are available:
    • c or cloze: generates fill in the blank statements
    • k or key points: extracts key points in bullet format
    • kt or tk: extracts key points and defines any terminology an average reader might struggle with
    • t or terminology: defines any terminology an average reader might struggle with
    • s or summary: summarizes the text
    • t or thought: generates thought-provoking points and questions
    • x or explain: explains the text in simple terms
    • Leave the command field blank to only use the highlighted text as a prompt
  4. The script will post a request to the OpenAI API and return the generated text output.

Note

  • The script does not currently have any validations in place for the API key, so if the key needs to be changed, it must be manually edited in the API_Key.ini file.
  • The script uses the WinHttpRequest library to make the API request.
  • The script is currently set to use the "text-davinci-003" model, and has a maximum token limit of 1000.
  • The script uses the temperature parameter to control the randomness of the generated output. The current setting is 1234.

Additional Information

This script was written in AutoHotkey and is designed to be used on Windows. It is intended to be used in conjunction with the OpenAI API, which provides a machine learning platform for generating human-like text. The script is designed to make it easy for users to interact with the API and generate different types of text output.

Future Features

  • Handling of text with exponents and other special characters to prevent script breakage.
  • Exit function if the user does not have any input selected.
  • A prompt preview feature that allows the user to see a sample of the generated output before finalizing the request to the API.
  • Option to save the generated output to a file for future reference.
  • Additional language support for the script.
  • Option to choose from different models provided by OpenAI API.
  • Improved validation of API key to ensure the script can continue to run without interruption.
  • Option to adjust the temperature parameter to control the randomness of the generated output.
  • Improved error handling to provide more detailed feedback to the user in case of issues.

ahk_ai's People

Contributors

kuanchiliao1 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.