This commit is contained in:
Frank
2025-10-11 15:07:06 -04:00
parent 9a6fd6a5ee
commit 89fcfcc50b
2 changed files with 3 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ const getModelsInfo = query(async (workspaceID: string) => {
return withActor(async () => { return withActor(async () => {
return { return {
all: Object.keys(ZenModel.list()) all: Object.keys(ZenModel.list())
.filter((model) => !["claude-3-5-haiku", "glm-4.6", "qwen3-max"].includes(model)) .filter((model) => !["claude-3-5-haiku", "qwen3-max"].includes(model))
.sort(([a], [b]) => a.localeCompare(b)), .sort(([a], [b]) => a.localeCompare(b)),
disabled: await Model.listDisabled(), disabled: await Model.listDisabled(),
} }
@@ -66,7 +66,7 @@ export function ModelSection() {
const isEnabled = createMemo(() => !modelsInfo()!.disabled.includes(modelId)) const isEnabled = createMemo(() => !modelsInfo()!.disabled.includes(modelId))
return ( return (
<tr data-slot="model-row" data-disabled={!isEnabled()}> <tr data-slot="model-row" data-disabled={!isEnabled()}>
<td data-slot="model-name">{modelId}</td> <td data-slot="model-name">{ZenModel.list()[modelId].name}</td>
<td data-slot="model-toggle"> <td data-slot="model-toggle">
<form action={updateModel} method="post"> <form action={updateModel} method="post">
<input type="hidden" name="model" value={modelId} /> <input type="hidden" name="model" value={modelId} />

View File

@@ -17,6 +17,7 @@ export namespace ZenModel {
}) })
export const ModelSchema = z.object({ export const ModelSchema = z.object({
name: z.string(),
cost: ModelCostSchema, cost: ModelCostSchema,
cost200K: ModelCostSchema.optional(), cost200K: ModelCostSchema.optional(),
allowAnonymous: z.boolean().optional(), allowAnonymous: z.boolean().optional(),