
Building a Telegram Bot for Allen AI's Open-Source Models
I wanted a Telegram bot that lets me chat with Allen AI's open-source language models — OLMo, Tülu, and Molmo 2 — without running any models locally. No GPU, no inference server, just a lightweight Python bot that talks to Allen AI's free public playground API. The result is OLMo Bot , and it ended up with more capabilities than I initially planned: multi-model switching, web search, vision, and even visual object pointing with annotated image overlays. Connecting to Allen AI Allen AI runs a public playground with their latest models. There's no official API, but I built Web2API — a tool that turns websites into REST APIs — and created a recipe for it. The bot doesn't scrape anything itself; it just calls Web2API endpoints: async def query_model ( model , prompt , history = None , file_path = None ): endpoint = MODELS . get ( model ) # e.g. "/allenai/olmo-32b" url = f " { WEB2API_URL }{ endpoint } " params = { " q " : full_prompt } async with httpx . AsyncClient ( timeout = 120 ) as cl
Continue reading on Dev.to Python
Opens in a new tab




