GithubHelp home page GithubHelp logo

ykankaya / auto-gpt-powershell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thecompace/auto-gpt-powershell

0.0 1.0 0.0 126 KB

AutoGPT is a compact, modular, and user-friendly PowerShell interface for text generation with GPT-4 language models or OpenAI's API. It supports offline usage with GPT4All and offers customizable plugins for input, output, and startup configurations. Users can seamlessly switch between local GPT-4 models and OpenAI API.

License: MIT License

PowerShell 100.00%

auto-gpt-powershell's Introduction

AutoGPT_PS ๐Ÿ˜„

AutoGPT_PS is a PowerShell script that runs GPT-4, processes user input, and returns generated responses. The script includes a plugin system that allows for easy customization of input processing, output formatting, and more.

Usage ๐Ÿš€

  1. Download the AutoGPT_PS repository.
  2. Place the GPT-4 model file in the same directory as the AutoGPT.ps1 script.
  3. Run the AutoGPT.ps1 script.
  4. Select y to go to the Options.
  5. Enter the Starting Prompt (If using OpenAI GPT 3.5 or higher, then you will also be asked for a System Prompt.)
  6. The Main Loop will run; if you have set the Loop Count to Infinite, press Ctrl-C to cancel.
  7. Once completed, there will be a time-stamped "session_[time].txt" file in the "sessions" folder, containing the prompts and responses passed back and forth.

How to get the GPT4ALL model! ๐Ÿ’พ

Download the gpt4all-lora-quantized.bin file from Direct Link or [Torrent-Magnet].

Options โš™๏ธ

  1. Change Model: Allows selection of a .bin file to use for GPT4All. Example: gpt4all-lora-quantized.bin.
  2. Toggle Pause: Enables or disables pausing after every iteration of the main loop. Default value: y (pause).
  3. Change Seed: Sets the seed value for GPT4All. Default value: `` (use the first generated seed) ('0' will use a random seed every time).
  4. Change Loop Count: Sets the number of loops for the main loop. Default value: 10 (ten loops).
  5. Toggle Use ChatGPT: Enables or disables the use of the OpenAI Chat API. Default value: False (disabled).
  6. Set OpenAI Key: Sets the OpenAI API key.
  7. OpenAI Models: Allows selection of an OpenAI model from the available options: text-davinci-003, gpt-3.5-turbo, and gpt-4. Default value: text-davinci-003.
  8. Allow GPT in plugins: Allows plugins to use the settings for OpenAI. Default value: False
  9. Turn On Debug: Enables or disables debug messages at most steps of the scripts. Default value: False (disabled).
  10. Plugin Settings: Allows you to Enable and change settings of Plugins.

To update these options, select "y" when it prompts "Do you want to check options? (y)es/(n)o:" at the start.

Default Plugins ๐Ÿ”Œ

The plugin system is based on separate modules for different types of plugins:

  1. RunStartPlugins.ps1: Searches for and runs start plugins in the "plugins" folder. Example:

    • plugins/Start_Sample.ps1: A sample start plugin that leaves the start message unchanged
  2. RunInputPlugins.ps1: Searches for and runs input plugins in the "plugins" folder. Example:

    • plugins/Input_Sample.ps1: A sample input plugin that leaves the prompt unchanged
  3. RunSystemPlugins.ps1: Searches for and runs system plugins in the "plugins" folder. Example:

    • plugins/System_Sample.ps1: A sample system plugin that leaves the system message unchanged
  4. RunOutputPlugins.ps1: Searches for and runs output plugins in the "plugins" folder. Example:

    • plugins/Output_CodeSaver.ps16: Strips code out into "source_[time].txt" unless "Allow GPT in plugins" is enabled, then it will try to use ChatGPT to get the filename. (This will save multiple files, as some seem to get overy written with bad data.)
    • plugins/Output_SessionLog.ps1: A sample output plugin that logs the output to a session file

Creating Plugins ๐Ÿ› ๏ธ

AutoGPT_PS includes a plugin system that allows for easy customization of input processing, output formatting, and more. There are four types of plugins:

  1. Start plugins
  2. Input plugins
  3. Output plugins
  4. System plugins

For the base setup of each plugin type, see the scripts provided in the "plugins" folder.

To Do ๐Ÿ“

  • Improve error handling and user feedback.
  • Add more plugin examples to showcase the versatility of the plugin system.
  • Enhance the plugin system by allowing for more customization options.
  • Create a user-friendly interface for managing plugin configuration.
  • Streamline the process of adding new plugins and managing existing ones.
  • Keep the project up-to-date with the latest GPT-4 model improvements and enhancements.

auto-gpt-powershell's People

Contributors

thecompace avatar

Watchers

 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.