Real hosted LLM via OpenRouter free models, with fallback chain and per-IP rate limit #2
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/openrouter-llm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Switches the demo from the rule-based agent to a hosted LLM, using OpenRouter's free models.
Model chain
nvidia/nemotron-3-super-120b-a12b:free→apodex/apodex-1.1-mini:free→google/gemma-4-31b-it:free→ rule-based agentChanges
AGENT_MARKET_LLM_API_KEY_FILE) that lives outside the repo. It never reaches the browser or the logs.deploy.shsources~/.config/agent-market/llm.envand<env>.env, which hold no secrets./api/chat, 12/min with a burst of 6. It returns 429 withRetry-After.CF-Connecting-IPis trusted only from loopback.AGENT_MARKET_LLM_EVENTS=1routes events to the LLM too.AI: nvidia/nemotron-3-super-120b-a12b.Model benchmark (scored on valid UI actions and latency)
Tests on staging (:8795)
e2e_http.py: 23/23 passed.browser_e2e.js: 11/11 passed.nl_check.pyagainst the real model: 6/6 passed, median 2.1 s.llm_proxy_check.sh: 6/6 passed. It covers the 429 to next-model path, falling back to the rule-based agent when all models fail, the cooldown, the key never reaching the browser, and the per-IP limit.