Skip to content
HN On Hacker News ↗

GitHub - yujonglee/openrouter-toolkit

▲ 6 points 2 comments by yujonglee 3mo ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully AI-generated

99 %

AI likelihood · overall

AI
0% human-written 100% AI-generated
SEGMENTS · HUMAN 0 of 1
SEGMENTS · AI 1 of 1
WORD COUNT 110
PEAK AI % 99% · §1
Analyzed
May 29
backend: pangram/v3.3
Segments scanned
1 windows
avg 110 words each
Distribution
0 / 100%
human / AI fraction
Verdict
AI
Pangram v3.3

Article text · 110 words · 1 segments analyzed

Human AI-generated
§1 AI · 99%

Compile-time checked OpenRouter model ids. model_supports! validates a model id and its required capabilities against a vendored OpenRouter index, then expands to the model id string. use openrouter_toolkit::model_supports;

const MODEL: &str = model_supports!( "openai/gpt-5.4", param::tools, input::image, output::text, ); Dynamic variants work too: const MODEL: &str = model_supports!("moonshotai/kimi-k2-0905:exacto", param::tools); Capabilities

param::* — request parameters (e.g. param::tools) input::* — input modalities (e.g. input::image) output::* — output modalities (e.g. output::text)

Errors at compile time Unknown capability: const MODEL: &str = model_supports!("qwen/qwen3.7-max", param::toolz); error: unknown OpenRouter capability `param::toolz`; did you mean `param::tools`?

Capability not supported by the model: const MODEL: &str = model_supports!("qwen/qwen3.7-max", input::image); error: OpenRouter model `qwen/qwen3.7-max` does not support required capability(s): input::image