Skip to content

Commit a3dc250

Browse files
committed
fix(drift): classify gemini-1.5-pro/flash in excludeFamilies (retired upstream, still mocked)
Both families are gone from Gemini's live /models listing but are still legitimately referenced in aimock source, so the deprecation canary kept routing them to needs-human every run (see the two notes under drift-proposals/). The human decision is: keep mocking them. Move them out of includeFamilies.gemini into excludeFamilies.gemini's "Retired / legacy specialty" bucket, the established pattern for a retired-but-still-mocked family (gemini-pro, gpt-3.5, gemini-2.0-flash-exp; prior art in #315). excludeFamilies means "not counted as text-generation drift", not "not mocked" — every fixture, capability test and the isReasoningModel() === false verdict for gemini-1.5-* is untouched. Re-pin the two affected DATA_FROZEN membership hashes accordingly. Side effect: gemini's truncated-listing trust floor drops from 11 to 9 (floor = includeFamilies[provider].size).
1 parent 85fc683 commit a3dc250

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎src/__tests__/drift/logic-pin.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const DATA_FROZEN: Record<string, { members: string[]; pin: string }> = {
204204
},
205205
"includeFamilies.gemini": {
206206
members: [...includeFamilies.gemini].sort(),
207-
pin: "4a9428b64ffcff0fbb79878d88ed993ffac53e43d64e26bcf5d86509626f593d",
207+
pin: "c2e2c56b8f8d5fc56152b4633e7d3782e95b7eeb9bc123da71f00e884a54a743",
208208
},
209209
"excludeFamilies.openai": {
210210
members: [...excludeFamilies.openai].sort(),
@@ -216,7 +216,7 @@ const DATA_FROZEN: Record<string, { members: string[]; pin: string }> = {
216216
},
217217
"excludeFamilies.gemini": {
218218
members: [...excludeFamilies.gemini].sort(),
219-
pin: "e3545138234ad782937f66760bef942fca7d4bd0934a87da30bf6e5816ba69b1",
219+
pin: "c95dedab7588212bbba0bf9ab6434bfd43a449adbe7b35f81f48271ee849a9c2",
220220
},
221221
};
222222

‎src/__tests__/drift/model-registry.ts‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ export const includeFamilies: Record<Provider, Set<string>> = {
135135
"claude-fable-5",
136136
]),
137137
gemini: familySet("gemini", [
138-
// Gemini 1.5 / 2.0 / 2.5 text families
139-
"gemini-1.5-pro",
140-
"gemini-1.5-flash",
138+
// Gemini 2.0 / 2.5 text families
141139
"gemini-2.0-flash",
142140
"gemini-2.5-flash",
143141
"gemini-2.5-pro",
@@ -226,6 +224,14 @@ export const excludeFamilies: Record<Provider, Set<string>> = {
226224
// Retired / legacy specialty
227225
"gemini-pro",
228226
"aqa",
227+
// Gemini 1.5 retired upstream 2026-07 (absent from the live /models listing)
228+
// but aimock still mocks it for clients pinned to older SDKs, and
229+
// `isReasoningModel()` must keep answering false for it (model-utils.ts's
230+
// NONREASONING_FAMILIES). Same treatment as gemini-pro above: still
231+
// referenced + still mocked, just not counted as text-generation drift.
232+
// See drift-proposals/gemini-gemini-1.5-{pro,flash}-deprecated-referenced.md.
233+
"gemini-1.5-pro",
234+
"gemini-1.5-flash",
229235
// Embeddings (non-text-generation)
230236
"text-embedding-004",
231237
"gemini-embedding",

0 commit comments

Comments
 (0)