diff options
Diffstat (limited to 'packages/console/core/script/update-models.ts')
| -rwxr-xr-x | packages/console/core/script/update-models.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/console/core/script/update-models.ts b/packages/console/core/script/update-models.ts index 6d7f7662a..e426aec1c 100755 --- a/packages/console/core/script/update-models.ts +++ b/packages/console/core/script/update-models.ts @@ -6,7 +6,7 @@ import os from "os" import { ZenData } from "../src/model" const root = path.resolve(process.cwd(), "..", "..", "..") -const models = await $`bun sst secret list`.cwd(root).text() +const models = await $`bun sst secret list --stage frank`.cwd(root).text() const PARTS = 30 // read the line starting with "ZEN_MODELS" @@ -40,4 +40,4 @@ const newValues = Array.from({ length: PARTS }, (_, i) => const envFile = Bun.file(path.join(os.tmpdir(), `models-${Date.now()}.env`)) await envFile.write(newValues.map((v, i) => `ZEN_MODELS${i + 1}="${v.replace(/"/g, '\\"')}"`).join("\n")) -await $`bun sst secret load ${envFile.name}`.cwd(root) +await $`bun sst secret load ${envFile.name} --stage frank`.cwd(root) |
