eca
eca copied to clipboard
Dynamic loading model information from models.dev
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.
Interesting, didn't know about it, yeah, sounds like we can do that!
This integration with models.dev was done!