Repository navigation
feat(models): add gonka24 provider - #3189
Conversation
Add the Gonka24 OpenAI-compatible inference provider serving Kimi K2.6 and MiniMax M2.7. End-user prices are set roughly 3x below OpenRouter's list price for each model. Registers the provider (env LLM_GONKA_24_API_KEY, base https://api.gonka24.com), logo, endpoint, and streaming transform case. Both models return reasoning via a separate field and clean json output, so no tag-splitting or reasoning/json workarounds are needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
WalkthroughAdds Gonka24 as a supported provider with API configuration, endpoint resolution, two model entries, streaming transformation, E2E secret wiring, and UI icon registrations. ChangesGonka24 provider integration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/e2e.ymlTraceback (most recent call last): Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/models/src/models/minimax.ts`:
- Around line 120-122: Verify the provider contract at gonka24.com and update
the inputPrice, cachedInputPrice, and outputPrice values for the MiniMax M2.7
mapping in packages/models/src/models/minimax.ts:120-122 and the Kimi K2.6
mapping in packages/models/src/models/moonshot.ts:463-465; ensure both mappings
use the confirmed rates, including a verified cached-input rate.
In `@packages/models/src/providers.ts`:
- Around line 1546-1549: Update Gonka24’s provider metadata entries for
termsUrl, privacyPolicyUrl, and dataPolicy to expose the published legal and
privacy links, using gonka24.com’s Terms and Privacy pages where applicable;
leave only genuinely unknown policy fields null and keep headquarters unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 8aa79c78-404c-4a8c-8548-f2308a9637ab
📒 Files selected for processing (9)
.env.example.github/workflows/e2e.ymlapps/gateway/src/chat/tools/transform-streaming-to-openai.tsapps/ui/src/components/provider-keys/provider-logo.tspackages/actions/src/get-provider-endpoint.tspackages/models/src/models/minimax.tspackages/models/src/models/moonshot.tspackages/models/src/providers.tspackages/shared/src/components/provider-icons.tsx
| inputPrice: "0.08e-6", | ||
| cachedInputPrice: "0.017e-6", | ||
| outputPrice: "0.32e-6", |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Gonka24 pricing is inconsistent across both model mappings.
The published Gonka24 rates materially differ from both mappings, so align the gateway’s billing data with the provider contract before release. Cached-input rates also require a verified source. (gonka24.com)
packages/models/src/models/minimax.ts#L120-L122: confirm or update MiniMax M2.7 input, cached-input, and output prices.packages/models/src/models/moonshot.ts#L463-L465: confirm or update Kimi K2.6 input, cached-input, and output prices.
📍 Affects 2 files
packages/models/src/models/minimax.ts#L120-L122(this comment)packages/models/src/models/moonshot.ts#L463-L465
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@packages/models/src/models/minimax.ts` around lines 120 - 122, Verify the
provider contract at gonka24.com and update the inputPrice, cachedInputPrice,
and outputPrice values for the MiniMax M2.7 mapping in
packages/models/src/models/minimax.ts:120-122 and the Kimi K2.6 mapping in
packages/models/src/models/moonshot.ts:463-465; ensure both mappings use the
confirmed rates, including a verified cached-input rate.
| termsUrl: null, | ||
| privacyPolicyUrl: null, | ||
| headquarters: null, | ||
| dataPolicy: null, |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Expose Gonka24’s legal and privacy metadata.
termsUrl, privacyPolicyUrl, and dataPolicy are all null, so users cannot review the provider’s terms or data handling before sending prompts. Populate the published Terms and Privacy links, and keep only genuinely unknown policy fields unset. (gonka24.com)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@packages/models/src/providers.ts` around lines 1546 - 1549, Update Gonka24’s
provider metadata entries for termsUrl, privacyPolicyUrl, and dataPolicy to
expose the published legal and privacy links, using gonka24.com’s Terms and
Privacy pages where applicable; leave only genuinely unknown policy fields null
and keep headquarters unchanged.
## Summary Three related marketing-surface updates: **SCX.ai "Up to 4x faster" badge on model cards** (https://llmgateway.io/providers/scx-ai) - New optional `modelCardBadge` field on `ProviderDefinition` (data-driven — any provider can carry one), set to `"Up to 4x faster"` on `scx-ai`. - Rendered in the shared model card's provider header as an amber Zap badge, next to the provider name. Plumbed through the shared `ApiProvider` type and the provider detail page's catalogue conversion. **Theme-aware SCX logo** - The SCX wordmark SVG hardcoded `fill="#262626"`, making it near-invisible in dark mode. All four fills now use `currentColor`, so it renders black in light mode and white in dark mode (matching the pattern used by the other monochrome provider icons). **Changelog: July roundup** (`/changelog/upgrade-rollover-new-providers`) - New entry (id 67) covering everything user-facing since the Jul 16 Reset Passes entry: DevPass upgrade rollover + upgrade-timing choice (theopenco#3147), SCX.ai (theopenco#2958) and Gonka24 (theopenco#3189) providers, Nebius mappings (theopenco#3187), Gemini 3.6 Flash / 3.5 Flash Lite (theopenco#3164), Gemini TTS on two providers (theopenco#3143), the Empryo coding agent (theopenco#3161), and the new request-timeouts docs page (theopenco#3190). - OG image generated with gpt-image-2 in the house circuit-board style. ## Testing - Full `pnpm build` passes (validates the changelog frontmatter against the content-collections schema and typechecks the badge plumbing). - Verified live on the dev server: badge renders on every SCX model card in both themes, and the logo is black-on-light / white-on-dark (screenshots shared in session). https://claude.ai/code/session_01UGktbNs7a35FU1k2ooKfaB <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added provider badges to model cards, including an “Up to 4x faster” badge for SCX.ai. * Added new inference providers and expanded model availability, including Gemini models and Gemini TTS. * Upgrade credits can roll over, with immediate or next-renewal upgrade options. * Added Empryo coding-agent usage attribution and request-timeout documentation. * **Style** * Improved provider icon coloring for better theme compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Luca Steeb <contact@luca-steeb.com>
Add the Gonka24 OpenAI-compatible inference provider serving Kimi K2.6 and MiniMax M2.7.
Changes
gonka24provider (envLLM_GONKA_24_API_KEY, basehttps://api.gonka24.com), its logo, base-URL map entry, and streaming transform case.gonka24mappings forkimi-k2.6andminimax-m2.7. Both return reasoning via a separate field and clean JSON, so no tag-splitting or reasoning/JSON workarounds are needed..env.exampleand the e2e CI workflow.Pricing
End-user prices are set roughly 3× below OpenRouter's list price for each model:
Testing
FULL_MODE=true) for both mappings: 82 passed, 0 failed — basic, streaming, reasoning, reasoning+streaming, reasoning+tools, tool calls, streaming tool calls, tool-call results, JSON, JSON streaming, empty-response.TEST_CACHE_MODE=true): both pass — repeat identical requests reportcached_tokensbilled atcachedInputPrice(verified 2016/2016 tokens for kimi, 2020/2020 for minimax on the second request).pnpm formatclean;pnpm build17/17.🤖 Generated with Claude Code
Summary by CodeRabbit