Skip to content

Commit 1efefbd

Browse files
iurisilvioclaude
andcommitted
Use gemini-3-8-flash-boxes in the auto-label docstring examples
Roboflow's Auto Label catalog lists Gemini Flash as gemini-3-8-flash-boxes (roboflow/roboflow#17866) and keeps accepting gemini-boxes as an alias. The Project.autolabel_preview, Project.autolabel and Workspace.autolabel_models docstrings name the new id, and the CLI models-table test uses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 72e8c01 commit 1efefbd

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎roboflow/core/project.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def autolabel_preview(
13311331
13321332
Args:
13331333
model: Foundation model id from ``Workspace.autolabel_models()``
1334-
(e.g. ``"gpt-6-astra-boxes"``, ``"sam3-rle"``, ``"gemini-boxes"``).
1334+
(e.g. ``"gpt-6-astra-boxes"``, ``"sam3-rle"``, ``"gemini-3-8-flash-boxes"``).
13351335
image: HTTPS URL, local file path, or base64-encoded image.
13361336
ontology: ``{"text prompt": "class name"}`` -- keyed by prompt, so
13371337
several prompts can share one class
@@ -1377,7 +1377,7 @@ def autolabel(
13771377
batch_id: Source batch containing the images to auto-label.
13781378
model: For ``model_type="foundational"``, a model id from
13791379
``Workspace.autolabel_models()`` (e.g. ``"gpt-6-astra-boxes"``,
1380-
``"sam3-rle"``, ``"sam3-polygon"``, ``"gemini-boxes"``). For
1380+
``"sam3-rle"``, ``"sam3-polygon"``, ``"gemini-3-8-flash-boxes"``). For
13811381
``model_type="roboflow"``, a Roboflow model id such as
13821382
``"project-slug/3"`` or ``"workspace-slug/model-id"``.
13831383
model_type: ``"foundational"`` (hosted foundation model, sent as-is;

‎roboflow/core/workspace.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ def autolabel_models(self) -> dict:
17561756
List the foundation models available for hosted auto-labeling in this workspace.
17571757
17581758
Returns ``{models: [...]}``. Each entry's ``id`` (e.g.
1759-
``gpt-6-astra-boxes``, ``sam3-rle``, ``gemini-boxes``) is a valid
1759+
``gpt-6-astra-boxes``, ``sam3-rle``, ``gemini-3-8-flash-boxes``) is a valid
17601760
``model`` for ``Project.autolabel`` and ``Project.autolabel_preview``.
17611761
Entries carry ``guidance`` on when to prefer each model, the
17621762
``projectTypes`` they support, ``ontologyFormat``, ``creditsPerImage``,

‎tests/cli/test_autolabel_handler.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def test_text_output_is_a_table(self, _resolve, mock_api):
3636
mock_api.return_value = {
3737
"models": [
3838
{"id": "gpt-6-astra-boxes", "name": "GPT-6 Astra", "available": True, "isDefault": True},
39-
{"id": "gemini-boxes", "name": "Gemini", "available": False, "unavailableReason": "plan"},
39+
{"id": "gemini-3-8-flash-boxes", "name": "Gemini", "available": False, "unavailableReason": "plan"},
4040
]
4141
}
4242
result = runner.invoke(app, ["autolabel", "models"])
4343
self.assertEqual(result.exit_code, 0, result.output)
4444
self.assertIn("gpt-6-astra-boxes", result.output)
45-
self.assertIn("gemini-boxes", result.output)
45+
self.assertIn("gemini-3-8-flash-boxes", result.output)
4646
mock_api.assert_called_once_with("key", "ws")
4747

4848
@patch("roboflow.adapters.rfapi.list_autolabel_models", return_value={"models": [{"id": "sam3-rle"}]})

0 commit comments

Comments
 (0)