Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge main into model-manifest

milind-soni47d3d2e03759
diff --cc server/contracts.ts
index 7180b6d36b,e2c1c0dcca..9ad3e17e3f
--- a/server/contracts.ts
+++ b/server/contracts.ts
@@@ -482,8 -483,7 +483,9 @@@ export interface ModelCatalog
variants?: ModelVariantOption[];
/** The organization of the signed-in account turned this model off: the engine would answer with another. */
orgBlocked?: true;
+ /** The installed CLI is too old for this model: the version it needs. */
+ needsCliUpdate?: string;
+ local?: LocalModelFacts;
}>;
}
diff --cc src/lib/simple-model-menu.ts
index eae3ca1f88,d69d3a4a8e..5c91acfaec
--- a/src/lib/simple-model-menu.ts
+++ b/src/lib/simple-model-menu.ts
@@@ -173,15 -177,19 +178,19 @@@ export function simpleModelMenu(input:
const currentSelection = instance.instanceId === selection.instanceId ? selection : undefined;
const repeated = repeatedModelLabels(all);
const botSelection = bot.follows === false && bot.selection.instanceId === instance.instanceId ? bot.selection : undefined;
- const row = (option: ModelChoice): MenuModelRow => ({
- option,
- ...(option.nativeModel ? { model: option.nativeModel } : {}),
- ...(option.variant ? { variant: option.variant } : {}),
- label: shortModelLabel(modelOptionLabel(option), provider),
- ...(repeated.has(option.label) && option.provider ? { route: option.provider } : {}),
- current: currentSelection ? choiceIsSelected(option, currentSelection) : false,
- blocked: option.orgBlocked === true || option.needsCliUpdate !== undefined,
- });
+ const row = (option: ModelChoice): MenuModelRow => {
+ const detail = localModelDetail(option.local);
+ return {
+ option,
+ ...(option.nativeModel ? { model: option.nativeModel } : {}),
+ ...(option.variant ? { variant: option.variant } : {}),
+ label: shortModelLabel(modelOptionLabel(option), provider),
+ ...(repeated.has(option.label) && option.provider ? { route: option.provider } : {}),
+ ...(detail ? { detail } : {}),
+ current: currentSelection ? choiceIsSelected(option, currentSelection) : false,
- blocked: option.orgBlocked === true,
++ blocked: option.orgBlocked === true || option.needsCliUpdate !== undefined,
+ };
+ };
const mixed = own.length > 0 && own.length < all.length;
if (query) {
const rows = filterCustomModels(all, query).map(row);
diff --cc src/state/store.tsx
index b22b018f38,d40cff1aa4..0aa1e53c06
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@@ -481,7 -481,7 +481,7 @@@ export interface InstanceInfo extends I
aiTest?: import("../../shared/ai-ranking").AiTestState;
/** Why it didn't answer, in plain words, when it said (signed out, a used-up limit…). */
aiTestError?: string;
- models: { default: string; options: Array<{ id: string; label: string; custom?: boolean; loaded?: boolean; provider?: string; variants?: ModelVariantOption[]; orgBlocked?: true; needsCliUpdate?: string }> };
- models: { default: string; options: Array<{ id: string; label: string; custom?: boolean; loaded?: boolean; provider?: string; variants?: ModelVariantOption[]; orgBlocked?: true; local?: import("../../shared/local-model").LocalModelFacts }> };
++ models: { default: string; options: Array<{ id: string; label: string; custom?: boolean; loaded?: boolean; provider?: string; variants?: ModelVariantOption[]; orgBlocked?: true; needsCliUpdate?: string; local?: import("../../shared/local-model").LocalModelFacts }> };
capabilities?: {
computerMcp?: boolean;
agentsMcp?: boolean;