feat(sync): add kenari sync adapter#3171
Open
doedja wants to merge 2 commits into
Open
Conversation
Adds Kenari (kenari.id) to the model sync workflow so its catalog stays current automatically instead of via hand-opened PRs. - Public /v1/models endpoint, no API key or repo secret needed. - Cost stays 0 by policy: Kenari bills in IDR from a wallet at its own catalog prices, so USD figures would be a misleading conversion. - Existing factored TOMLs are preserved as authored; limits keep inheriting the canonical base model (Kenari's context figures are themselves ingested from models.dev, so they are not authoritative). - New models sync only when a canonical models/ metadata entry exists (dash IDs resolve to dotted canon, e.g. grok-4-5 -> xai/grok-4.5); unresolvable models are skipped with a sync-report notice. - First sync: 7 created, 1 removed (model no longer served), 22 unchanged; second run is a no-op and bun validate passes.
Contributor
Action items
|
Contributor
Author
|
Addressed the action item: the PR body now states that effort values are sourced verbatim from the endpoint's |
Contributor
|
No actionable findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Kenari (kenari.id) to the hourly model sync workflow so its catalog stays current automatically instead of via hand-opened PRs.
How it works
https://kenari.id/v1/modelsendpoint. No API key and no repo secret needed.providers/kenarientry.models/metadata entry exists to inherit capability facts from (factorBaseModel). Kenari's dash IDs resolve to the dotted canon generically (grok-4-5->xai/grok-4.5), no per-model alias table.hy3:free) rather than authored from API data that has no name/release-date fields.reasoning_optionsarray (per-model, e.g."reasoning_options":["low","medium","high","xhigh","max"]onclaude-fable-5). A model with"reasoning": trueand no advertised efforts getsreasoning_options = [], matching the existing hand-authored entries.Reasoning effort values advertised by the endpoint
/v1/modelsreasoning_options["low","medium","high","xhigh","max"]["none","low","medium","high","xhigh","max"]["low","medium","high"]reasoning: true) ->reasoning_options = []First sync (included in this PR)
Verification
bun models:sync kenaritwice: second run is a no-op (0 created, 0 updated, 0 deleted)bun validatepassesbun run test: same 3 pre-existing failures as a clean checkout ofdev, none related