OpenCode model discovery now supports Bifrost metadata in v1.3.0 #5825
yuhp
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Bifrost community,
I am happy to share that opencode-models-discovery (https://github.com/yuhp/opencode-models-discovery) v1.3.0 now includes opt-in metadata enrichment for Bifrost AI Gateway.
The plugin helps OpenCode discover models from OpenAI-compatible providers. With the Bifrost integration enabled, it reads metadata already included in Bifrost's standard /v1/models response, so it does not add a second metadata request.
It can automatically map:
Enable it per provider in opencode.json:
{ "plugin": [ "opencode-models-discovery@1.3.0" ], "provider": { "bifrost": { "npm": "@ai-sdk/openai-compatible", "name": "Bifrost", "options": { "baseURL": "https://your-bifrost-instance.example.com/v1", "modelsDiscovery": { "enabled": true, "modelInfoFormat": "bifrost", "smartModelName": true } }, "models": {} } } }The implementation was tested against a redacted Bifrost Enterprise
v1.5.6/v1/models response. The enrichment is explicitly opt-in, so normal OpenAI-compatible model discovery behavior remains unchanged for other providers.Links:
Feedback and compatibility reports from Bifrost users are welcome.
All reactions