An unofficial Python wrapper for OpenAI's ChatGPT API
Project description
pyChatGPT
An unofficial Python wrapper for OpenAI's ChatGPT API
Getting Started
Installation
pip install pyChatGPT
Usage
Interactive mode
python -m pyChatGPT
Import as a module
from pyChatGPT import ChatGPT
session_token = 'abc123'
api = ChatGPT(session_token)
resp = api.send_message('Hello, world!')
print(resp['message'])
Insipration
This project is inspired by
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyChatGPT-0.0.3.tar.gz
(15.3 kB
view hashes)
Built Distribution
pyChatGPT-0.0.3-py3-none-any.whl
(15.8 kB
view hashes)
Close
Hashes for pyChatGPT-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb99b158457166a49323529ac0403b7acd856b3a5a6095873ab1b71e66a0cc33 |
|
MD5 | 894c56a256a8d5e85a5e99e7d9ba59e5 |
|
BLAKE2b-256 | 7ad8f3048db3e7b4bd1e327e8360934650b22a24b6eca6bcb749f4c463ed308b |