Skip to content

Commit f52cbb2

Browse files
committed
fix(ai-gateway): keep auto frontier active
1 parent df1967c commit f52cbb2

5 files changed

Lines changed: 33 additions & 11 deletions

File tree

apps/storybook/stories/claw/AutoModelPicker.stories.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type { ModelOption } from '@/components/shared/ModelCombobox';
55
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
66

77
const SAMPLE_MODELS: ModelOption[] = [
8+
{ id: 'kilo-auto/frontier', name: 'Auto Frontier' },
89
{ id: 'kilo-auto/efficient', name: 'Auto Efficient' },
9-
{ id: 'kilo-auto/frontier', name: 'Auto Frontier (deprecated)' },
1010
{ id: 'kilo-auto/balanced', name: 'Auto Balanced (deprecated)' },
1111
{ id: 'anthropic/claude-opus-4.6', name: 'Anthropic: Claude Opus 4.6' },
1212
{ id: 'anthropic/claude-sonnet-4.5', name: 'Anthropic: Claude Sonnet 4.5' },
@@ -23,7 +23,7 @@ const meta: Meta<typeof AutoModelPicker> = {
2323
},
2424
args: {
2525
models: SAMPLE_MODELS,
26-
value: 'kilo-auto/efficient',
26+
value: 'kilo-auto/frontier',
2727
},
2828
decorators: [
2929
Story => (
@@ -49,6 +49,12 @@ const meta: Meta<typeof AutoModelPicker> = {
4949
export default meta;
5050
type Story = StoryObj<typeof meta>;
5151

52+
export const FrontierSelected: Story = {
53+
args: {
54+
value: 'kilo-auto/frontier',
55+
},
56+
};
57+
5258
export const EfficientSelected: Story = {
5359
args: {
5460
value: 'kilo-auto/efficient',

apps/web/src/app/(app)/claw/components/AutoModelPicker.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use client';
22

33
import { useMemo, useState } from 'react';
4-
import { CheckCircle2, ChevronDown, Scale } from 'lucide-react';
4+
import { CheckCircle2, ChevronDown, Scale, Zap } from 'lucide-react';
55
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible';
66
import { ModelCombobox, type ModelOption } from '@/components/shared/ModelCombobox';
77
import { cn } from '@/lib/utils';
8-
import { KILO_AUTO_EFFICIENT_MODEL } from '@/lib/ai-gateway/auto-model';
8+
import { KILO_AUTO_EFFICIENT_MODEL, KILO_AUTO_FRONTIER_MODEL } from '@/lib/ai-gateway/auto-model';
99

10-
const AUTO_CARD_MODEL_IDS = new Set([KILO_AUTO_EFFICIENT_MODEL.id]);
10+
const AUTO_CARD_MODEL_IDS = new Set([KILO_AUTO_FRONTIER_MODEL.id, KILO_AUTO_EFFICIENT_MODEL.id]);
1111

1212
type CostLevel = 0 | 1 | 2 | 3;
1313
type PerformanceLevel = 1 | 2 | 3;
@@ -16,7 +16,7 @@ type AutoModelCard = {
1616
id: string;
1717
label: string;
1818
description: string;
19-
icon: typeof Scale;
19+
icon: typeof Zap;
2020
iconBg: string;
2121
iconColor: string;
2222
cost: CostLevel;
@@ -25,6 +25,17 @@ type AutoModelCard = {
2525
};
2626

2727
const autoModelCards: AutoModelCard[] = [
28+
{
29+
id: KILO_AUTO_FRONTIER_MODEL.id,
30+
label: 'Frontier',
31+
description: KILO_AUTO_FRONTIER_MODEL.description,
32+
icon: Zap,
33+
iconBg: 'bg-purple-500/20',
34+
iconColor: 'text-purple-400',
35+
cost: 3,
36+
performance: 3,
37+
performanceDotColor: 'bg-purple-400',
38+
},
2839
{
2940
id: KILO_AUTO_EFFICIENT_MODEL.id,
3041
label: 'Efficient',
@@ -118,7 +129,7 @@ export function AutoModelPicker({
118129
<legend className="text-muted-foreground pr-2 text-xs font-semibold tracking-wider uppercase">
119130
Kilo Auto
120131
</legend>
121-
<div className="grid grid-cols-1 gap-3">
132+
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
122133
{availableAutoCards.map(card => {
123134
const selected = value === card.id;
124135
const Icon = card.icon;

apps/web/src/lib/ai-gateway/auto-model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const BALANCED_QWEN_MODEL: ResolvedAutoModel = {
9090

9191
export const KILO_AUTO_FRONTIER_MODEL: AutoModel = {
9292
id: 'kilo-auto/frontier',
93-
name: 'Auto Frontier (deprecated)',
93+
name: 'Auto Frontier',
9494
description: 'Highest performance and capability for any task.',
9595
context_length: 1_000_000,
9696
max_completion_tokens: 128_000,

apps/web/src/lib/ai-gateway/models.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
* Utility functions for working with AI models
33
*/
44

5-
import { KILO_AUTO_EFFICIENT_MODEL, KILO_AUTO_FREE_MODEL } from '@/lib/ai-gateway/auto-model';
5+
import {
6+
KILO_AUTO_EFFICIENT_MODEL,
7+
KILO_AUTO_FREE_MODEL,
8+
KILO_AUTO_FRONTIER_MODEL,
9+
} from '@/lib/ai-gateway/auto-model';
610
import {
711
claude_opus_4_8_stealth_model,
812
claude_opus_4_7_stealth_model,
@@ -79,6 +83,7 @@ export function selectAutoFreeCandidate(
7983
}
8084

8185
export const preferredModels = [
86+
KILO_AUTO_FRONTIER_MODEL.id,
8287
KILO_AUTO_EFFICIENT_MODEL.id,
8388
KILO_AUTO_FREE_MODEL.id,
8489

apps/web/src/lib/bot/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { KILO_AUTO_EFFICIENT_MODEL, KILO_AUTO_SMALL_MODEL } from '@/lib/ai-gateway/auto-model';
1+
import { KILO_AUTO_FRONTIER_MODEL, KILO_AUTO_SMALL_MODEL } from '@/lib/ai-gateway/auto-model';
22

33
export const BOT_VERSION = '5.1.0';
44
export const BOT_USER_AGENT = `Kilo-Code/${BOT_VERSION}`;
5-
export const DEFAULT_BOT_MODEL = KILO_AUTO_EFFICIENT_MODEL.id;
5+
export const DEFAULT_BOT_MODEL = KILO_AUTO_FRONTIER_MODEL.id;
66
export const MAX_ITERATIONS = 5;
77
export const BOT_CONTEXT_MESSAGE_LIMIT = 12;
88
export const SUMMARY_MODEL = KILO_AUTO_SMALL_MODEL.id;

0 commit comments

Comments
 (0)