Skip to content

v0.7.7

Choose a tag to compare

@vheins vheins released this 18 Jul 06:55
· 20 commits to main since this release

fix(plugin): flatten models.dev catalog response

models.dev/api.json returns a dict of providers with nested models, not
an array. findModelsDevMatch iterated with for...of over the raw response,
causing TypeError: {} is not iterable. This fix flattens the nested
provider dict into a flat array of {id, capabilities} entries before use.

Also fixes the provider api field to ensure opencode's built-in plugin
can resolve the endpoint URL for 9router-family providers.