Skip to main content

A module for using the ChatGPT Free (Needs Chrome or Chromium browser)

Project description

libgpt

libgpt is a free, tokenless ChatGPT for Python that uses Chrome (or Chromium) to generate responses based on the input message. Installation

You can install libgpt with pip by running the following command:

pip install libgpt

You also need to have Chrome or Chromium installed on your system for this library to work properly. Usage

After installation, you can import the libgpt class and create a new instance:

from libgpt import *
# dont use any parameters
gpt = libgpt()

# set chromedriver
gpt = libgpt(chromedriver='/path/to/chromedriver')

# set chromepath
gpt = libgpt(chromepath="/path/to/chrome")

# set chromepath and chromedriver

gpt = libgpt(chromepath="/path/to/chrome", chromedriver='/path/to/chromedriver')

response = gpt.chat("Who are you?")
print(responce)

This will prompt the user to input a message, which will be used as input to the GPT model. The libgpt() function will then return a generated response based on this message.

libgpt is released under the MIT license. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libgpt-1.0.0a3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file libgpt-1.0.0a3.tar.gz.

File metadata

  • Download URL: libgpt-1.0.0a3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for libgpt-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 2d7668609c0400b65fa6a50127b13ce081570463078bd27669b2453ed02c396c
MD5 74c070987e08f11852a344a8c4e95304
BLAKE2b-256 d99d0d88b5abe2fd11379199a85caf8baa62466fadc5aff7ca3cfb5a265d9086

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page