Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(codex): add GPT-6.1 Sol to the model catalog (#2287)

Call White99db88055659
diff --git a/tests/test_backend_model_catalog.py b/tests/test_backend_model_catalog.py
index 53ea3ed9c..f8f78a295 100644
--- a/tests/test_backend_model_catalog.py
+++ b/tests/test_backend_model_catalog.py
@@ -918,7 +918,7 @@ def test_remote_hidden_tombstone_overrides_stale_local_visible(monkeypatch, tmp_
assert "retired-model" not in snapshot["models"]
-def test_gpt_6_sol_and_luna_follow_astra_in_the_bundled_catalog():
+def test_gpt_6_sol_generations_and_luna_follow_astra_in_the_bundled_catalog():
codex = {
entry["id"]: entry
for entry in backend_model_catalog.visible_backend_model_entries(
@@ -927,9 +927,12 @@ def test_gpt_6_sol_and_luna_follow_astra_in_the_bundled_catalog():
}
ordered = sorted(codex.values(), key=lambda entry: entry["priority"])
- assert [entry["id"] for entry in ordered[:3]] == ["gpt-6-astra", "gpt-6-sol", "gpt-6-luna"]
- for model in ("gpt-6-sol", "gpt-6-luna"):
+ assert [entry["id"] for entry in ordered[:4]] == [
+ "gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna",
+ ]
+ for model in ("gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna"):
assert codex[model]["visibility"] == "list"
+ for model in ("gpt-6-sol", "gpt-6-luna"):
assert codex[model]["reasoning_efforts"] == ["low", "medium", "high", "xhigh", "max"]
@@ -1341,15 +1344,22 @@ def test_fetch_remote_catalog_rejects_unknown_backend(monkeypatch):
backend_model_catalog.fetch_remote_catalog("https://example.test/catalog.json")
-def test_bundled_codex_astra_is_first_with_native_reasoning_efforts():
+ ("position", "model", "label", "expected_efforts"),
+ [
+ (0, "gpt-6-astra", "GPT-6-Astra", ["low", "medium", "high", "xhigh", "max", "ultra"]),
+ (1, "gpt-6.1-sol", "GPT-6.1-Sol", ["low", "medium", "high", "xhigh", "max"]),
+ ],
+)
+def test_bundled_codex_leading_models_have_declared_reasoning_efforts(position, model, label, expected_efforts):
snapshot = backend_model_catalog.backend_model_snapshot("codex", schedule_refresh=False)
- assert snapshot["models"][0] == "gpt-6-astra"
- assert snapshot["model_labels"]["gpt-6-astra"] == "GPT-6-Astra"
+ assert snapshot["models"][position] == model
+ assert snapshot["model_labels"][model] == label
assert [
entry["value"]
- for entry in snapshot["reasoning_options"]["gpt-6-astra"]
- ] == ["__default__", "low", "medium", "high", "xhigh", "max", "ultra"]
+ for entry in snapshot["reasoning_options"][model]
+ ] == ["__default__", *expected_efforts]
def test_codex_catalog_readers_expand_codex_home(monkeypatch, tmp_path):
diff --git a/tests/test_model_hub_reasoning_tiers.py b/tests/test_model_hub_reasoning_tiers.py
index 37bc23986..fd5f55ef1 100644
--- a/tests/test_model_hub_reasoning_tiers.py
+++ b/tests/test_model_hub_reasoning_tiers.py
@@ -4,6 +4,7 @@ import pytest
from core.handlers.model_hub import reasoning_tiers
from core.handlers.model_hub.reasoning_tiers import resolve_reasoning_tiers
+from vibe import backend_model_catalog
from vibe.backend_model_catalog import PROTOCOL_REASONING_EFFORT_DEFAULTS
@@ -46,6 +47,30 @@ def test_catalog_row_outranks_user_and_is_returned_verbatim() -> None:
assert resolution.source == "catalog"
[email protected]("protocol", ("openai_responses", "openai_chat"))
+def test_codex_only_ultra_does_not_become_an_api_reasoning_tier(
+ monkeypatch: pytest.MonkeyPatch,
+ protocol: str,
+) -> None:
+ monkeypatch.setattr(
+ backend_model_catalog,
+ "_read_codex_models_cache",
+ lambda: [{
+ "id": "gpt-6.1-sol",
+ "visibility": "list",
+ "reasoning_efforts": ["low", "medium", "high", "xhigh", "max", "ultra"],
+ }],
+ )
+ native = backend_model_catalog.backend_model_snapshot("codex", schedule_refresh=False)
+ api = resolve_reasoning_tiers(protocol=protocol, model_id="gpt-6.1-sol")
+
+ assert [option["value"] for option in native["reasoning_options"]["gpt-6.1-sol"]] == [
+ "__default__", "low", "medium", "high", "xhigh", "max", "ultra",
+ ]
+ assert api.efforts == ("low", "medium", "high", "xhigh", "max")
+ assert api.source == "catalog"
+
+
def test_catalog_row_is_not_filtered_through_the_vocabulary(
monkeypatch: pytest.MonkeyPatch,
) -> None:
diff --git a/tests/test_ui_api.py b/tests/test_ui_api.py
index 045ea81bd..f1d3d8292 100644
--- a/tests/test_ui_api.py
+++ b/tests/test_ui_api.py
@@ -3099,8 +3099,9 @@ def test_codex_models_merges_cli_cache_and_filters_hidden_models(monkeypatch, tm
result = api.codex_models(schedule_refresh=False)
assert result["ok"] is True
- assert result["models"][:6] == [
+ assert result["models"][:7] == [
"gpt-6-astra",
+ "gpt-6.1-sol",
"gpt-6-sol",
"gpt-6-luna",
"gpt-5.6-sol",
@@ -3136,8 +3137,9 @@ def test_codex_models_falls_back_when_cli_cache_missing(monkeypatch, tmp_path):
result = api.codex_models(schedule_refresh=False)
assert result["ok"] is True
- assert result["models"][:6] == [
+ assert result["models"][:7] == [
"gpt-6-astra",
+ "gpt-6.1-sol",
"gpt-6-sol",
"gpt-6-luna",
"gpt-5.6-sol",
diff --git a/vibe/data/backend_models.json b/vibe/data/backend_models.json
index d23655e87..4508a0fa9 100644
--- a/vibe/data/backend_models.json
+++ b/vibe/data/backend_models.json
@@ -32,8 +32,9 @@
"codex": {
"models": [
{"id": "gpt-6-astra", "label": "GPT-6-Astra", "priority": 1, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max", "ultra"]},
- {"id": "gpt-6-sol", "label": "GPT-6-Sol", "priority": 2, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},
- {"id": "gpt-6-luna", "label": "GPT-6-Luna", "priority": 3, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},
+ {"id": "gpt-6.1-sol", "label": "GPT-6.1-Sol", "priority": 2, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},
+ {"id": "gpt-6-sol", "label": "GPT-6-Sol", "priority": 3, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},
+ {"id": "gpt-6-luna", "label": "GPT-6-Luna", "priority": 4, "visibility": "list", "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},
{"id": "gpt-5.6-sol", "label": "GPT-5.6-Sol", "priority": 6, "reasoning_efforts": ["low", "medium", "high", "xhigh", "max", "ultra"]},
{"id": "gpt-5.6-terra", "label": "GPT-5.6-Terra", "priority": 7, "reasoning_efforts": ["low", "medium", "high", "xhigh", "max", "ultra"]},
{"id": "gpt-5.6-luna", "label": "GPT-5.6-Luna", "priority": 8, "reasoning_efforts": ["low", "medium", "high", "xhigh", "max"]},