feat(import): add secondary release evidence dates

This commit is contained in:
phamnazage-jpg
2026-05-14 09:23:52 +08:00
parent dfb54092b7
commit b2b39bfc12
4 changed files with 38 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ func TestEnrichBytedanceModelMetadataSupportsSourceOnlyRules(t *testing.T) {
func TestEnrichBytedanceModelMetadataSupportsCatalogBackfillRules(t *testing.T) {
enriched := enrichBytedanceModelMetadata(ModelPricing{
ModelID: "bytedance-doubao-seed-character-128k",
ModelID: "bytedance-glm-4.7-128k",
SourceURL: "https://www.volcengine.com/docs/82379/1099320",
})
@@ -125,6 +125,20 @@ func TestEnrichBytedanceModelMetadataSupportsCatalogBackfillRules(t *testing.T)
}
}
func TestEnrichBytedanceModelMetadataSupportsSecondaryAuthoritativeRules(t *testing.T) {
enriched := enrichBytedanceModelMetadata(ModelPricing{
ModelID: "bytedance-doubao-pro-32k",
SourceURL: "https://www.volcengine.com/docs/82379/1099320",
})
if enriched.ReleaseDate != "2024-05-15" {
t.Fatalf("release date = %q, want %q", enriched.ReleaseDate, "2024-05-15")
}
if enriched.DateConfidence != "secondary_authoritative" || enriched.DateSourceKind != "secondary_authoritative_report" {
t.Fatalf("unexpected secondary metadata: confidence=%q kind=%q", enriched.DateConfidence, enriched.DateSourceKind)
}
}
func TestEnrichBytedanceModelMetadataUsesTwoPointZeroReleaseDate(t *testing.T) {
enriched := enrichBytedanceModelMetadata(ModelPricing{
ModelID: "bytedance-doubao-seed-2.0-pro-256k",