chatgptprtk-0.1.3
توضیحات
A python wrapper around OpenAI ChatGPT for easy access of its functionality
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | chatgptprtk-0.1.3 |
| نام | chatgptprtk |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Pratik Joshi <pratikjoshi999@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/chatgptprtk/ |
| مجوز | - |
# ChatGptPrtk
[](https://pypi.python.org/pypi/chatgptprtk)
[](https://github.com/pratikjoshi999/chatGptPrtkPkg/blob/main/LICENSE)
ChatGPT is a prototype artificial intelligence chatbot developed by [OpenAI](https://openai.com/) 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
```bash
pip install chatgptprtk
```
## Usages
_Create an account in [OpenAI](https://openai.com/) and get API Key_
Get AI Response
```bash
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
```bash
ch.startServer()
```
## API Reference
#### Endpoint
```bash
{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](https://github.com/pratikjoshi999/chatGptPrtkPkg/blob/main/LICENSE)
نیازمندی
| مقدار | نام |
|---|---|
| - | flask |
| - | openai |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl chatgptprtk-0.1.3:
pip install chatgptprtk-0.1.3.whl
نصب پکیج tar.gz chatgptprtk-0.1.3:
pip install chatgptprtk-0.1.3.tar.gz