aistv 1.3.7__tar.gz → 1.3.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aistv
3
- Version: 1.3.7
3
+ Version: 1.3.8
4
4
  Summary: STV AI Chatbot Library for Python
5
5
  Home-page: https://github.com/phuctrong1tuv
6
6
  Author: Trọng Phúc
@@ -85,12 +85,21 @@ while True:
85
85
  print("AI STV:", reply)
86
86
 
87
87
  ```
88
- ---
88
+ 🧪 Ví dụ
89
+ ```python
90
+ from aistv import aistv
89
91
 
90
- ⚙️ Tuỳ chỉnh nâng cao
92
+ Token=TOKEN_API
93
+ bot = aistv(token)
91
94
 
92
- custom_prompt = "Bạn là STV, một trợ lý AI thân thiện, giao tiếp bằng tiếng Việt."
93
- bot = aistv(token, system_prompt=custom_prompt)
95
+ while True:
96
+ user_input = input("Bạn: ")
97
+ if user_input.lower() == "exit":
98
+ break
99
+ reply = bot.chat(user_input)
100
+ print("AI STV:", reply)
101
+
102
+ ```
94
103
 
95
104
 
96
105
  ---
@@ -185,7 +194,21 @@ pip install aistv
185
194
  reply = bot.chat(user_input)
186
195
  print("AI STV:", reply)
187
196
  ```
197
+ 🧪 Example
198
+ ```python
199
+ from aistv import aistv
188
200
 
201
+ Token=TOKEN_API
202
+ bot = aistv(token)
203
+
204
+ while True:
205
+ user_input = input("Bạn: ")
206
+ if user_input.lower() == "exit":
207
+ break
208
+ reply = bot.chat(user_input)
209
+ print("AI STV:", reply)
210
+
211
+ ```
189
212
  ---
190
213
 
191
214
  ⚙️ Advanced Prompt Customization
@@ -55,12 +55,21 @@ while True:
55
55
  print("AI STV:", reply)
56
56
 
57
57
  ```
58
- ---
58
+ 🧪 Ví dụ
59
+ ```python
60
+ from aistv import aistv
59
61
 
60
- ⚙️ Tuỳ chỉnh nâng cao
62
+ Token=TOKEN_API
63
+ bot = aistv(token)
61
64
 
62
- custom_prompt = "Bạn là STV, một trợ lý AI thân thiện, giao tiếp bằng tiếng Việt."
63
- bot = aistv(token, system_prompt=custom_prompt)
65
+ while True:
66
+ user_input = input("Bạn: ")
67
+ if user_input.lower() == "exit":
68
+ break
69
+ reply = bot.chat(user_input)
70
+ print("AI STV:", reply)
71
+
72
+ ```
64
73
 
65
74
 
66
75
  ---
@@ -155,7 +164,21 @@ pip install aistv
155
164
  reply = bot.chat(user_input)
156
165
  print("AI STV:", reply)
157
166
  ```
167
+ 🧪 Example
168
+ ```python
169
+ from aistv import aistv
158
170
 
171
+ Token=TOKEN_API
172
+ bot = aistv(token)
173
+
174
+ while True:
175
+ user_input = input("Bạn: ")
176
+ if user_input.lower() == "exit":
177
+ break
178
+ reply = bot.chat(user_input)
179
+ print("AI STV:", reply)
180
+
181
+ ```
159
182
  ---
160
183
 
161
184
  ⚙️ Advanced Prompt Customization
@@ -18,17 +18,18 @@ install_package("requests")
18
18
  # Cấu hình
19
19
  DB_FILE = "usage.db"
20
20
  SPAM_DELAY_SECONDS = 5
21
- FREE_MAX_REQUESTS = 1
22
- NORMAL_MAX_REQUESTS = 2
21
+ FREE_MAX_REQUESTS = 20
22
+ NORMAL_MAX_REQUESTS = 50
23
23
  VIP_MAX_REQUESTS = None # Không giới hạn
24
24
 
25
25
  API_KEYS = [
26
26
  "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",
27
+ "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",
27
28
  ]
28
29
 
29
30
  # Danh sách token
30
31
  TOKEN_VIP_SET = {"aistv", "phuc"}
31
- TOKEN_NORMAL_SET = {"tokengsk_...", "another_token..."}
32
+ TOKEN_NORMAL_SET = {"token_sk-or-v1-56d24544a83100b354a57f82ea83fc31e6ae249749df44a912e35769123ea5d5", "another_token..."}
32
33
 
33
34
  class STVBot:
34
35
  def __init__(self, token: str = None, system_prompt: str = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aistv
3
- Version: 1.3.7
3
+ Version: 1.3.8
4
4
  Summary: STV AI Chatbot Library for Python
5
5
  Home-page: https://github.com/phuctrong1tuv
6
6
  Author: Trọng Phúc
@@ -85,12 +85,21 @@ while True:
85
85
  print("AI STV:", reply)
86
86
 
87
87
  ```
88
- ---
88
+ 🧪 Ví dụ
89
+ ```python
90
+ from aistv import aistv
89
91
 
90
- ⚙️ Tuỳ chỉnh nâng cao
92
+ Token=TOKEN_API
93
+ bot = aistv(token)
91
94
 
92
- custom_prompt = "Bạn là STV, một trợ lý AI thân thiện, giao tiếp bằng tiếng Việt."
93
- bot = aistv(token, system_prompt=custom_prompt)
95
+ while True:
96
+ user_input = input("Bạn: ")
97
+ if user_input.lower() == "exit":
98
+ break
99
+ reply = bot.chat(user_input)
100
+ print("AI STV:", reply)
101
+
102
+ ```
94
103
 
95
104
 
96
105
  ---
@@ -185,7 +194,21 @@ pip install aistv
185
194
  reply = bot.chat(user_input)
186
195
  print("AI STV:", reply)
187
196
  ```
197
+ 🧪 Example
198
+ ```python
199
+ from aistv import aistv
188
200
 
201
+ Token=TOKEN_API
202
+ bot = aistv(token)
203
+
204
+ while True:
205
+ user_input = input("Bạn: ")
206
+ if user_input.lower() == "exit":
207
+ break
208
+ reply = bot.chat(user_input)
209
+ print("AI STV:", reply)
210
+
211
+ ```
189
212
  ---
190
213
 
191
214
  ⚙️ Advanced Prompt Customization
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="aistv",
5
- version="1.3.7",
5
+ version="1.3.8",
6
6
  description="STV AI Chatbot Library for Python",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes