chatgpt-bot-0.1.3
توضیحات
A library that takes the pain out of creating ChatGPT bots.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chatgpt-bot-0.1.3 |
| نام | chatgpt-bot |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Stavros Korokithakis |
| ایمیل نویسنده | hi@stavros.io |
| آدرس صفحه اصلی | https://github.com/skorokithakis/ChatGPT-Bot |
| آدرس اینترنتی | https://pypi.org/project/chatgpt-bot/ |
| مجوز | MIT |
ChatGPT Bot
===========
This is a small library that tries to make it easier to create a ChatGPT bot. It has
a simple interface that keeps conversational context in a SQLite database:
```python
from chatgpt_bot import Conversation
>>> conversation = Conversation("some random ID", api_key="YOUR_OPENAI_API_KEY")
>>> conversation.ask("Hi, how are you today?")
"As an AI language model, I don't have feelings, but I'm always ready to assist you
with any questions or tasks you have. How can I help you today?"
>>> conversation.set_metadata({"anything": "here"})
>>> conversation.get_metadata()
{"anything": "here"}
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.27.5,<0.28.0 | openai |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl chatgpt-bot-0.1.3:
pip install chatgpt-bot-0.1.3.whl
نصب پکیج tar.gz chatgpt-bot-0.1.3:
pip install chatgpt-bot-0.1.3.tar.gz