Revert: feat: add models.dev schema ref for model autocomplete in ope… (#12242)

This commit is contained in:
Aiden Cline
2026-02-05 00:31:08 -06:00
committed by GitHub
parent d3a247bfff
commit 8c8d888140
3 changed files with 20 additions and 20 deletions

View File

@@ -35,8 +35,6 @@ import { iife } from "@/util/iife"
export namespace Config {
const log = Log.create({ service: "config" })
const ModelRef = { $ref: "https://models.dev/model-schema.json#/$defs/Model" }
// Managed settings directory for enterprise deployments (highest priority, admin-controlled)
// These settings override all user and project settings
function getManagedConfigDir(): string {
@@ -662,7 +660,7 @@ export namespace Config {
template: z.string(),
description: z.string().optional(),
agent: z.string().optional(),
model: z.string().optional().meta(ModelRef),
model: z.string().optional(),
subtask: z.boolean().optional(),
})
export type Command = z.infer<typeof Command>
@@ -674,7 +672,7 @@ export namespace Config {
export const Agent = z
.object({
model: z.string().optional().meta(ModelRef),
model: z.string().optional(),
variant: z
.string()
.optional()
@@ -1045,16 +1043,11 @@ export namespace Config {
.array(z.string())
.optional()
.describe("When set, ONLY these providers will be enabled. All other providers will be ignored"),
model: z
.string()
.describe("Model to use in the format of provider/model, eg anthropic/claude-2")
.optional()
.meta(ModelRef),
model: z.string().describe("Model to use in the format of provider/model, eg anthropic/claude-2").optional(),
small_model: z
.string()
.describe("Small model to use for tasks like title generation in the format of provider/model")
.optional()
.meta(ModelRef),
.optional(),
default_agent: z
.string()
.optional()