Lesson overview

Local model adapter

Local model adapter — Telegram bot with a local AI model. Keep the model text-only; Non-streaming response with timeout; Do not disguise failures as answers. Practical assignment: Practice: Local model adapter.

Demo edition. The materials are undergoing editorial review.

Topics covered

  • Keep the model text-only
  • Non-streaming response with timeout
  • Do not disguise failures as answers

Practical assignment

Practice: Local model adapter

The full lesson is available as part of the course.

Continue to learning

Course outline

  1. Bot contract and secrets
  2. Authorization before the model
  3. Local model adapter
  4. Bot API transport and long polling
  5. State and uncertain delivery
  6. Offline tests and controlled startup