Бот для поиска туров на Python: LLM разбирает запрос, а API туроператоров подкидывают сюрпризыЯ сделал бота для Telegram и MAX. Ему пишут обычной фразой: «Египет в ноябре с 10-го ±3 дня на 8 ночей, двое взрослых и ребёнок 7 лет, 4–5 звёзд». Бот находит туры, билеты и отели, а по кнопке следит за ценой и пишет, когда она падает. В статье — техническая часть: как языковая модель превращает фразу в строгий запрос, как один код обслуживает два мессенджера, как устроено слежение за ценами и какие грабли нашлись в API Слетать.ру и Aviasales. Код на Python 3.12, asyncio, httpx, pydantic, SQLite; живёт в Docker на VPS.https://habr.com/ru/articles/1098622/#api #искусственный_интеллект #python #ai #ml #asyncio #серверная_разработка #llm
Related
Nvidia's stock fell about 9.5% in two days after CEO Jensen Huang admitted an affair with a woman U.S. intelligence susp...
Nvidia's stock fell about 9.5% in two days after CEO Jensen Huang admitted an affair with a woman U.S. intelligence suspects spied for China. Governance experts say there's no prec...
GitHub Copilot's Automations feature lets you schedule desktop tasks & automate routine work. Focus on important develop...
GitHub Copilot's Automations feature lets you schedule desktop tasks & automate routine work. Focus on important development while AI handles the repetitive stuff. Computer use cap...
DeepSeek V3.2 dropped from $0.80 to $0.38 per 1M output tokens in 30 days — a 53% cut on open weights. If inference cost...
DeepSeek V3.2 dropped from $0.80 to $0.38 per 1M output tokens in 30 days — a 53% cut on open weights. If inference costs keep halving this fast, proprietary APIs will have to just...