)]}'
{
  "commit": "8cc98f71d95b8d2d23466396955e4e6e549741f8",
  "tree": "7aa467c4e5782a82677ff03c1098172c0c873b7c",
  "parents": [
    "022ec60f69932cbb358d7561977d69341bdfe612"
  ],
  "author": {
    "name": "Jacek Centkowski",
    "email": "geminica.programs@gmail.com",
    "time": "Wed Oct 07 10:05:57 2026 +0200"
  },
  "committer": {
    "name": "Jacek Centkowski",
    "email": "geminica.programs@gmail.com",
    "time": "Thu Oct 08 13:39:54 2026 +0200"
  },
  "message": "Offer only available Gemini chat models, newest first\n\nThe Gemini provider listed every model returned by ListModels on the\nv1 API in API order, so the chat dropdown started with outdated or\nunsuitable entries:\n\n* gemini-2.5-pro is still listed, but generateContent fails with\n  \"This model models/gemini-2.5-pro is no longer available to new\n  users\".\n* Image models such as gemini-2.5-flash-image were offered for a\n  text-only code review.\n* Preview models and the gemini-*-latest aliases, including the\n  replacement Google suggests for gemini-2.5-pro, exist only on v1beta\n  and were never offered.\n\nMove all Gemini API calls to v1beta: not only the models listing but\nalso generateContent, which serves the actual reviews, since the\npreview models and -latest aliases fail with HTTP 404 on v1. Request\nup to 1000 models per page, as the v1beta catalog is larger than the\ndefault page of 50. Drop the image, tts, transcribe, live,\ncustomtools, robotics, computer-use, omni and nano-banana variants.\n\nListModels carries no lifecycle information, so probe every remaining\nmodel with countTokens, which fails with HTTP 404 for retired models\nlike generateContent does, without consuming generation quota. Any\nother failure keeps the model listed. The provider plugin caches the\nresulting list for a day, so the probes run at most once per day.\n\nSort the -latest aliases first, then by version, newest first; within\na version pro comes before flash and flash-lite, and stable models\nbefore previews.\n\nBug: https://github.com/GerritForge/ai-review-agent-provider/issues/8\nChange-Id: Ibc3cdc71de7efc4b9f5cee02cacc2dcfef961fe6\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0dcd15759aea983492f10970586e4d829527b505",
      "old_mode": 33188,
      "old_path": "ai/ai-review-agent-gemini-1.0.groovy",
      "new_id": "2c89715790dc320d29122d5a389eadf584097b5d",
      "new_mode": 33188,
      "new_path": "ai/ai-review-agent-gemini-1.0.groovy"
    }
  ]
}
