Skip to content

Release v1.1.0 — Gemma 4, supporting messages and more

Latest

Choose a tag to compare

@shishkin-github shishkin-github released this 05 Apr 20:35

English

MediBot 1.1.0 makes the bot faster, safer, and more predictable in production

Highlights

  • Switched Master mode to gemma-4-26b-a4b-it
  • Updated Gemini requests for a fast non-thinking response profile
  • Removed LLM usage from support buttons and replaced it with curated template-based replies
  • Added crisis-message routing with a dedicated safety response
  • Normalized bot messages for a more human chat experience, including no trailing . at the end of replies
  • Rewrote project documentation and added GitHub-friendly English and Russian READMEs

What changed

  • Master mode now uses a shorter, faster Gemma 4 response profile
  • Gemini output is sanitized from thinking artifacts and other service text before sending it to users
  • Support buttons now return deterministic responses from a curated catalog
  • Button replies now use anti-repeat logic:
    • excludes the last 7 templates in the same block
    • avoids the same method family twice in a row
    • applies a 14-day cooldown for the exact same template
  • Crisis-like messages bypass the normal dialog flow and return a fixed safety message
  • Support template selections are logged in SQLite
  • Added optional CRISIS_SUPPORT_MESSAGE config
  • Updated .env.example defaults and public README docs

Reliability and testing

  • Added unit and smoke tests for:
    • Gemma 4 request payloads and retries
    • response sanitization and UI text normalization
    • support template rotation
    • crisis routing
    • end-to-end smoke flows
  • Current test status: 30 passed

Upgrade notes

  • Default model is now gemma-4-26b-a4b-it
  • Support buttons no longer depend on the LLM
  • New optional environment variable: CRISIS_SUPPORT_MESSAGE

Русский

MediBot 1.1.0 делает бота быстрее, безопаснее и предсказуемее в реальной работе

Главное

  • Режим «Мастер» переведён на gemma-4-26b-a4b-it
  • Обновлены запросы к Gemini для быстрого режима без thinking
  • Support-кнопки больше не используют LLM и работают на подготовленных шаблонах
  • Добавлен отдельный safety-маршрут для кризисных сообщений
  • Сообщения бота нормализованы для более человеческого UX, включая отсутствие точки в конце ответа
  • Документация переписана для публичного репозитория и доступна на EN и RU

Что изменилось

  • Режим «Мастер» теперь использует более короткий и быстрый профиль ответов Gemma 4
  • Перед отправкой пользователю ответ модели очищается от thinking-артефактов и служебного текста
  • Support-кнопки теперь возвращают детерминированные ответы из подготовленного каталога
  • Для кнопок добавлена логика анти-повтора:
    • исключаются последние 7 шаблонов внутри одного блока
    • подряд не выдаётся одна и та же method_family
    • для точного шаблона действует cooldown 14 дней
  • Кризисные сообщения обходят обычный диалог и получают фиксированный safety-ответ
  • Выбор шаблонов теперь логируется в SQLite
  • Добавлена опциональная переменная CRISIS_SUPPORT_MESSAGE
  • Обновлены .env.example и README

Надёжность и тесты

  • Добавлены unit- и smoke-тесты для:
    • payload и retry-логики Gemma 4
    • очистки ответов и нормализации UI-текста
    • ротации support-шаблонов
    • crisis-routing
    • сквозных smoke-сценариев
  • Текущий статус тестов: 30 passed

Что учесть при обновлении

  • Модель по умолчанию теперь gemma-4-26b-a4b-it
  • Support-кнопки больше не зависят от LLM
  • Появилась новая опциональная переменная окружения: CRISIS_SUPPORT_MESSAGE