From 32393f11d7f7680e42120ab2e30d5ca6c6adf9f6 Mon Sep 17 00:00:00 2001 From: Eva Ho Date: Wed, 19 Nov 2025 14:59:29 -0500 Subject: [PATCH] app/ui: add gemini-3-pro-preview to featured list --- app/ui/app/src/api.ts | 2 +- app/ui/app/src/utils/mergeModels.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/ui/app/src/api.ts b/app/ui/app/src/api.ts index a06e4e00b..d4fb9861a 100644 --- a/app/ui/app/src/api.ts +++ b/app/ui/app/src/api.ts @@ -25,7 +25,7 @@ declare module "@/gotypes" { } Model.prototype.isCloud = function (): boolean { - return this.model.endsWith("cloud"); + return this.model.endsWith("cloud") || this.model === "gemini-3-pro-preview"; }; // Helper function to convert Uint8Array to base64 diff --git a/app/ui/app/src/utils/mergeModels.ts b/app/ui/app/src/utils/mergeModels.ts index abbfe00b8..89d68ac97 100644 --- a/app/ui/app/src/utils/mergeModels.ts +++ b/app/ui/app/src/utils/mergeModels.ts @@ -4,6 +4,7 @@ import { Model } from "@/gotypes"; export const FEATURED_MODELS = [ "gpt-oss:120b-cloud", "gpt-oss:20b-cloud", + "gemini-3-pro-preview", "deepseek-v3.1:671b-cloud", "qwen3-coder:480b-cloud", "qwen3-vl:235b-cloud", @@ -40,7 +41,9 @@ export function mergeModels( const cloudModels = [...allModels.filter((m) => m.isCloud())]; // Add any cloud models from FEATURED_MODELS that aren't in local models - FEATURED_MODELS.filter((f) => f.endsWith("cloud")).forEach((cloudModel) => { + FEATURED_MODELS.filter( + (f) => f.endsWith("cloud") || f === "gemini-3-pro-preview", + ).forEach((cloudModel) => { if (!cloudModels.some((m) => m.model === cloudModel)) { cloudModels.push(new Model({ model: cloudModel })); } @@ -48,7 +51,7 @@ export function mergeModels( // 2. Get other featured models (non-cloud) const featuredModels = FEATURED_MODELS.filter( - (f) => !f.endsWith("cloud"), + (f) => !f.endsWith("cloud") && f !== "gemini-3-pro-preview", ).map((model) => { // Check if this model exists in local models const localMatch = allModels.find(