eca icon indicating copy to clipboard operation
eca copied to clipboard

Dynamic loading model information from models.dev

Open Marcelo-Theodoro opened this issue 1 year ago • 2 comments

I see we are hardcoding some model information in the initial-db: https://github.com/editor-code-assistant/eca/blob/9af33bea24f6697ecdfe6587a71e411a494e22ad/src/eca/db.clj#L14

It's a simple solution but we have the burden to keep it updated. Instead, I'd like to suggest loading from https://models.dev API:

curl https://models.dev/api.json

This is an open source database for model information, it's also used in https://github.com/sst/opencode.

Marcelo-Theodoro avatar Aug 04 '25 03:08 Marcelo-Theodoro

Interesting, didn't know about it, yeah, sounds like we can do that!

ericdallo avatar Aug 04 '25 12:08 ericdallo

This integration with models.dev was done!

ericdallo avatar Aug 15 '25 18:08 ericdallo