Repository navigation
Commit 0894de1
authored
fix(ai): build from the committed model catalog instead of refetching it (PrimeIntellect-ai#2038)
`npm run build` in packages/ai ran `generate-models` on every build, fetching
the live model catalog and rewriting `src/models.generated.ts` in place. When
an upstream source drops a model that the repo still references (currently
claude-sonnet-4.5, 28 references), every CI run fails `Build and check` and
`Test (ai)` regardless of the PR's content, and release builds
(build-binaries.yml) ship a catalog nobody reviewed.
Build now compiles the committed catalog only. Refreshing the catalog stays an
explicit, reviewed step: `npm run generate-models`. The generated file is the
script's only output and is committed, so clean checkouts build and test
without network access to the catalog sources.
Linear: RES-12691 parent bf8894a commit 0894de1
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments