-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Feature: add new provider AIHubmix #5648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
ba1d4ea
add aihubmix
DDU1222 548533e
update price and default model
DDU1222 6ac5d2a
Update aihubmix.ts
DDU1222 f07597d
Merge branch 'main' into feature-aihubmix
DDU1222 7c34eac
Update settings.ts
DDU1222 e1ad813
fix zh to en
DDU1222 11ddd87
Merge branch 'main' into feature-aihubmix
DDU1222 7a5086f
fix. unit test
DDU1222 11a28eb
Update modelCache.ts
DDU1222 ae9d7dd
fix missing translations
DDU1222 6b9d967
Merge branch 'main' into feature-aihubmix
DDU1222 ac76cca
fix: support tools
DDU1222 a0016b6
fix CR
DDU1222 89e8b6b
Update settings.json
DDU1222 019a358
fix CR
DDU1222 c100ccc
fix CR claude-opus-4-5 default model info
DDU1222 af395f8
Update changeset to add AIHubmix feature
kevinvandijk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| sidebar_label: AIhubmix | ||
| --- | ||
|
|
||
| # Using AIhubmix With Kilo Code | ||
|
|
||
| AIhubmix is an AI gateway that provides unified access to multiple AI models from various providers through a single API. It offers competitive pricing and supports features like prompt caching. | ||
|
|
||
| **Website:** [https://aihubmix.com/](https://aihubmix.com/) | ||
|
|
||
| ## Getting an API Key | ||
|
|
||
| 1. **Sign Up/Sign In:** Go to the [AIhubmix website](https://aihubmix.com/) and create an account or sign in. | ||
| 2. **Get API Key:** Go to the [API Keys page](https://console.aihubmix.com/token) to generate an API key. | ||
| 3. **Copy the Key:** Copy the API key. | ||
|
|
||
| ## Configuration in Kilo Code | ||
|
|
||
| 1. **Open Kilo Code Settings:** Click the gear icon ({% codicon name="gear" /%}) in the Kilo Code panel. | ||
| 2. **Select Provider:** Choose "AIhubmix" from the "API Provider" dropdown. | ||
| 3. **Enter API Key:** Paste your AIhubmix API key into the "AIhubmix API Key" field. | ||
| 4. **Select Model:** Choose your desired model from the "Model" dropdown. | ||
|
|
||
| ## Tips and Notes | ||
|
|
||
| - **Model Selection:** AIhubmix offers a wide range of models. Models are sorted by their coding capability score. | ||
| - **Pricing:** AIhubmix charges based on the underlying model's pricing. See the [AIhubmix Models page](https://aihubmix.com/models) for details. | ||
| - **Prompt Caching:** Some models support prompt caching. See the AIhubmix documentation for supported models. |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| // kilocode_change - new file | ||
| // AIhubmix is a dynamic provider, models are fetched from API | ||
| // Only fallback types are defined here | ||
|
|
||
| export type AihubmixModelId = string | ||
|
|
||
| export const aihubmixDefaultModelId = "claude-opus-4-5" | ||
|
|
||
| export const aihubmixDefaultModelInfo = { | ||
| maxTokens: 8192, | ||
| contextWindow: 128000, | ||
| supportsImages: true, | ||
| supportsPromptCache: false, | ||
|
DDU1222 marked this conversation as resolved.
Outdated
|
||
| supportsNativeTools: true, | ||
| defaultToolProtocol: "native" as const, | ||
| inputPrice: 3, | ||
| outputPrice: 15, | ||
| description: "AIhubmix unified model provider", | ||
| } | ||
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.