A python wrapper around OpenAI ChatGPT for easy access of its functionality
Project description
ChatGptPrtk
ChatGPT is a prototype artificial intelligence chatbot developed by OpenAI which specializes in dialogue.
ChatGptPrtk is a python wrapper around OpenAI ChatGPT for easy access of its functionality.
Features
- Programmable use as SDK
- Create server and run API with customizable payload
- No Moderation
- API Key based authentication
Installation
Install ChatGptPrtk with pip
pip install chatgptprtk
Usages
Create an account in OpenAI and get API Key
Get AI Response
import chatgptprtk as ch
api_key="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx83r"
ch.setApiKey(api_key)
msg="write a pallindrome program in java"
response=ch.sendMessage(msg)
Start a server
ch.startServer()
License
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
chatgptprtk-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for chatgptprtk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ad66e16243837d1fdbca410e179166e7500ce340d0084f839d7f5ba0c61ec67 |
|
MD5 | c2cb825e12ace0177b01745c732fccde |
|
BLAKE2b-256 | 2b75f7bcebd893a4100d2ea6785ad75a421831588b85bf4692f75f3b793ae3c6 |