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()
API Reference
Endpoint
{Host url}/getChatgptResponse
Request
| Parameter | Type | Description |
|---|---|---|
msg |
string |
Required. Your Message to AI |
Response
| Parameter | Type | Description |
|---|---|---|
chatGptResp |
string |
Response from chatGPT |
responseCode |
int |
API Response Code |
API Key
Set a valid API Key using setApiKey() before starting server.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatgptprtk-0.1.3.tar.gz.
File metadata
- Download URL: chatgptprtk-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d2bff0ebec74419aaaad27b4b9aa2bccbe48ed9ded12d9af0278a8e6265559
|
|
| MD5 |
c77a934a97dfb5833680b1ac4cd00ee1
|
|
| BLAKE2b-256 |
852d9b5df27eccd81ebed757b3ba61c9535619cc2e441c23d6ff79bcd2163110
|
File details
Details for the file chatgptprtk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: chatgptprtk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61a1ee9a96ea74467d8ba8bc3330bf42d5facb13495cdd60ff12088e01e276ec
|
|
| MD5 |
666e1757abb73882c602956e0861dcec
|
|
| BLAKE2b-256 |
1170d68841e7182820b27f9486dc70c8daba7d92139a6079f7f0932e3f10cb23
|