Skip to main content

STV AI Chatbot Library for Python

Project description


🌟 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

pip install aistv

🧪 Ví dụ

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ụ

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



🌟 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

pip install aistv

🧪 Example

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aistv-1.4.7.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aistv-1.4.7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file aistv-1.4.7.tar.gz.

File metadata

  • Download URL: aistv-1.4.7.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for aistv-1.4.7.tar.gz
Algorithm Hash digest
SHA256 37ecbe7ef42b461f7be2e859bcdf926a82ac8b19ca1e85412b60ee72bf71ac73
MD5 de6a48d22cf88f49e157ed85f7fb8926
BLAKE2b-256 92cf3bccdef067fdb0b7d45d370b74f88e5914fd0a31962fd09f67043892889f

See more details on using hashes here.

File details

Details for the file aistv-1.4.7-py3-none-any.whl.

File metadata

  • Download URL: aistv-1.4.7-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for aistv-1.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a3e5690cd26751349a327ca5b9b13b1ccab0bbc72c94e5d7849472295f0e5da0
MD5 b5d2817506bc8f6f6e99e7dc738f441c
BLAKE2b-256 aa7b04a0781f3ab286ed65b65e827c2b3dd213dce80d072c2b1412fb33a82b4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page