---
# 🌟 aistv
**Thư viện STV AI Chatbot dành cho Python**
`aistv` là một thư viện Python nhẹ và hiệu quả, cho phép bạn tích hợp trợ lý ảo STV — một chatbot thông minh, thân thiện và linh hoạt
---
## 🧠 Giới thiệu
STV được phát triển bởi **Trọng Phúc** và ra mắt vào ngày **06/05/2025**, với mục tiêu hỗ trợ người dùng qua các cuộc trò chuyện tự nhiên, đa ngôn ngữ và mang tính cá nhân hóa cao.
---
## 🚀 Tính năng nổi bật
- ✉️ Gửi tin nhắn và nhận phản hồi theo ngữ cảnh từ STV AI
- 🧾 Tự động lưu lịch sử hội thoại để duy trì mạch trò chuyện
- ⚙️ Cho phép tùy chỉnh lời nhắc hệ thống (system prompt)
- 🔌 Dễ dàng tích hợp vào mọi dự án Python
---
## 📦 Yêu cầu
- Python **>= 3.8**
- Thư viện phụ trợ: `requests`
---
## 📥 Cài đặt
```bash
pip install aistv
```
---
🧪 Ví dụ
```python
from aistv import aistv
bot = aistv()
while True:
user_input = input("Bạn: ")
if user_input.lower() == "exit":
break
reply = bot.chat(user_input)
print("AI STV:", reply)
```
🧪 Ví dụ
```python
from aistv import aistv
Token=TOKEN_API
bot = aistv(token)
while True:
user_input = input("Bạn: ")
if user_input.lower() == "exit":
break
reply = bot.chat(user_input)
print("AI STV:", reply)
```
---
🤝 Đóng góp
Chúng tôi hoan nghênh mọi đóng góp từ cộng đồng!
Nếu bạn phát hiện lỗi hoặc muốn đề xuất tính năng mới:
Gửi issue trên GitHub
Gửi pull request kèm mô tả rõ ràng
---
📜 Giấy phép
Dự án được phát hành theo giấy phép MIT License.
---
👨💻 Tác giả
Trọng Phúc
Ngày phát hành đầu tiên: 01/06/2025
---
<br>🌟 aistv
STV AI Chatbot Library for Python
`aistv` is a lightweight and efficient Python library that allows you to integrate the STV virtual assistant — a smart, friendly and flexible chatbot
---
🧠 Introduction
STV was developed by Trong Phuc and officially launched on May 6, 2025, with the goal of enabling natural, multilingual, and highly personalized AI conversations.
---
🚀 Features
✉️ Send messages and receive contextual replies from STV
🧾 Auto-save chat history to maintain conversation continuity
⚙️ Customize system prompt according to your needs
🔌 Easily integrates with any Python project
---
📦 Requirements
Python >= 3.8
Dependency: requests
---
📥 Installation
```bash
pip install aistv
```
---
🧪 Example
```python
from aistv import aistv
bot = aistv()
whileTrue:
user_input = input("You: ")
if user_input.lower() == "exit":
break. break
reply = bot.chat(user_input)
print("AI STV:", reply)
```
🧪 Example
```python
from aistv import aistv
Token=TOKEN_API
bot = aistv(token)
while True:
user_input = input("Bạn: ")
if user_input.lower() == "exit":
break
reply = bot.chat(user_input)
print("AI STV:", reply)
```
---
⚙️ Advanced Prompt Customization
custom_prompt = "You are STV, a friendly AI assistant speaking in Vietnamese."
bot = aistv(token, system_prompt=custom_prompt)
---
🤝 Contributing
We welcome all contributions from the community!
If you find a bug or want to suggest a new feature:
Submit an issue on GitHub
Send a pull request with a clear description
---
📜 License
This project is released under the MIT License.
---
👨💻 Author
Trong Phuc
Initial release: June 1, 2025
Raw data
{
"_id": null,
"home_page": "https://github.com/phuctrong1tuv",
"name": "aistv",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.13,>=3.8",
"maintainer_email": null,
"keywords": "chatbot, ai, stv, discord, tiktok",
"author": "Tr\u1ecdng Ph\u00fac",
"author_email": "Tr\u1ecdng Ph\u00fac <phuctrongytb16@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/92/cf/3bccdef067fdb0b7d45d370b74f88e5914fd0a31962fd09f67043892889f/aistv-1.4.7.tar.gz",
"platform": null,
"description": "\n---\n\n# \ud83c\udf1f aistv\n\n**Th\u01b0 vi\u1ec7n STV AI Chatbot d\u00e0nh cho Python**\n\n`aistv` l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python nh\u1eb9 v\u00e0 hi\u1ec7u qu\u1ea3, cho ph\u00e9p b\u1ea1n t\u00edch h\u1ee3p tr\u1ee3 l\u00fd \u1ea3o STV \u2014 m\u1ed9t chatbot th\u00f4ng minh, th\u00e2n thi\u1ec7n v\u00e0 linh ho\u1ea1t\n\n---\n\n## \ud83e\udde0 Gi\u1edbi thi\u1ec7u\n\nSTV \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n b\u1edfi **Tr\u1ecdng Ph\u00fac** v\u00e0 ra m\u1eaft v\u00e0o ng\u00e0y **06/05/2025**, v\u1edbi m\u1ee5c ti\u00eau h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng qua c\u00e1c cu\u1ed9c tr\u00f2 chuy\u1ec7n t\u1ef1 nhi\u00ean, \u0111a ng\u00f4n ng\u1eef v\u00e0 mang t\u00ednh c\u00e1 nh\u00e2n h\u00f3a cao.\n\n---\n\n## \ud83d\ude80 T\u00ednh n\u0103ng n\u1ed5i b\u1eadt\n\n- \u2709\ufe0f G\u1eedi tin nh\u1eafn v\u00e0 nh\u1eadn ph\u1ea3n h\u1ed3i theo ng\u1eef c\u1ea3nh t\u1eeb STV AI \n- \ud83e\uddfe T\u1ef1 \u0111\u1ed9ng l\u01b0u l\u1ecbch s\u1eed h\u1ed9i tho\u1ea1i \u0111\u1ec3 duy tr\u00ec m\u1ea1ch tr\u00f2 chuy\u1ec7n \n- \u2699\ufe0f Cho ph\u00e9p t\u00f9y ch\u1ec9nh l\u1eddi nh\u1eafc h\u1ec7 th\u1ed1ng (system prompt) \n- \ud83d\udd0c D\u1ec5 d\u00e0ng t\u00edch h\u1ee3p v\u00e0o m\u1ecdi d\u1ef1 \u00e1n Python \n\n---\n\n## \ud83d\udce6 Y\u00eau c\u1ea7u\n\n- Python **>= 3.8**\n- Th\u01b0 vi\u1ec7n ph\u1ee5 tr\u1ee3: `requests`\n\n---\n\n## \ud83d\udce5 C\u00e0i \u0111\u1eb7t\n\n```bash\npip install aistv\n```\n\n\n---\n\n\n\ud83e\uddea V\u00ed d\u1ee5 \n```python\nfrom aistv import aistv\n\nbot = aistv()\n\nwhile True:\n user_input = input(\"B\u1ea1n: \")\n if user_input.lower() == \"exit\":\n break\n reply = bot.chat(user_input)\n print(\"AI STV:\", reply)\n \n``` \n\ud83e\uddea V\u00ed d\u1ee5 \n```python\nfrom aistv import aistv\n\nToken=TOKEN_API\nbot = aistv(token)\n\nwhile True:\n user_input = input(\"B\u1ea1n: \")\n if user_input.lower() == \"exit\":\n break\n reply = bot.chat(user_input)\n print(\"AI STV:\", reply)\n \n``` \n\n\n---\n\n\ud83e\udd1d \u0110\u00f3ng g\u00f3p\n\nCh\u00fang t\u00f4i hoan ngh\u00eanh m\u1ecdi \u0111\u00f3ng g\u00f3p t\u1eeb c\u1ed9ng \u0111\u1ed3ng!\nN\u1ebfu b\u1ea1n ph\u00e1t hi\u1ec7n l\u1ed7i ho\u1eb7c mu\u1ed1n \u0111\u1ec1 xu\u1ea5t t\u00ednh n\u0103ng m\u1edbi:\n\nG\u1eedi issue tr\u00ean GitHub\n\nG\u1eedi pull request k\u00e8m m\u00f4 t\u1ea3 r\u00f5 r\u00e0ng\n\n\n\n---\n\n\ud83d\udcdc Gi\u1ea5y ph\u00e9p\n\nD\u1ef1 \u00e1n \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh theo gi\u1ea5y ph\u00e9p MIT License.\n\n\n---\n\n\ud83d\udc68\u200d\ud83d\udcbb T\u00e1c gi\u1ea3\n\nTr\u1ecdng Ph\u00fac\nNg\u00e0y ph\u00e1t h\u00e0nh \u0111\u1ea7u ti\u00ean: 01/06/2025\n\n\n---\n\n<br>\ud83c\udf1f aistv\n\nSTV AI Chatbot Library for Python\n\n`aistv` is a lightweight and efficient Python library that allows you to integrate the STV virtual assistant \u2014 a smart, friendly and flexible chatbot\n\n\n---\n\n\ud83e\udde0 Introduction\n\nSTV was developed by Trong Phuc and officially launched on May 6, 2025, with the goal of enabling natural, multilingual, and highly personalized AI conversations.\n\n\n---\n\n\ud83d\ude80 Features\n\n\u2709\ufe0f Send messages and receive contextual replies from STV\n\n\ud83e\uddfe Auto-save chat history to maintain conversation continuity\n\n\u2699\ufe0f Customize system prompt according to your needs\n\n\ud83d\udd0c Easily integrates with any Python project\n\n\n\n---\n\n\ud83d\udce6 Requirements\n\nPython >= 3.8\n\nDependency: requests\n\n\n\n---\n\n\ud83d\udce5 Installation\n```bash\npip install aistv\n```\n\n\n---\n\n\n \ud83e\uddea Example\n ```python\n from aistv import aistv\n\n bot = aistv()\n\n whileTrue:\n user_input = input(\"You: \")\n if user_input.lower() == \"exit\":\n break. break\n reply = bot.chat(user_input)\n print(\"AI STV:\", reply) \n ```\n\ud83e\uddea Example\n```python\nfrom aistv import aistv\n\nToken=TOKEN_API\nbot = aistv(token)\n\nwhile True:\n user_input = input(\"B\u1ea1n: \")\n if user_input.lower() == \"exit\":\n break\n reply = bot.chat(user_input)\n print(\"AI STV:\", reply)\n \n``` \n---\n\n\u2699\ufe0f Advanced Prompt Customization\n\ncustom_prompt = \"You are STV, a friendly AI assistant speaking in Vietnamese.\"\nbot = aistv(token, system_prompt=custom_prompt)\n\n\n---\n\n\ud83e\udd1d Contributing\n\nWe welcome all contributions from the community!\nIf you find a bug or want to suggest a new feature:\n\nSubmit an issue on GitHub\n\nSend a pull request with a clear description\n\n\n\n---\n\n\ud83d\udcdc License\n\nThis project is released under the MIT License.\n\n\n---\n\n\ud83d\udc68\u200d\ud83d\udcbb Author\n\nTrong Phuc\nInitial release: June 1, 2025\n\n",
"bugtrack_url": null,
"license": null,
"summary": "STV AI Chatbot Library for Python",
"version": "1.4.7",
"project_urls": {
"Discord": "https://discord.gg/fTaCmdxG9H",
"GitHub": "https://github.com/phuctrong1tuv",
"Homepage": "https://github.com/phuctrong1tuv",
"TikTok": "https://vm.tiktok.com/@aistvchat"
},
"split_keywords": [
"chatbot",
" ai",
" stv",
" discord",
" tiktok"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "aa7b04a0781f3ab286ed65b65e827c2b3dd213dce80d072c2b1412fb33a82b4b",
"md5": "b5d2817506bc8f6f6e99e7dc738f441c",
"sha256": "a3e5690cd26751349a327ca5b9b13b1ccab0bbc72c94e5d7849472295f0e5da0"
},
"downloads": -1,
"filename": "aistv-1.4.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5d2817506bc8f6f6e99e7dc738f441c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.13,>=3.8",
"size": 6087,
"upload_time": "2025-09-07T05:23:49",
"upload_time_iso_8601": "2025-09-07T05:23:49.859949Z",
"url": "https://files.pythonhosted.org/packages/aa/7b/04a0781f3ab286ed65b65e827c2b3dd213dce80d072c2b1412fb33a82b4b/aistv-1.4.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "92cf3bccdef067fdb0b7d45d370b74f88e5914fd0a31962fd09f67043892889f",
"md5": "de6a48d22cf88f49e157ed85f7fb8926",
"sha256": "37ecbe7ef42b461f7be2e859bcdf926a82ac8b19ca1e85412b60ee72bf71ac73"
},
"downloads": -1,
"filename": "aistv-1.4.7.tar.gz",
"has_sig": false,
"md5_digest": "de6a48d22cf88f49e157ed85f7fb8926",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.13,>=3.8",
"size": 6264,
"upload_time": "2025-09-07T05:23:51",
"upload_time_iso_8601": "2025-09-07T05:23:51.574625Z",
"url": "https://files.pythonhosted.org/packages/92/cf/3bccdef067fdb0b7d45d370b74f88e5914fd0a31962fd09f67043892889f/aistv-1.4.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-07 05:23:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "aistv"
}