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.0a1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libgpt-1.0.0a1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libgpt-1.0.0a1.tar.gz
  • Upload date:
  • Size: 1.5 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.0a1.tar.gz
Algorithm Hash digest
SHA256 79d4b803dbb45095f47e2858054906aff3aaf60fb75e16c79ffcc1215252ca5c
MD5 665176541069e0deaf0554bc6b4aaca3
BLAKE2b-256 9e952bca0bd9cea11042b05fcd5618c3f985f4f85fde13e4da61ee36dd48188c

See more details on using hashes here.

File details

Details for the file libgpt-1.0.0a1-py3-none-any.whl.

File metadata

  • Download URL: libgpt-1.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for libgpt-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3bdda066f935de794a80139a349a2328d7e13f1a3d4f9e3b4543f65fc0073e
MD5 b3bfd1fe9bb1bd687191bb758f754008
BLAKE2b-256 7ce7d4abbb476800d3bd925f0a31a89d6c5d4d9e523625a2056df6ba4e3cb1e9

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