maazghani / pastebin-chatgpt-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pastebin Plugin

The Pastebin Plugin is a plugin for the OpenAI GPT-3 model that extracts code examples from the model's response and saves them to pastebin.com.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/pastebin-plugin.git
  2. Install the dependencies

    pip install -r requirements.txt

Usage

  1. Import the plugin in your code

    import openai_plugin

import pastebin import re

Add the plugin code here


2. Create an instance of 'PastebinPlugin' class:

    ```python
plugin = PastebinPlugin()
  1. Register the plugin:

openai_plugin.register_plugin(plugin)


4. Run the plugin locally:
    ```python
    if __name__ == "__main__":
    openai_plugin.run_local()
    ```

## Configuration
Before running the plugin, make sure to update the pastebin_dev_key variable in the submit_to_pastebin method of the PastebinPlugin class with your actual Pastebin developer key.

## License
This project is licensed under the MIT License. See the LICENSE file for details.


About

License:MIT License


Languages

Language:Python 92.1%Language:Dockerfile 7.9%