ai_bot / bot.py

Commit History

Improve search: pymorphy3 stemming, top_k=4, RRF 0.3/0.7, restructured KB
5de4047

gloomy_pooplar commited on

chore: clean prompt, remove phone/operator-ban
801f97e

gloomy_pooplar commited on

fix: cleaner off-topic message
4cf208c

gloomy_pooplar commited on

fix: general greeting, LLM detects off-topic → operator transfer
f010f62

gloomy_pooplar commited on

feat: expanded operator triggers, insoles-only focus, clear history on transfer
ce004d9

gloomy_pooplar commited on

fix: parse URL-encoded form data from Bitrix outgoing webhooks
f9beea3

gloomy_pooplar commited on

feat: Bitrix24 webhook вместо Telegram polling
e584a93

gloomy_pooplar commited on

fix: TLS 1.2 + round-robin Telegram IPs + client recreation on error
052c72b

gloomy_pooplar commited on

restore: exact code from b4a1c1a (search_debug + httpx polling)
76c7e2d

gloomy_pooplar commited on

restore: exact working code from 1dbfd30 (httpx, no requests, no ssl hacks)
1278a44

gloomy_pooplar commited on

fix: configure_http_backend + requests.Session (from forum solution)
bd6ae08

gloomy_pooplar commited on

restore: rollback to working commit 1dbfd30 (httpx polling, long poll)
4b8ed59

gloomy_pooplar commited on

fix: back to polling + requests (webhook broken on HF Spaces)
c8561d4

gloomy_pooplar commited on

fix: switch from httpx to requests.Session for Telegram API
a5fd967

gloomy_pooplar commited on

feat: test_tokens.py + TLS 1.2, _ssl_handshake_timeout, infinite webhook retry
d1118df

gloomy_pooplar commited on

fix: tg_post param name json_data vs json kwarg
52e850e

gloomy_pooplar commited on

fix: shared Telegram API client (reuse connection, avoid re-handshake)
eb2214b

gloomy_pooplar commited on

fix: webhook (aiohttp) + Python 3.12.9-slim (SSL bug fixed)
6f79408

gloomy_pooplar commited on

fix: ssl.OP_IGNORE_UNEXPECTED_EOF for Py3.12<3.12.3 bug
0394f21

gloomy_pooplar commited on

fix: increase SSL handshake timeout 15→120, keep client alive
2637f18

gloomy_pooplar commited on

fix: short poll (timeout=0) + new connection per request, no SSL EOF
9e9ea25

gloomy_pooplar commited on

fix: recreate httpx client on SSL EOF instead of reusing stale connection
1404544

gloomy_pooplar commited on

feat: dialog history (10 msg) per chat_id
1dbfd30

gloomy_pooplar commited on

Revert "fix: add bot logging, suppress transformers progress bars"
0ea9cb5

gloomy_pooplar commited on

Revert "fix: typing indicator, local LLM timeout (120s), short polling"
545660d

gloomy_pooplar commited on

Revert "fix: simplify prompts for Llama 3.2 3B"
22ff749

gloomy_pooplar commited on

fix: simplify prompts for Llama 3.2 3B
116da54

gloomy_pooplar commited on

fix: typing indicator, local LLM timeout (120s), short polling
efbde94

gloomy_pooplar commited on

fix: add bot logging, suppress transformers progress bars
e55daf1

gloomy_pooplar commited on

feat: search_debug(), RAG details in web logs
b4a1c1a

gloomy_pooplar commited on

feat: web log viewer at /logs, last 50 interactions
421cf0f

gloomy_pooplar commited on

rewrite: sync httpx polling, no aiogram/aiohttp
62664f6

gloomy_pooplar commited on

fix: set loop._ssl_handshake_timeout = 300s
5c8beff

gloomy_pooplar commited on

fix: override _connector_init SSL context in constructor
0307229

gloomy_pooplar commited on

fix: custom AiohttpSession with TLS 1.2, force IPv4
d2c7180

gloomy_pooplar commited on

fix: remove unused TCPConnector, simplify AiohttpSession
f07b0cc

gloomy_pooplar commited on

fix: use asyncio.run + start_polling, full traceback
e54f00a

gloomy_pooplar commited on

fix: custom SSL context TLS 1.2, TCP diagnostics
06d1e01

gloomy_pooplar commited on

fix: force IPv4, ssl_handshake_timeout=120s
2b7f8d4

gloomy_pooplar commited on

fix: retry bot on SSL timeout, custom aiohttp session with longer timeouts
8c8bded

gloomy_pooplar commited on

hybrid search (bge-m3 + BM25 + RRF) + local Llama 3.2 3B fallback
413a89a

gloomy_pooplar commited on

fix: hardcode KB paths, ignore KB_PATH env var from Render
257c2f7

gloomy_pooplar commited on

fix: switch to llama-3.3-70b, stricter prompt against hallucination
8f97396

gloomy_pooplar commited on

fix: strict system prompt - no price hallucination
5964e85

gloomy_pooplar commited on

feat: simplify operator redirect to 'Переход на оператор'
0d503cd

gloomy_pooplar commited on

feat: split KB into general + insoles, add operator triggers
e6b5c2b

gloomy_pooplar commited on

always pass questions through Groq even without KB matches
bcf1904

gloomy_pooplar commited on

initial: ORTOS Telegram Bot v2
b414ebf

gloomy_pooplar commited on