Skip to main content

ChatGptPrtk

PyPi License

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

MIT

Metadata

Release files for chatgptprtk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatgptprtk 0.1.3
File Size Uploaded
chatgptprtk-0.1.3.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatgptprtk 0.1.3
File Interpreter ABI Platform
chatgptprtk-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / chatgptprtk-0.1.3.tar.gz

Download URL chatgptprtk-0.1.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f1d2bff0ebec74419aaaad27b4b9aa2bccbe48ed9ded12d9af0278a8e6265559
BLAKE2b-256 checksum
How to use checksums
852d9b5df27eccd81ebed757b3ba61c9535619cc2e441c23d6ff79bcd2163110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / chatgptprtk-0.1.3-py3-none-any.whl

Download URL chatgptprtk-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61a1ee9a96ea74467d8ba8bc3330bf42d5facb13495cdd60ff12088e01e276ec
BLAKE2b-256 checksum
How to use checksums
1170d68841e7182820b27f9486dc70c8daba7d92139a6079f7f0932e3f10cb23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page