The open source coding agent.
TypeScript
zen: filter out alpha models
Frank901aae09f733
diff --git a/packages/console/app/src/routes/workspace/[id]/model-section.tsx b/packages/console/app/src/routes/workspace/[id]/model-section.tsxindex 4dea0b9822d..964f7dacb0f 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">