SuperAPI AI Directory

chatgpt-wrapper

ChatGPT Wrapper is an open-source unofficial Python API and CLI that lets you interact with ChatGPT.

Open website

About this tool

Project Background

ChatGPT Wrapper is an open-source unofficial Python API and command-line tool (CLI) for interacting with ChatGPT. The project was created by mmabrouk and is now discontinued; its functionality evolved into the LLM Workflow Engine (LWE). LWE is a powerful CLI and workflow manager that continues the design philosophy of ChatGPT Wrapper.

Main Capabilities

LWE provides the following core features:

  • Command-line interaction: Can call and interact with ChatGPT/GPT4 in the terminal.
  • Official API support: Directly calls the OpenAI ChatGPT endpoint (all models supported by the account can be used).
  • Plugin architecture: LWE functionality can be extended through custom plugins.
  • Multi-LLM provider support: Can interact with other LLMs through provider plugins (such as GPT-3, Cohere, Huggingface, etc.).
  • Workflow building: LLM calls can be integrated into larger workflows through Ansible Playbooks.
  • Tool use: Supported providers can use tool calling functionality.
  • Docker image: LWE is provided as a Docker image (experimental).
  • Python API: Provides a Python library that can be used to use ChatGPT/GPT4 in Python scripts.

Usage

The official materials provide the following guidance links:

  • Learn about the project
  • Learn how to use it
  • Read the documentation
  • Learn about configuration/features
  • Resolve common issues

Specific installation commands and code examples are not provided in the supplied materials for now; refer to the project documentation for detailed steps.

Applicable Scenarios

LWE is suitable for developers who need to interact with LLMs in the command line, build automated workflows that include LLM calls, or integrate ChatGPT/GPT4 into Python scripts.

Projects Built on the Original ChatGPT Wrapper

  • bookast: ChatGPT Podcast Generator For Books
  • ChatGPT.el: ChatGPT in Emacs
  • ChatGPT Reddit Bot
  • selection-to-chatgpt

License and Contributions

This project uses the MIT license. Contributions are welcome; if you have ideas for new features or find bugs, you can submit an issue in the GitHub repository.

Acknowledgments

The original ChatGPT Wrapper project was created and maintained by mmabrouk; that project was based on a modification of Taranjeet's code, and Taranjeet's code was based on a modification of Daniel Gross's code.