fix: ensure variants also work for completely custom models (#6481)
Co-authored-by: Daniel Smolsky <dannysmo@gmail.com>
This commit is contained in:
parent
3fe5d91372
commit
81fef60266
10 changed files with 955 additions and 27 deletions
|
|
@ -60,6 +60,7 @@ export namespace ModelsDev {
|
|||
options: z.record(z.string(), z.any()),
|
||||
headers: z.record(z.string(), z.string()).optional(),
|
||||
provider: z.object({ npm: z.string() }).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