cai icon indicating copy to clipboard operation
cai copied to clipboard

Don't hardcode models and defaults

Open rmoriz opened this issue 4 months ago • 6 comments

Hi,

models will change, they have a limited lifetime of a couple of months until the next comes out. Hence compiling in model names and defaults is not very sustainable. Also there should be an explicit provder default as some people have many ENVs set for other purposes but only want to use a specific provider and model with cai.

Thanks Roland

rmoriz avatar Sep 01 '25 15:09 rmoriz

see also https://models.dev/

rmoriz avatar Sep 01 '25 15:09 rmoriz

It only includes shortcuts. So e.g. cai opus is the same as cai anthropic claude-opus-4-1. However, if model name does not match a shortcut it is simply forwarded to the provider. So you can e.g. do something like cai anthropic claude-opus-4-20250514.

Since there is no easy way to automatically generate shortcuts, I don't think there is a was around manually defining them.

Same for defaults: How you would automatically pick one?

ad-si avatar Sep 01 '25 17:09 ad-si

But yeah, models.dev might be a good idea for the defaults problem at least.

ad-si avatar Sep 01 '25 17:09 ad-si

Maybe allow the user to set the default model and shortcuts in ~/.config/cai/config.yaml or similar?

dserodio avatar Sep 02 '25 20:09 dserodio

Yes, that is definitely planned! But it doesn't eliminate the need to already provide a default …

ad-si avatar Sep 03 '25 11:09 ad-si

Yes, that is definitely planned! But it doesn't eliminate the need to already provide a default …

Hope this happens soon, I would change a lot of stuff to really cater to me!

mohammad-malik avatar Sep 11 '25 05:09 mohammad-malik