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.

fix(codex): complete required custom model catalog defaults (#1951)

Max17c0ea0784da
diff --git a/tests/test_backend_model_catalog.py b/tests/test_backend_model_catalog.py
index a9020ccdb..89c0f6e0e 100644
--- a/tests/test_backend_model_catalog.py
+++ b/tests/test_backend_model_catalog.py
@@ -257,11 +257,15 @@ def test_codex_hub_catalog_projects_custom_backend_models_from_native_shape():
"model_messages": {"instructions_template": "preserved"},
"support_verbosity": False,
"experimental_supported_tools": [],
+ "supports_parallel_tool_calls": False,
}
]
-def test_codex_hub_catalog_does_not_inherit_native_model_metadata_for_custom_rows():
[email protected]("supports_parallel_tool_calls", [False, True])
+def test_codex_hub_catalog_does_not_inherit_native_model_metadata_for_custom_rows(
+ supports_parallel_tool_calls,
+):
raw = json.dumps(
{
"models": [
@@ -286,6 +290,7 @@ def test_codex_hub_catalog_does_not_inherit_native_model_metadata_for_custom_row
"shell_type": "unified_exec",
"support_verbosity": True,
"experimental_supported_tools": ["native_tool"],
+ "supports_parallel_tool_calls": supports_parallel_tool_calls,
"truncation_policy": {"mode": "tokens", "limit": 10_000},
"model_messages": {"instructions_template": "preserved"},
}
@@ -296,7 +301,10 @@ def test_codex_hub_catalog_does_not_inherit_native_model_metadata_for_custom_row
payload = json.loads(
backend_model_catalog._codex_hub_catalog_bytes(
raw,
- [{"id": "custom-model", "input_modalities": [], "reasoning_efforts": []}],
+ [
+ {"id": "custom-model", "input_modalities": [], "reasoning_efforts": []},
+ {"id": "gpt-native"},
+ ],
)
)
custom = payload["models"][0]
@@ -309,6 +317,11 @@ def test_codex_hub_catalog_does_not_inherit_native_model_metadata_for_custom_row
assert custom["supported_reasoning_levels"] == [{"effort": "none", "description": "None"}]
assert custom["support_verbosity"] is False
assert custom["experimental_supported_tools"] == []
+ assert custom["supports_parallel_tool_calls"] is False
+ native = payload["models"][1]
+ assert native["support_verbosity"] is True
+ assert native["experimental_supported_tools"] == ["native_tool"]
+ assert native["supports_parallel_tool_calls"] is supports_parallel_tool_calls
for key in (
"description",
"context_window",
diff --git a/vibe/backend_model_catalog.py b/vibe/backend_model_catalog.py
index 31c4b7c11..c992b46ac 100644
--- a/vibe/backend_model_catalog.py
+++ b/vibe/backend_model_catalog.py
@@ -105,6 +105,11 @@ _CODEX_CUSTOM_SCAFFOLD_KEYS = (
"tool_mode",
"prefer_websockets",
)
+_CODEX_CUSTOM_REQUIRED_DEFAULTS: dict[str, Any] = {
+ "support_verbosity": False,
+ "experimental_supported_tools": [],
+ "supports_parallel_tool_calls": False,
+}
_REMOTE_LOCK = threading.Lock()
_REMOTE_REFRESH_IN_FLIGHT = False
@@ -177,9 +182,9 @@ def _codex_hub_catalog_bytes(
if key in template
}
# Required in some Codex catalog versions, with no matching
- # user-authored BackendModel field.
- row["support_verbosity"] = False
- row["experimental_supported_tools"] = []
+ # user-authored BackendModel field. Codex 0.146.0 also requires
+ # supports_parallel_tool_calls.
+ row.update(_CODEX_CUSTOM_REQUIRED_DEFAULTS)
row["slug"] = model_id
display_name = configured.get("display_name")
row["display_name"] = (