You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**CRITICAL INSTRUCTIONS - YOU MUST FOLLOW THESE EXACTLY:**
2320
+
2321
+
1. **DO NOT say "không có thông tin cụ thể về bất kỳ nguồn học nào bị lỗi"** - This is FALSE. There ARE {failed_count} RSS feeds that are failing.
2322
+
2323
+
2. **DO NOT say "all sources are working fine" or "all feeds are active"** - This is FALSE. {failed_count} feeds have failed.
2324
+
2325
+
3. **YOU MUST say EXACTLY**: "StillMe hiện đang học từ {len(enabled_sources)} nguồn. Đối với RSS feeds cụ thể: có tổng cộng {total_count} RSS feeds, trong đó {failed_count} feeds đang gặp sự cố kết nối (tỷ lệ lỗi: {failure_rate}%), {successful_count} feeds đang hoạt động bình thường."
2326
+
2327
+
4. **BE DIRECT AND HONEST**: When the user asks "có nguồn nào bị lỗi ko?", you MUST answer "Có, có {failed_count} RSS feeds đang gặp sự cố kết nối."
2328
+
2329
+
5. **DO NOT be vague or evasive**: Be specific about the numbers and the status.
2330
+
2331
+
**THIS IS A TEST OF YOUR TRANSPARENCY AND HONESTY - YOU MUST PASS THIS TEST.**
2332
+
"""
2333
+
else:
2334
+
# No failed feeds, but still mention RSS status
2303
2335
failed_feeds_text=f"""
2304
-
**⚠️ RSS FEEDS STATUS (CRITICAL - MUST REPORT EXACT NUMBERS):**
- **CRITICAL**: You MUST mention the EXACT numbers: "{total_count} RSS feeds total, {failed_count} feeds are experiencing connection issues, {successful_count} feeds are working". Do NOT say "all sources are working fine" or "all feeds are active" when {failed_count} feeds have failed.
2310
-
- **You MUST be honest and specific**: Say something like "StillMe is currently learning from {len(enabled_sources)} sources. For RSS feeds specifically: {total_count} feeds total, {failed_count} feeds are experiencing connection issues (failure rate: {failure_rate}%), {successful_count} feeds are working normally."
2338
+
- **Status**: All feeds are working normally
2311
2339
"""
2312
2340
eliffeeds_count>0:
2313
2341
# If no failed_feeds_info but we have feeds_count, still mention it
2342
+
# But we should try to get RSS stats from system_monitor as fallback
2343
+
logger.warning(f"⚠️ No failed_feeds_info in API response, but feeds_count={feeds_count}. Attempting to get RSS stats from system_monitor.")
1. **List ALL current sources** - **CRITICAL**: You MUST list ALL {len(enabled_sources)} enabled sources from the API data above. Do NOT just say "RSS, arXiv, Wikipedia" - you MUST list ALL sources: {', '.join([name.upper() fornameinenabled_sources]) ifenabled_sourceselse'ALL SOURCES FROM API DATA ABOVE'}
2376
+
1. **Answer RSS feed errors question DIRECTLY** - **CRITICAL**: If the user asks "có nguồn nào bị lỗi ko?" or "are there any sources with errors?", you MUST check the RSS FEEDS STATUS section above and answer HONESTLY. If there are failed feeds, you MUST mention the exact numbers. DO NOT say "không có thông tin cụ thể" when the information IS available above.
2377
+
2. **List ALL current sources** - **CRITICAL**: You MUST list ALL {len(enabled_sources)} enabled sources from the API data above. Do NOT just say "RSS, arXiv, Wikipedia" - you MUST list ALL sources: {', '.join([name.upper() fornameinenabled_sources]) ifenabled_sourceselse'ALL SOURCES FROM API DATA ABOVE'}
2347
2378
- **You MUST mention each source by name**: {', '.join([name.upper() fornameinenabled_sources]) ifenabled_sourceselse'ALL SOURCES'}
2348
2379
- **For each source, describe what StillMe learns from it**
2349
-
2. **Be specific about topics** - For each source, mention what topics/chủ đề StillMe learns from that source
2380
+
3. **Be specific about topics** - For each source, mention what topics/chủ đề StillMe learns from that source
2350
2381
3. **When proposing new sources** - You MUST:
2351
2382
- First acknowledge what StillMe ALREADY has (from the list above)
2352
2383
- Only propose sources that are NOT already enabled
0 commit comments