Skip to content

feat(models): add gonka24 provider - #3189

Merged
steebchen merged 1 commit into
mainfrom
add-gonka24-provider
Jul 22, 2026
Merged

steebchen merged 1 commit into
mainfrom
add-gonka24-provider

Conversation

@steebchen

@steebchen steebchen commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Add the Gonka24 OpenAI-compatible inference provider serving Kimi K2.6 and MiniMax M2.7.

Changes

  • Register the gonka24 provider (env LLM_GONKA_24_API_KEY, base https://api.gonka24.com), its logo, base-URL map entry, and streaming transform case.
  • Add gonka24 mappings for kimi-k2.6 and minimax-m2.7. Both return reasoning via a separate field and clean JSON, so no tag-splitting or reasoning/JSON workarounds are needed.
  • Wire the env key into .env.example and the e2e CI workflow.

Pricing

End-user prices are set roughly 3× below OpenRouter's list price for each model:

Model Input ($/M) Cached ($/M) Output ($/M)
Kimi K2.6 0.220 0.048 1.137
MiniMax M2.7 0.080 0.017 0.320

Testing

  • Full gateway chat e2e suite (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.
  • Prompt caching (TEST_CACHE_MODE=true): both pass — repeat identical requests report cached_tokens billed at cachedInputPrice (verified 2016/2016 tokens for kimi, 2020/2020 for minimax on the second request).
  • pnpm format clean; pnpm build 17/17.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for the Gonka24 AI provider.
    • Added Gonka24 configuration, branding, and default connectivity settings.
    • Added Gonka24 as a provider for MiniMax M2.7 and Kimi K2.6 models.
    • Enabled streaming, cancellation, tool use, reasoning, and JSON output where supported.
  • Documentation
    • Added the Gonka24 API key placeholder to the environment configuration example.

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>
Copilot AI review requested due to automatic review settings July 22, 2026 18:49
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@steebchen
steebchen enabled auto-merge July 22, 2026 18:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Adds Gonka24 as a supported provider with API configuration, endpoint resolution, two model entries, streaming transformation, E2E secret wiring, and UI icon registrations.

Changes

Gonka24 provider integration

Layer / File(s) Summary
Provider registration and endpoint configuration
.env.example, .github/workflows/e2e.yml, packages/models/src/providers.ts, packages/actions/src/get-provider-endpoint.ts
Registers Gonka24 with its API key environment variable, default endpoint, provider capabilities, website, and E2E secret wiring.
Model provider entries
packages/models/src/models/minimax.ts, packages/models/src/models/moonshot.ts
Adds Gonka24 configurations for minimax-m2.7 and kimi-k2.6, including pricing, limits, and capabilities.
Runtime streaming and provider presentation
apps/gateway/src/chat/tools/transform-streaming-to-openai.ts, apps/ui/src/components/provider-keys/provider-logo.ts, packages/shared/src/components/provider-icons.tsx
Adds Gonka24 to streaming transformation dispatch and registers its SVG icon and logo mappings.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: copilot, analogpvt

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding the gonka24 provider and related model/config support.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-gonka24-provider

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.yml

Traceback (most recent call last):
File "/usr/local/bin/checkov", line 2, in
from checkov.main import Checkov
ModuleNotFoundError: No module named 'checkov'


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between a8157bd and b295f39.

📒 Files selected for processing (9)
  • .env.example
  • .github/workflows/e2e.yml
  • apps/gateway/src/chat/tools/transform-streaming-to-openai.ts
  • apps/ui/src/components/provider-keys/provider-logo.ts
  • packages/actions/src/get-provider-endpoint.ts
  • packages/models/src/models/minimax.ts
  • packages/models/src/models/moonshot.ts
  • packages/models/src/providers.ts
  • packages/shared/src/components/provider-icons.tsx

Comment on lines +120 to +122
inputPrice: "0.08e-6",
cachedInputPrice: "0.017e-6",
outputPrice: "0.32e-6",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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.

Comment on lines +1546 to +1549
termsUrl: null,
privacyPolicyUrl: null,
headquarters: null,
dataPolicy: null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 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.

@steebchen
steebchen added this pull request to the merge queue Jul 22, 2026
Merged via the queue into main with commit c94e510 Jul 22, 2026
22 of 23 checks passed
@steebchen
steebchen deleted the add-gonka24-provider branch July 22, 2026 19:10
pull Bot pushed a commit to soitun/llmgateway that referenced this pull request Jul 23, 2026
## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants