diff options
| author | Dax Raad <[email protected]> | 2026-01-30 20:38:10 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-30 20:38:10 -0500 |
| commit | 2f4374c829d837697fb7c961c200a6b6f483ce81 (patch) | |
| tree | 144756b84454920ebda68e589bf981b87f5dadfe | |
| parent | 3542f3e406a3d8f53801ec1753107640ccccd7e1 (diff) | |
| parent | f1caf840641e5a98995f14e809ad79b2d7f22eea (diff) | |
| download | opencode-2f4374c829d837697fb7c961c200a6b6f483ce81.tar.gz opencode-2f4374c829d837697fb7c961c200a6b6f483ce81.zip | |
Merge remote dev and apply revert
| -rwxr-xr-x | packages/opencode/script/build.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts index 84a278224..f0b3fa828 100755 --- a/packages/opencode/script/build.ts +++ b/packages/opencode/script/build.ts @@ -14,11 +14,11 @@ process.chdir(dir) import pkg from "../package.json" import { Script } from "@opencode-ai/script" - +const modelsUrl = process.env.OPENCODE_MODELS_URL || "https://models.dev" // Fetch and generate models.dev snapshot const modelsData = process.env.MODELS_DEV_API_JSON ? await Bun.file(process.env.MODELS_DEV_API_JSON).text() - : await fetch(`https://models.dev/api.json`).then((x) => x.text()) + : await fetch(`${modelsUrl}/api.json`).then((x) => x.text()) await Bun.write( path.join(dir, "src/provider/models-snapshot.ts"), `// Auto-generated by build.ts - do not edit\nexport const snapshot = ${modelsData} as const\n`, |
