summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/js/src
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-30 14:37:32 -0800
committerGitHub <[email protected]>2025-12-30 16:37:32 -0600
commit81fef60266b3e5abdc9480e19effa8db411c5eec (patch)
tree413277d60c4726586b2d3cb4496e4a14cd8dd93a /packages/sdk/js/src
parent3fe5d91372fdf859e09ed5a2aefe359e0648ed10 (diff)
downloadopencode-81fef60266b3e5abdc9480e19effa8db411c5eec.tar.gz
opencode-81fef60266b3e5abdc9480e19effa8db411c5eec.zip
fix: ensure variants also work for completely custom models (#6481)
Co-authored-by: Daniel Smolsky <[email protected]>
Diffstat (limited to 'packages/sdk/js/src')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts26
1 files changed, 20 insertions, 6 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 58b44fe17..947636f7c 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -1309,6 +1309,18 @@ export type ProviderConfig = {
provider?: {
npm: string
}
+ /**
+ * Variant-specific configuration
+ */
+ variants?: {
+ [key: string]: {
+ /**
+ * Disable this variant for the model
+ */
+ disabled?: boolean
+ [key: string]: unknown | boolean | undefined
+ }
+ }
}
}
whitelist?: Array<string>
@@ -1717,11 +1729,6 @@ export type Command = {
subtask?: boolean
}
-export type Variant = {
- disabled: boolean
- [key: string]: unknown | boolean
-}
-
export type Model = {
id: string
providerID: string
@@ -1786,7 +1793,9 @@ export type Model = {
}
release_date: string
variants?: {
- [key: string]: Variant
+ [key: string]: {
+ [key: string]: unknown
+ }
}
}
@@ -3497,6 +3506,11 @@ export type ProviderListResponses = {
provider?: {
npm: string
}
+ variants?: {
+ [key: string]: {
+ [key: string]: unknown
+ }
+ }
}
}
}>