Spaces:
Paused
Paused
Commit History
22 days ago
-
Deploy to HF Spaces
Chandrakiran-088501103
24 days ago
-
Free debugger on OpenCode Zen; separate code and scene model lists
Chandra KiranUnverified signatureThe first repair after a failed check now goes to a free DeepSeek V4 Flash through OpenCode Zen (DEBUG_MODEL), not OpenRouter: recorded as exempt, never billed. If that call fails (rate limit, offer withdrawn, OpenCode missing) the same repair falls back to the next paid tier, and later repairs keep climbing. Scenes use it through a tool-less OpenCode chat (api/zen.py); OpenCode code generation switches to it inside the same session. CODE_MAX_ATTEMPTS is now 3 so the free try never replaces the stronger paid repair. Routing keeps two registries of Chinese open-weight models on OpenRouter, chosen by benchmark and price: code DeepSeek V4 Flash -> V4 Pro -> GLM-5.2, scenes GLM-5.2 -> Kimi K2.6. SCENE_MODELS / CODE_MODELS override them.536e671 -
Route every task to a model automatically and budget AI usage in rupees
Chandra KiranUnverified signatureapi/routing.py rates each request's complexity and picks the cheapest capable tier from a model registry (DeepSeek V4 Flash, DeepSeek V4 Pro, GLM-5.3 on OpenRouter by default; MODEL_REGISTRY overrides). A draft that fails its checks is repaired one tier up, so hard tasks reach the strongest model on their own. Scenes also get a simulator choice among what can run them (MuJoCo, MuJoCo Warp, Isaac Sim), with the reason. api/budget.py keeps a ledger of every model call: OpenRouter's reported cost (else list prices), converted to rupees, per tester (125 each) and for the pool (500). OpenRouter-exempt calls are recorded but not deducted. Tasks are refused when the allocation or pool can't cover them and need confirmation above CONFIRM_ABOVE_INR. New: POST /feedback (helpful / not helpful + note, stored with routing and result context) and GET /me/usage (team view for ADMIN_TESTERS).5b063c2