diff --git a/infra/console.ts b/infra/console.ts index 4e5a14b04..908905582 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -145,6 +145,16 @@ const ZEN_MODELS = [ new sst.Secret("ZEN_MODELS18"), new sst.Secret("ZEN_MODELS19"), new sst.Secret("ZEN_MODELS20"), + new sst.Secret("ZEN_MODELS21"), + new sst.Secret("ZEN_MODELS22"), + new sst.Secret("ZEN_MODELS23"), + new sst.Secret("ZEN_MODELS24"), + new sst.Secret("ZEN_MODELS25"), + new sst.Secret("ZEN_MODELS26"), + new sst.Secret("ZEN_MODELS27"), + new sst.Secret("ZEN_MODELS28"), + new sst.Secret("ZEN_MODELS29"), + new sst.Secret("ZEN_MODELS30"), ] const STRIPE_SECRET_KEY = new sst.Secret("STRIPE_SECRET_KEY") const STRIPE_PUBLISHABLE_KEY = new sst.Secret("STRIPE_PUBLISHABLE_KEY") diff --git a/packages/console/core/script/promote-models.ts b/packages/console/core/script/promote-models.ts index 17715bedf..aa9f20abc 100755 --- a/packages/console/core/script/promote-models.ts +++ b/packages/console/core/script/promote-models.ts @@ -9,7 +9,7 @@ const stage = process.argv[2] if (!stage) throw new Error("Stage is required") const root = path.resolve(process.cwd(), "..", "..", "..") -const PARTS = 20 +const PARTS = 30 // read the secret const ret = await $`bun sst secret list`.cwd(root).text() diff --git a/packages/console/core/script/update-models.ts b/packages/console/core/script/update-models.ts index 9025a6526..6d7f7662a 100755 --- a/packages/console/core/script/update-models.ts +++ b/packages/console/core/script/update-models.ts @@ -7,7 +7,7 @@ import { ZenData } from "../src/model" const root = path.resolve(process.cwd(), "..", "..", "..") const models = await $`bun sst secret list`.cwd(root).text() -const PARTS = 20 +const PARTS = 30 // read the line starting with "ZEN_MODELS" const lines = models.split("\n") diff --git a/packages/console/core/src/model.ts b/packages/console/core/src/model.ts index da2677844..6011cac37 100644 --- a/packages/console/core/src/model.ts +++ b/packages/console/core/src/model.ts @@ -102,7 +102,17 @@ export namespace ZenData { Resource.ZEN_MODELS17.value + Resource.ZEN_MODELS18.value + Resource.ZEN_MODELS19.value + - Resource.ZEN_MODELS20.value, + Resource.ZEN_MODELS20.value + + Resource.ZEN_MODELS21.value + + Resource.ZEN_MODELS22.value + + Resource.ZEN_MODELS23.value + + Resource.ZEN_MODELS24.value + + Resource.ZEN_MODELS25.value + + Resource.ZEN_MODELS26.value + + Resource.ZEN_MODELS27.value + + Resource.ZEN_MODELS28.value + + Resource.ZEN_MODELS29.value + + Resource.ZEN_MODELS30.value, ) const { models, providers, providerFamilies } = ModelsSchema.parse(json) return { diff --git a/packages/console/core/sst-env.d.ts b/packages/console/core/sst-env.d.ts index fea908213..737af71d4 100644 --- a/packages/console/core/sst-env.d.ts +++ b/packages/console/core/sst-env.d.ts @@ -181,10 +181,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string diff --git a/packages/console/function/sst-env.d.ts b/packages/console/function/sst-env.d.ts index fea908213..737af71d4 100644 --- a/packages/console/function/sst-env.d.ts +++ b/packages/console/function/sst-env.d.ts @@ -181,10 +181,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string diff --git a/packages/console/resource/sst-env.d.ts b/packages/console/resource/sst-env.d.ts index fea908213..737af71d4 100644 --- a/packages/console/resource/sst-env.d.ts +++ b/packages/console/resource/sst-env.d.ts @@ -181,10 +181,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string diff --git a/packages/enterprise/sst-env.d.ts b/packages/enterprise/sst-env.d.ts index fea908213..737af71d4 100644 --- a/packages/enterprise/sst-env.d.ts +++ b/packages/enterprise/sst-env.d.ts @@ -181,10 +181,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string diff --git a/packages/function/sst-env.d.ts b/packages/function/sst-env.d.ts index fea908213..737af71d4 100644 --- a/packages/function/sst-env.d.ts +++ b/packages/function/sst-env.d.ts @@ -181,10 +181,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string diff --git a/sst-env.d.ts b/sst-env.d.ts index f87d4d603..b2ae76356 100644 --- a/sst-env.d.ts +++ b/sst-env.d.ts @@ -207,10 +207,50 @@ declare module "sst" { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS21": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS22": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS23": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS24": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS25": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS26": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS27": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS28": { + "type": "sst.sst.Secret" + "value": string + } + "ZEN_MODELS29": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS3": { "type": "sst.sst.Secret" "value": string } + "ZEN_MODELS30": { + "type": "sst.sst.Secret" + "value": string + } "ZEN_MODELS4": { "type": "sst.sst.Secret" "value": string