Skip to content

Remove endpoint URL generation from fetch-models script#19

Merged
williamw merged 4 commits intomasterfrom
MKT-88-save-images
Mar 17, 2026
Merged

Remove endpoint URL generation from fetch-models script#19
williamw merged 4 commits intomasterfrom
MKT-88-save-images

Conversation

@williamw
Copy link
Contributor

  • Removes per-model endpoint URL generation — all models now use api.modular.com
  • Removes fetchEndpoint(), toSubdomain(), API_DOMAIN constant, and endpoint_url field from model output

Notes

  • data/models.json was regenerated by the "Fetch Model Garden" GH Action after this change

Changes

Scripts

File Change
scripts/fetch-models.js Updated — remove endpoint URL logic and endpoint_url from transformed output

Data

File Change
data/models.json Updated — auto-generated; endpoint_url field removed

williamw and others added 3 commits March 17, 2026 12:11
- Detect data URI logo_url values and decode to data/images/
- Replace with public jsDelivr CDN URLs for Webflow CMS consumption
- Clear and recreate images dir each run to remove stale files
- Update CI workflow to commit data/images/ alongside models.json
- Gitignore docs/ directory
- All models now use api.modular.com, no per-model endpoint URLs needed
- Remove fetchEndpoint(), toSubdomain(), and API_DOMAIN constant
- Remove endpoint_url field from transformModel output
@williamw williamw self-assigned this Mar 17, 2026
@williamw williamw marked this pull request as ready for review March 17, 2026 17:31
@williamw williamw merged commit c496fad into master Mar 17, 2026
1 of 2 checks passed
@williamw williamw deleted the MKT-88-save-images branch March 17, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant