Auto-generates YAML blocks for OpenRouter models.
Edit CURATED_MODELS
in openrouter_models.py
:
CURATED_MODELS = {
"openai/gpt-4o": "gpt-4o",
"anthropic/claude-3.5-sonnet": "claude-3.5-sonnet",
# Add more models...
}
Display names are auto-extracted from the API (text after :
if present).
python3 -m venv env
python3 -m pip install -r requirements.txt
# Generate all curated models
python3 openrouter_models.py --summary
# With API key (optional)
OPENROUTER_API_KEY=your_key python3 openrouter_models.py --summary
Generated YAML files in blocks/public/
are automatically published to hub.continue.dev.