Skip to content

Feature: add new provider AIHubmix#5648

Merged
kevinvandijk merged 17 commits intoKilo-Org:mainfrom
AIhubmix:feature-aihubmix
Feb 21, 2026
Merged

Feature: add new provider AIHubmix#5648
kevinvandijk merged 17 commits intoKilo-Org:mainfrom
AIhubmix:feature-aihubmix

Conversation

@DDU1222
Copy link
Copy Markdown

@DDU1222 DDU1222 commented Feb 4, 2026

Context

Implementation

Screenshots

before after

How to Test

Get in Touch

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 4, 2026

🦋 Changeset detected

Latest commit: af395f8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

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

Hi! This has some merge conflicts right now and failing tests. Can you look at that?

@DDU1222
Copy link
Copy Markdown
Author

DDU1222 commented Feb 18, 2026

Hi! Thanks for letting me know! I've addressed both issues:

Rebased on the latest main branch and resolved all merge conflicts.
Fixed the failing unit tests.
All checks should be green now. Would you mind taking another look and merging it if everything looks good? Really appreciate your time! 🙏

@DDU1222 DDU1222 requested a review from kevinvandijk February 18, 2026 16:27
Copy link
Copy Markdown
Contributor

@kevinvandijk kevinvandijk left a comment

Choose a reason for hiding this comment

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

Thanks for addressing! It seems unfortunately that there is a conflict now. I don't have permission on this branch to push to it, otherwise I'd resolve it for you to get this merged :). Can I ask you to check into this still?

@DDU1222 DDU1222 requested a review from kevinvandijk February 20, 2026 15:43
Comment thread src/api/providers/aihubmix.ts
Comment thread src/api/providers/fetchers/aihubmix.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Feb 20, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
N/A N/A Missing unit tests for AihubmixHandler (src/api/providers/aihubmix.ts) and getAihubmixModels (src/api/providers/fetchers/aihubmix.ts). Similar providers (e.g., Apertis) have corresponding .spec.ts files. The handler's routeModel() delegation logic and the fetcher's model parsing/feature detection are non-trivial and should have test coverage.
Other Observations (not in diff)

Issues found in new/unchanged code that warrant attention:

File Line Issue
src/api/providers/__tests__/ N/A No aihubmix.spec.ts exists. The AihubmixHandler has complex routing logic (routeModel()) that delegates to 4 different handlers (Anthropic, Gemini, OpenAI, OpenAI Responses) based on model ID prefixes. This routing logic, handler caching, and getModel() override should be tested.
src/api/providers/fetchers/__tests__/ N/A No aihubmix.spec.ts exists for the fetcher. The getAihubmixModels() function parses API responses, extracts features, determines supportsPromptCache via pricing comparison, and handles thinking_config. These code paths should be tested.
Files Reviewed (59 files)
  • .changeset/khaki-seals-hunt.md - changeset
  • apps/kilocode-docs/pages/ai-providers/aihubmix.md - new documentation
  • docs/plans/2026-01-20-apertis-provider-design.md - formatting only
  • packages/types/src/provider-settings.ts - schema additions
  • packages/types/src/providers/aihubmix.ts - new type definitions
  • packages/types/src/providers/fireworks.ts - formatting only
  • packages/types/src/providers/index.ts - export addition
  • src/api/index.ts - handler registration
  • src/api/providers/__tests__/moonshot.spec.ts - formatting only
  • src/api/providers/aihubmix.ts - new provider handler
  • src/api/providers/chutes.ts - formatting only
  • src/api/providers/fetchers/aihubmix.ts - new model fetcher
  • src/api/providers/fetchers/modelCache.ts - cache integration
  • src/api/providers/fetchers/zenmux.ts - formatting only
  • src/api/providers/index.ts - export addition
  • src/api/providers/kilocode-openrouter.ts - formatting only
  • src/api/transform/ai-sdk.ts - formatting only
  • src/core/webview/__tests__/ClineProvider.spec.ts - test updates
  • src/core/webview/__tests__/webviewMessageHandler.spec.ts - test updates
  • src/core/webview/webviewMessageHandler.ts - router model fetching
  • src/services/autocomplete/AutocompleteServiceManager.ts - formatting only
  • src/services/autocomplete/classic-auto-complete/HoleFiller.ts - formatting only
  • src/shared/api.ts - dynamic provider extras
  • src/test-llm-autocompletion/mock-context-provider.ts - formatting only
  • webview-ui/src/components/chat/hooks/useChatAutocompleteText.ts - formatting only
  • webview-ui/src/components/kilocode/hooks/__tests__/getModelsByProvider.spec.ts - test updates
  • webview-ui/src/components/kilocode/hooks/useProviderModels.ts - model picker integration
  • webview-ui/src/components/kilocode/settings/AutocompleteServiceSettings.tsx - formatting only
  • webview-ui/src/components/kilocode/settings/__tests__/AutocompleteServiceSettings.spec.tsx - formatting only
  • webview-ui/src/components/settings/ApiOptions.tsx - UI integration
  • webview-ui/src/components/settings/ModelPicker.tsx - model ID key
  • webview-ui/src/components/settings/constants.ts - provider list
  • webview-ui/src/components/settings/providers/Aihubmix.tsx - new settings component
  • webview-ui/src/components/settings/providers/index.ts - export addition
  • webview-ui/src/components/ui/hooks/useSelectedModel.ts - model selection
  • webview-ui/src/context/ExtensionStateContext.tsx - formatting only
  • webview-ui/src/i18n/locales/*/settings.json - 23 locale files with translations
  • webview-ui/src/utils/__tests__/validate.spec.ts - test updates
  • webview-ui/src/utils/costFormatting.ts - formatting only

Fix these issues in Kilo Cloud

Comment thread webview-ui/src/i18n/locales/sk/settings.json Outdated
@DDU1222
Copy link
Copy Markdown
Author

DDU1222 commented Feb 20, 2026

Hi! I've rebased again to resolve the conflicts and also fixed some missing translations. Should be all clean now. Please let me know if there are any other issues — happy to address them quickly. Thanks for your patience! 🙏

Comment thread src/api/providers/aihubmix.ts Outdated
Comment thread packages/types/src/providers/aihubmix.ts Outdated
Comment thread packages/types/src/providers/aihubmix.ts Outdated
@kevinvandijk
Copy link
Copy Markdown
Contributor

Hi! I've rebased again to resolve the conflicts and also fixed some missing translations. Should be all clean now. Please let me know if there are any other issues — happy to address them quickly. Thanks for your patience! 🙏

Thank you!!

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