Skip to content
Open
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
5 changes: 4 additions & 1 deletion ui/src/components/settings/view/tabs/PilotDeckConfigTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,12 @@ function ModelRefInput({
placeholder?: string;
}) {
const selected = value ?? '';
const noOptionsLabel = options.length === 0
? (placeholder ?? 'No models configured — add a provider first')
: (placeholder ?? 'Select a configured model');
const hasSelected = !selected || options.some((opt) => opt.value === selected);
const selectOptions = [
{ value: '', label: placeholder ?? 'Select a configured model' },
{ value: '', label: noOptionsLabel },
...options,
...(!hasSelected ? [{ value: selected, label: `Missing: ${selected}` }] : []),
];
Expand Down
10 changes: 10 additions & 0 deletions ui/src/shared/catalogProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ export const CATALOG_PROVIDERS: CatalogProvider[] = [
{ id: 'MiniMax-M2.7-highspeed', displayName: 'MiniMax M2.7 Highspeed', maxContextTokens: 1000000 },
],
},
{
id: 'moonshot',
displayName: 'Moonshot AI (Kimi)',
protocol: 'openai',
defaultUrl: 'https://api.moonshot.cn/v1',
models: [
{ id: 'kimi-k2.6', displayName: 'Kimi K2.6', supportsImage: true, maxContextTokens: 262144 },
{ id: 'kimi-k1.5', displayName: 'Kimi K1.5', supportsImage: true, maxContextTokens: 131072 },
],
},
];

export function findCatalogProviderById(id: string): CatalogProvider | undefined {
Expand Down