From 460c87b1c37f2151c21832927958112034b3c6f8 Mon Sep 17 00:00:00 2001 From: Mike Hostetler <84222+mikehostetler@users.noreply.github.com> Date: Fri, 3 Oct 2025 08:26:03 -0500 Subject: [PATCH] Add optional `deprecated` field to model schema and update README documentation --- README.md | 1 + packages/core/src/schema.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 84a11c6f..0f8101fd 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,7 @@ Models must conform to the following schema, as defined in `app/schemas.ts`. - `limit.output`: Number — Maximum output tokens - `modalities.input`: Array of strings — Supported input modalities (e.g., ["text", "image", "audio", "video", "pdf"]) - `modalities.output`: Array of strings — Supported output modalities (e.g., ["text"]) +- `deprecated` _(optional)_: Boolean — Set to true when the provider no longer serves this model via their public API ### Examples diff --git a/packages/core/src/schema.ts b/packages/core/src/schema.ts index e5aa27f6..fc7f498a 100644 --- a/packages/core/src/schema.ts +++ b/packages/core/src/schema.ts @@ -56,6 +56,7 @@ export const Model = z output: z.number().min(0, "Output tokens must be positive"), }), experimental: z.boolean().optional(), + deprecated: z.boolean().optional(), provider: z .object({ npm: z.string().optional(),