ProGPT is an open-source Python client for ChatGPT conversations, providing a simple interface for generative and conversational workflows.
Both Generative & Conversation modes are supported.
$ pip install progptIn your browser:
- Login to https://chat.openai.com
- Open https://chat.openai.com/api/auth/session
- Copy the value of
accessToken
Answers individual prompts without maintaining conversation history.
from ProGPT import Generative
bot = Generative(access_token)
print(bot.prompt("who invented electricity?"))Creates a conversation thread and maintains chat history across prompts.
from ProGPT import Conversation
bot = Conversation(access_token)
print(bot.prompt("hello"))
print(bot.prompt("how are you?"))ChatGPT web services may enforce request limits depending on account status and usage patterns. Applications should implement appropriate retry logic and rate limiting when necessary.
If you're benefitting from my work and wish to support me, please consider visiting this link:
This project is an independent third-party library and is not affiliated with or endorsed by OpenAI.
Users are responsible for ensuring their usage complies with applicable terms of service, policies, and local regulations.