How to Build Things with Jev & OpenJevs
In this video, we build a model router using both the API-based original Jev and also using Semif. 👨💻 Github: code will be up in the next day or so 📺 2nd Channel: Coming Soon!! Twitter: https://x.com/Sam_Witteveen 🕵️ Interested in building LLM Agents? Fill out the form below Building LLM Agents Form: https://drp.li/dIMes 👨💻Github: https://github.com/samwit/llm-tutorials ⏱️Time Stamps: 00:00 Intro 01:45 Quick Recap on Jev 05:59 Model Router Demo 06:21 Models Used for both Local and Cloud 07:18 Running using any Model 07:37 Running using AutoJev 11:47 Architecture 15:06 Running using SemIf 16:46 Stats
Read Video · 文字稿与深度分析
本集已有完整文字稿 + AI 深度分析
免费注册 · 无需信用卡 · 注册即获 150 积分,足够解锁本集
- 📄 完整文字稿含时间戳
- ✨ AI 摘要、关键词与思维导图
- 💡 核心要点与精彩引言
节目时间轴
Introduction to building a model router with Jev and the models used locally and in the cloud.
- Jev is a system-one model from Typesafe AI that does not generate text but returns typed answers with probabilities for choice, score, and null questions.
- The router runs locally as an endpoint and uses a mini CPM 5 2B model locally, Qwen Image 2.1 for images, and DeepSeek V4.1 Flash via OpenRouter for cloud tasks.
- Jev charges nothing for output tokens and only 4 cents per million input tokens, with responses typically in the 70 to 500 millisecond range.
- The three question types map neatly onto routing: choice for categorization, score for difficulty, and null for privacy gating.
Demonstration of the router deciding between local and cloud models based on Jev's judgments.
- A simple greeting was routed to the local mini CPM model with zero difficulty and no private information, decided by Jev in 331 milliseconds.
- A Python code request was routed to DeepSeek because the choice category returned code with near 100% probability, and difficulty increased above chitchat.
- The choice question includes classes like chitchat, simple question, rewrite/summarize, code, reasoning/analysis, and image, each with defined criteria.
- The score question uses levels from trivial to hard, where trivial means a small 2B model handles it easily and hard requires frontier-level reasoning.
Privacy gating and the architecture of the router with FastAPI, SQLite, and OpenAI-compatible endpoints.
- A fake API key triggered the privacy null question, which returned 0.96 probability of private data and forced the request to stay local.
- The architecture uses a Next.js UI sending to a local FastAPI server that makes one Jev call for decisions, then routes and streams from the winning model.
- Lanes are preconfigured with an order of preference, and conditional rules include routing to web-enabled models if difficulty exceeds 6 or to local models if the privacy flag is above 0.5.
- Everything is logged to SQLite, including Jev decisions, messages, and generated images, with health checks and OpenAI-compatible endpoints for all models.
关键概念
- Jev— The core system-one model from Typesafe AI that powers the entire routing logic without generating text.
- model router— The main project built in the episode, deciding which model handles each request.
- typed questions— The three question types (choice, score, null) that Jev answers with probabilities.
精选金句
And remember, the cool thing for this is it doesn't charge you anything for output tokens at all, and it only charges you 4 cents per million input tokens.
🤯— Reveals an unexpectedly low pricing model that makes routing decisions nearly free compared to standard LLM calls.
A nice way of thinking about this is that you can kind of think of it as an if statement that understands language.
💡— Reframes a sophisticated AI model as a simple programming construct, making the concept instantly graspable.
可执行的洞察
🏗️AI Architecture
Jev acts as a language-aware if statement that returns typed probabilities, enabling fast conditional routing without parsing JSON.
This week, prototype a single Jev call with one choice question and one null question to see how probabilities map to your routing logic.
Running three questions in one request costs nearly the same time as one, so you can add more decision dimensions cheaply.
Add a second null question to your existing Jev call to detect whether a request needs web search, and log the results.
🔒Privacy & Security
Sending prompts to a cloud Jev to check for PII already leaks the data, so local open-source Jev is essential for true privacy.
Set up a local OpenJev instance this week and route all privacy-gating questions through it instead of the cloud version.
A privacy threshold above 0.5 can automatically force requests to stay local, preventing sensitive data from leaving the machine.
Configure your router to force local routing when the privacy score exceeds 0.5, and test with a fake API key.
转录文字与 AI 洞察均由模型自动生成,可能存在少量误差。识别效果与音频质量、语速和发音清晰度相关——如有内容看起来不对,以原始音频为准。
播客与视频,已可阅读
音频播客

English for Women - Covering periods, pregnancy, and Peri-menopause
Real Life English with Camille
2026年5月28日12:34EN
The Unprecedented Personal Profits of Trump’s Presidency
The Daily
2026年7月9日29:56EN
What a harness is and how to build one with Claude Agent SDK
How I AI
2026年7月8日24:35EN
假期通知兼谈本台为什么要做视频播客
商业就是这样
2026年9月27日9:12ZH-Hans
BENWAL
Bakkie Bakkie
2025年12月1日1:28:00NL
#46 Was wäre Gutenberg ohne Papier? Die Medienrevolution
Wer wir sind und warum das nicht klappte ...
2026年2月18日1:13:42DE
视频

Stock Picking in Difficult Times with George Noble | The Real Eisman Playbook Ep 76
Steve Eisman
2026年9月21日50:53EN
Gemini Robotics – AI for the Physical World, with Keerthana and Ted of Google DeepMind
Cognitive Revolution "How AI Changes Everything"
2025年5月17日1:48:11EN
Jev: ChatGPT Co-Creator’s Answer to RLHF
AI Council
2026年6月19日36:39EN
从「上瘾模型」到「专注力训练」,如何在被算法理解的世界里重新找回主动?| 英文访谈 S9E33
声动活泼
2025年10月16日50:48ZH-Hans
Firma bez šéfov: Funguje to? - Money Talk 113 s Ferom Baníkom
Milan Dubec
2026年8月4日54:10SK