fix(pricing): content-digest snapshot instead of a wall-clock date

The generated pricing_data_gen.go header used to stamp today's date on
every `make pricing-sync` run, so a re-run against genuinely unchanged
upstream data still touched the file and produced a spurious daily diff
with nothing real to review. The header now records a short SHA-256
digest of the FETCHED bytes instead — identical upstream data always
reproduces a byte-identical generated file. Folded review minor.
This commit is contained in:
2026-08-22 02:12:29 +01:00
parent 962f5eeeed
commit e3996d88bf
3 changed files with 60 additions and 11 deletions
+3 -2
View File
@@ -4,8 +4,9 @@ package traefikllmgateway
// model_prices_and_context_window.json — DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
// Snapshot: 2026-08-22, 236 entries kept (pruned from 3111 upstream entries —
// see tools/pricing-sync/main.go's own doc comment for the exact pruning
// Source digest: sha256:0e8d23239c27
// 236 entries kept (pruned from 3111 upstream entries — see
// tools/pricing-sync/main.go's own doc comment for the exact pruning
// rule and bare-id collision resolution).
//
// Regenerate with: make pricing-sync