crush icon indicating copy to clipboard operation
crush copied to clipboard

Not fetching latest models from openrouter

Open jinyus opened this issue 1 month ago • 4 comments

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

jinyus avatar Nov 12 '25 01:11 jinyus

Crush uses https://github.com/charmbracelet/catwalk. See: https://github.com/charmbracelet/catwalk/blob/main/internal/providers/configs/openrouter.json

LarsArtmann avatar Nov 12 '25 07:11 LarsArtmann

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": {}
    }

LarsArtmann avatar Nov 12 '25 07:11 LarsArtmann

[!TIP] Below may help you fix the problem for now:

https://github.com/charmbracelet/crush/issues/1417#issuecomment-3512500107

LarsArtmann avatar Nov 12 '25 07:11 LarsArtmann

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

jinyus avatar Nov 12 '25 13:11 jinyus