Not fetching latest models from openrouter
Description
❯ crush update-providers 'https://openrouter.ai/api/v1/models'
ERROR
Failed to fetch providers from Catwalk: unexpected status code: 404.
Running without the url shows success but I can't find the latest free model (Kwaipilot: KAT-Coder-Pro V1) in the model list.
Version
v0.16.1
Environment
linux
Crush uses https://github.com/charmbracelet/catwalk. See: https://github.com/charmbracelet/catwalk/blob/main/internal/providers/configs/openrouter.json
The free version is already added:
{
"id": "kwaipilot/kat-coder-pro:free",
"name": "Kwaipilot: KAT-Coder-Pro V1 (free)",
"cost_per_1m_in": 0,
"cost_per_1m_out": 0,
"cost_per_1m_in_cached": 0,
"cost_per_1m_out_cached": 0,
"context_window": 256000,
"default_max_tokens": 16000,
"can_reason": false,
"supports_attachments": false,
"options": {}
}
[!TIP] Below may help you fix the problem for now:
https://github.com/charmbracelet/crush/issues/1417#issuecomment-3512500107
Thanks, I added it manually through the link you sent.
I'm going to leave this open since my first approach should work according to the docs.
edit: it still doesn't show up in the model list after importing the json. I had to add it in the crush config
https://github.com/user-attachments/assets/0669814a-0b68-4348-b1e0-83410744d211