Discord bot that makes TypeSafe's Jev talk — a decision model that "cannot generate text," loomed word-by-word into broken sentences.
Jev is a non-autoregressive decision model. It answers questions with calibrated probabilities, not text. This bot gives it a 20K word vocabulary and asks "next word?" repeatedly via tournament sampling until it forms a reply.
- Tournament sampling: 20K vocab shuffled into 255-word buckets, all scored in parallel
- Runoff: Top-2 from each bucket compete in a final round
- Completeness judge: A separate
noulquestion asks "is the reply complete?" — jev stops when it thinks it's done - Penalty system: Content words penalized 2.5x per reuse, stopwords 1.6x — prevents "is are I is are" loops
- User-only history: Last 3 user messages included as context; jev's own broken output is excluded (it poisons follow-ups)
- "I love jazz because its improvised and freedom."
- "Rock.? Yeah"
- "No because overkill. Overkill!.!.!"
- "I depends on on situation of circumstances."
- "Yuck no ugh spit! Gag gagging ing"
- "Band is from california in san los angeles. Las angels."
pip install -r requirements.txtCreate .env:
DISCORD_TOKEN_JEV=your_discord_bot_token
OPENROUTER_API_KEY=your_openrouter_key
Enable Message Content Intent in Discord developer portal.
python jev_bot.pyMention jev or reply to jev's messages. Replies only — it won't respond to messages that don't involve it.
~$0.01-0.05 per reply via OpenRouter. Tournament sampling does ~6 API calls per word.
vocab.txt is a 20K word list (from bewinxed/jevgpt) with slurs removed. Words can be added or removed freely — the vocab IS the content filter.
- TypeSafe AI for Jev
- bewinxed/jevgpt for the tournament sampling architecture and vocab
- Built by lyra + clod