Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions src/lib/kilo-auto-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import {
CLAUDE_SONNET_CURRENT_MODEL_ID,
CLAUDE_SONNET_CURRENT_MODEL_NAME,
} from '@/lib/providers/anthropic';
import {
MINIMAX_CURRENT_MODEL_ID,
MINIMAX_CURRENT_MODEL_NAME,
minimax_m25_free_model,
} from '@/lib/providers/minimax';
import { MINIMAX_CURRENT_MODEL_ID, MINIMAX_CURRENT_MODEL_NAME } from '@/lib/providers/minimax';
import { KIMI_CURRENT_MODEL_ID, KIMI_CURRENT_MODEL_NAME } from '@/lib/providers/moonshotai';
import { gpt_oss_20b_free_model, GPT_5_NANO_ID, GPT_5_NANO_NAME } from '@/lib/providers/openai';
import type {
Expand All @@ -21,6 +17,7 @@ import type {
import { requestContainsImages } from '@/lib/providers/openrouter/request-helpers';
import type { ModelSettings, OpenCodeSettings, Verbosity } from '@kilocode/db/schema-types';
import type OpenAI from 'openai';
import { seed_20_pro_free_model } from '@/lib/providers/bytedance';

function stripDisplayName(displayName: string): string {
const start = displayName.indexOf(': ');
Expand Down Expand Up @@ -170,18 +167,15 @@ export const KILO_AUTO_FRONTIER_MODEL: AutoModel = {
export const KILO_AUTO_FREE_MODEL: AutoModel = {
id: 'kilo-auto/free',
name: 'Kilo Auto Free',
description: `Free with limited capability. No credits required. Uses ${stripDisplayName(minimax_m25_free_model.display_name)}.`,
context_length: minimax_m25_free_model.context_length,
max_completion_tokens: minimax_m25_free_model.max_completion_tokens,
description: `Free with limited capability. No credits required. Uses ${stripDisplayName(seed_20_pro_free_model.display_name)}.`,
context_length: seed_20_pro_free_model.context_length,
max_completion_tokens: seed_20_pro_free_model.max_completion_tokens,
prompt_price: '0',
completion_price: '0',
input_cache_read_price: '0',
input_cache_write_price: '0',
supports_images: false,
roocode_settings: {
included_tools: ['search_and_replace'],
excluded_tools: ['apply_diff', 'edit_file'],
},
roocode_settings: undefined,
opencode_settings: undefined,
};

Expand Down Expand Up @@ -238,7 +232,7 @@ export async function resolveAutoModel(
hasImages: boolean
): Promise<ResolvedAutoModel> {
if (model === KILO_AUTO_FREE_MODEL.id) {
return { model: minimax_m25_free_model.public_id };
return { model: seed_20_pro_free_model.public_id };
}
if (model === KILO_AUTO_SMALL_MODEL.id) {
return {
Expand Down
17 changes: 4 additions & 13 deletions src/tests/openrouter-models-sorting.approved.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"id": "kilo-auto/free",
"name": "Kilo Auto Free",
"created": 0,
"description": "Free with limited capability. No credits required. Uses MiniMax M2.5.",
"description": "Free with limited capability. No credits required. Uses Dola Seed 2.0 Pro.",
"architecture": {
"input_modalities": [
"text"
Expand All @@ -110,8 +110,8 @@
},
"top_provider": {
"is_moderated": false,
"context_length": 204800,
"max_completion_tokens": 131072
"context_length": 256000,
"max_completion_tokens": 128000
},
"pricing": {
"prompt": "0",
Expand All @@ -123,23 +123,14 @@
"web_search": "0",
"internal_reasoning": "0"
},
"context_length": 204800,
"context_length": 256000,
"supported_parameters": [
"max_tokens",
"temperature",
"tools",
"reasoning",
"include_reasoning"
],
"settings": {
"included_tools": [
"search_and_replace"
],
"excluded_tools": [
"apply_diff",
"edit_file"
]
},
"opencode": {},
"preferredIndex": 2,
"isFree": true
Expand Down
Loading