Skip to main content

GPT-4 Turbo is a cutting-edge language model developed by OpenAI, now available for free access through web engineering advancements.

Project description

GPT-4 Turbo is a cutting-edge language model developed by OpenAI, now available for free access through web engineering advancements. With the latest innovation in XEROFANIC-ATTACH tunneling technology, GPT-4 Turbo effortlessly establishes secure connections to users' requests, granting them unparalleled access to its powerful capabilities.

gptplus

gptplus is a Python wrapper for the GPT-4 Plus API.

Installation

pip install gptplus

Usage

from gptplus import ChatGPT

chatgpt = ChatGPT()

chat_id = chatgpt.create_chat() 

response = chatgpt.send_message(chat_id, "What is the capital of France?")

print(response)

chatgpt.delete_chat(chat_id)

API Reference

ChatGPT

chatgpt = ChatGPT()

Creates a new ChatGPT instance.

create_chat()

chat_id = chatgpt.create_chat()

Creates a new chat and returns the chat ID.

delete_chat(chat_id)

chatgpt.delete_chat(chat_id) 

Deletes the chat with the given ID.

get_chats()

chats = chatgpt.get_chats()

Returns a list of all chats for the user.

get_chat(chat_id)

chat = chatgpt.get_chat(chat_id)

Returns the chat with the given ID.

send_message(chat_id, message)

response = chatgpt.send_message(chat_id, "What is the capital of France?") 

Sends a message to the chat with the given ID and returns the response.

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

gptplus-2.2.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

gptplus-2.2.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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