diff options
| author | Frank <[email protected]> | 2025-11-03 15:04:49 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-11-03 15:04:59 -0500 |
| commit | 901aae09f7330403d87b6ed2145f88467a082572 (patch) | |
| tree | f6c7a1a5a3dce898ca864c5746dfbfe1d8fa55bf /packages/console | |
| parent | f95799f17c855eed5827ed0d6c4af2bad74aa7c4 (diff) | |
| download | opencode-901aae09f7330403d87b6ed2145f88467a082572.tar.gz opencode-901aae09f7330403d87b6ed2145f88467a082572.zip | |
zen: filter out alpha models
Diffstat (limited to 'packages/console')
| -rw-r--r-- | packages/console/app/src/routes/workspace/[id]/model-section.tsx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/console/app/src/routes/workspace/[id]/model-section.tsx b/packages/console/app/src/routes/workspace/[id]/model-section.tsx index 4dea0b982..964f7dacb 100644 --- a/packages/console/app/src/routes/workspace/[id]/model-section.tsx +++ b/packages/console/app/src/routes/workspace/[id]/model-section.tsx @@ -5,7 +5,15 @@ import { withActor } from "~/context/auth.withActor" import { ZenData } from "@opencode-ai/console-core/model.js" import styles from "./model-section.module.css" import { querySessionInfo } from "../common" -import { IconAlibaba, IconAnthropic, IconMoonshotAI, IconOpenAI, IconStealth, IconXai, IconZai } from "~/component/icon" +import { + IconAlibaba, + IconAnthropic, + IconMoonshotAI, + IconOpenAI, + IconStealth, + IconXai, + IconZai, +} from "~/component/icon" const getModelLab = (modelId: string) => { if (modelId.startsWith("claude")) return "Anthropic" @@ -22,8 +30,7 @@ const getModelsInfo = query(async (workspaceID: string) => { return withActor(async () => { return { all: Object.entries(ZenData.list().models) - .filter(([id, _model]) => !["claude-3-5-haiku"].includes(id)) - .filter(([id, _model]) => !id.startsWith("an-")) + .filter(([id, _model]) => !["claude-3-5-haiku", "minimax-m2"].includes(id)) .sort(([_idA, modelA], [_idB, modelB]) => modelA.name.localeCompare(modelB.name)) .map(([id, model]) => ({ id, name: model.name })), disabled: await Model.listDisabled(), @@ -68,7 +75,8 @@ export function ModelSection() { <div data-slot="section-title"> <h2>Models</h2> <p> - Manage which models workspace members can access. <a href="/docs/zen#pricing ">Learn more</a>. + Manage which models workspace members can access.{" "} + <a href="/docs/zen#pricing ">Learn more</a>. </p> </div> <div data-slot="models-list"> |
