feat: add Kunavo provider - #448
Open
cooldk wants to merge 2 commits into
Open
Conversation
The original commit added configs/kunavo.json but never wired it up, so the provider was dead code — no //go:embed, no registry entry, no loader func, meaning it could never appear in Crush. Adds all three, following the existing alphabetical placement. Config refreshed against the live catalog: - 10 -> 15 models (adds claude-opus-5, claude-opus-5-fast, gemini-3-6-flash, gpt-5-6-sol, gpt-5-4). - cost_per_1m_in_cached was 0 on every Gemini/GPT model, which understated the bill — cached input is charged at 0.20x input there (0.10x on Anthropic). - context_window values corrected against the models.dev lab registry; gpt-5-4, gpt-5-5 and gpt-5-6-sol are 1.05M, not the 400K previously listed. - default_large_model_id moved claude-sonnet-5 -> claude-opus-5, which is both stronger and cheaper per token on this catalog ($2/$10 vs $2.10/$10.50). `go build ./...` and `go test ./internal/providers/...` both pass locally.
Author
|
Pushed 7727f13. Two things, one of which was a real defect in my original submission. The provider was never registered. The first commit added Config refreshed against the live catalog (10 → 15 models: adds
|
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 Kunavo — a unified AI gateway to Claude, Gemini and GPT models behind one OpenAI-compatible API with transparent per-token pricing 30–70% under providers' list prices.
Config mirrors
aihubmix.json:openai-compat,$KUNAVO_API_KEY,https://api.kunavo.com/v1, 10 models with per-token costs, context windows and conservative default_max_tokens.Compatibility verified against the live endpoint today: streaming ✓, tool calling ✓,
stream_options.include_usage✓,GET /v1/modelslists all ids ✓ (tested on Gemini + Claude models). Machine-readable catalog: https://kunavo.com/llms.txt