ModelLens

v0.1.3
io.github.Greatbeing/modellens Checked 1 day ago Published 26 days ago

See which models actually work: probe, rank and recommend across OpenAI-compatible gateways.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models

List the models each configured endpoint advertises (GET {base_url}/models). Read-only network call to your own configured endpoints — no inference, no token cost. Use this FIRST, before probe/ranking, to see what is available. Returns model ids grouped by endpoint name; empty list if an endpoint is unreachable.

ParameterTypeDescription
containsstringoptional substring filter (matches model id)
limitstringoptional max models per endpoint

probe

Probe models by sending REAL chat-completion requests; measures latency, success rate, streaming and tool calling. Side effects: consumes upstream tokens/quota and hits the network (open-world) — every probe is a real, billed completion. Use to measure what works RIGHT NOW, then call ranking. Returns per-model probe rows (ok, latency_ms, status, stream_ok, tools_ok).

ParameterTypeDescription
check_toolsstringalso test function calling (slower)
containsstringsubstring filter on model id
endpointstringoptional endpoint name to restrict probing to
limitstringmax models to probe (default 20)
modelstringprobe exactly this model id

ranking

Return the quality ranking computed from RECORDED probe history (read-only: no network, no new probes). Ordered best-first by score = success 50% + median latency 30% + cancellation 20%. Use after probe to see the ranked table; use recommend for a single best pick. Rows include model, score, success%, cancel%, median latency, verdict.

ParameterTypeDescription
limitstringrows to show (default 30)

recommend

Return the single best model for a task profile: 'fast' (lowest latency), 'cheap', or 'capable' (highest quality). Read-only, computed from recorded probe history; omit profile to use the default. Use when you need ONE model to route to right now.

ParameterTypeDescription
profilestringfast | cheap | capable (optional, default = capable)

report

Return the whole picture as a markdown report: endpoints, verdict counts, top models by score, and the full per-model table. Read-only, from recorded history (no network). Use to inspect or share overall gateway health (e.g. paste into a STATUS.md).