Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(copilot): include GPT-6 in Responses model discovery
chengyongru077cc94a3def
diff --git a/nanobot/providers/github_copilot_provider.py b/nanobot/providers/github_copilot_provider.pyindex 829d0cf7c..165096b1c 100644--- a/nanobot/providers/github_copilot_provider.py+++ b/nanobot/providers/github_copilot_provider.py@@ -449,7 +449,7 @@ def _copilot_transport_supported(wire_id: str, endpoints: object) -> bool:return Truemodel = wire_id.lower()return "/responses" in supported and any(- token in model for token in ("gpt-5", "o1", "o3", "o4")+ token in model for token in ("gpt-5", "gpt-6", "o1", "o3", "o4"))diff --git a/tests/providers/test_oauth_model_catalog.py b/tests/providers/test_oauth_model_catalog.pyindex f569220e0..48130d2f5 100644--- a/tests/providers/test_oauth_model_catalog.py+++ b/tests/providers/test_oauth_model_catalog.py@@ -259,9 +259,14 @@ def test_xai_inference_classifies_typed_reauth() -> None:assert "synthetic-secret" not in str(response)+ "responses_model",+ ["gpt-5.4-mini", "gpt-6-astra", "gpt-6-sol", "gpt-6-luna"],+)def test_github_copilot_catalog_only_lists_compatible_chat_models(monkeypatch: pytest.MonkeyPatch,tmp_path: Path,+ responses_model: str,) -> None:original_client = httpx.Clientcaptured: list[httpx.Request] = []@@ -293,8 +298,7 @@ def test_github_copilot_catalog_only_lists_compatible_chat_models(},},{- "id": "gpt-5.4-mini",- "name": "GPT-5.4 Mini",+ "id": responses_model,"model_picker_enabled": True,"supported_endpoints": ["/responses"],},@@ -340,7 +344,7 @@ def test_github_copilot_catalog_only_lists_compatible_chat_models(assert catalog.source == "remote"assert [model.id for model in catalog.models] == ["github-copilot/claude-sonnet",- "github-copilot/gpt-5.4-mini",+ f"github-copilot/{responses_model}",]assert catalog.models[0].context_window == 200_000assert catalog.models[0].reasoning_efforts == ("low", "high")