scripts

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

sync-models-dev fetches the models.dev community catalogue and generates internal/providers/generated_models.go: a lookup table Antares uses to enrich provider /models responses with context windows, pricing, and capability flags the provider APIs themselves rarely return.

Run it with `make sync-models` (or `go run scripts/sync-models-dev.go`). Output is deterministic — providers and models are emitted in sorted order so re-runs against an unchanged upstream produce a zero-diff file.

Source: https://models.dev/api.json — community-curated, provider-agnostic. Licence: models.dev is MIT-licensed. The generated file bundles a snapshot; re-sync periodically to pick up new models. The manual overrides in internal/providers/catalog.go (contextWindows) remain the escape hatch for entries where upstream is missing or wrong.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL