Python 88.3%
TypeScript 7.6%
Shell 4.1%
1"""tunedModels — read-only. Observed 2026-09-18: 501 UNIMPLEMENTED on list/get/create (fine-tuning removed from the Gemini2Developer API). The test accepts 200 (a project where tuning is still enabled) or 501 and records the message."""3from __future__ import annotations456def test_tuned_models_list_200_or_501(gemini):7 st, body, _ = gemini("GET", "/v1beta/tunedModels?pageSize=5", note="test_tuning list")8 assert st in (200, 501), body9 if st == 200:10 for m in body.get("tunedModels", []):11 assert m["name"].startswith("tunedModels/") and m["state"] in {"CREATING", "ACTIVE", "FAILED", "STATE_UNSPECIFIED"}12 else:13 assert body["error"]["status"] == "UNIMPLEMENTED"141516def test_tuned_model_get_bogus(gemini):17 st, body, _ = gemini("GET", "/v1beta/tunedModels/bogus-model", note="test_tuning bogus get")18 assert st in (400, 403, 404, 501) and "error" in body19