mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 12:54:42 +00:00
use string instead of enum
This commit is contained in:
parent
e6a49ed85c
commit
065c2a1e6e
2 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ export namespace ModelsDev {
|
|||
.object({
|
||||
npm: z.string().optional(),
|
||||
api: z.string().optional(),
|
||||
shape: z.enum(["responses", "completions"]).optional(),
|
||||
shape: z.string().optional(),
|
||||
})
|
||||
.optional(),
|
||||
variants: z.record(z.string(), z.record(z.string(), z.any())).optional(),
|
||||
|
|
|
|||
|
|
@ -606,7 +606,7 @@ export namespace Provider {
|
|||
id: z.string(),
|
||||
url: z.string(),
|
||||
npm: z.string(),
|
||||
shape: z.enum(["responses", "completions"]).optional(),
|
||||
shape: z.string().optional(),
|
||||
}),
|
||||
name: z.string(),
|
||||
family: z.string().optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue