refactor: split up models.dev and config model definitions to prevent coupling (#20605)
This commit is contained in:
parent
ec3ae17e4d
commit
23c8656080
4 changed files with 70 additions and 26 deletions
|
|
@ -61,12 +61,8 @@ export namespace ModelsDev {
|
|||
output: z.array(z.enum(["text", "audio", "image", "video", "pdf"])),
|
||||
})
|
||||
.optional(),
|
||||
experimental: z.boolean().optional(),
|
||||
status: z.enum(["alpha", "beta", "deprecated"]).optional(),
|
||||
options: z.record(z.string(), z.any()),
|
||||
headers: z.record(z.string(), z.string()).optional(),
|
||||
provider: z.object({ npm: z.string().optional(), api: z.string().optional() }).optional(),
|
||||
variants: z.record(z.string(), z.record(z.string(), z.any())).optional(),
|
||||
})
|
||||
export type Model = z.infer<typeof Model>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue