Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge pull request #543 from octo-patch/feature/upgrade-minimax-m3

Bingxi Zhao (Frank)2dc4c7dd035c
diff --cc tests/core/test_agentic_client_provider_kwargs.py
index ae89075c6,aced6578f..94e508bd7
--- a/tests/core/test_agentic_client_provider_kwargs.py
+++ b/tests/core/test_agentic_client_provider_kwargs.py
@@@ -115,59 -115,9 +115,59 @@@ def test_build_openai_client_routes_ant
assert captured["extra_headers"] == {"X-Test": "1"}
+def test_build_openai_client_routes_oauth_backend_through_adapter(monkeypatch) -> None:
+ captured = {}
+
+ class FakeProvider:
+ def __init__(self, **kwargs):
+ captured.update(kwargs)
+
+ monkeypatch.setattr(
+ "deeptutor.services.llm.provider_core.OpenAICodexProvider",
+ FakeProvider,
+ )
+
+ client = build_openai_client(
+ LLMClientConfig(
+ binding="openai_codex",
+ model="openai-codex/gpt-5.5",
+ api_key="unused",
+ base_url="https://chatgpt.com/backend-api",
+ )
+ )
+
+ assert isinstance(client, _ProviderOpenAIAdapter)
+ assert captured["default_model"] == "openai-codex/gpt-5.5"
+
+
+def test_build_openai_client_routes_github_copilot_backend_through_adapter(monkeypatch) -> None:
+ captured = {}
+
+ class FakeProvider:
+ def __init__(self, **kwargs):
+ captured.update(kwargs)
+
+ monkeypatch.setattr(
+ "deeptutor.services.llm.provider_core.GitHubCopilotProvider",
+ FakeProvider,
+ )
+
+ client = build_openai_client(
+ LLMClientConfig(
+ binding="github_copilot",
+ model="github-copilot/gpt-4.1",
+ api_key=None,
+ base_url="https://api.githubcopilot.com",
+ )
+ )
+
+ assert isinstance(client, _ProviderOpenAIAdapter)
+ assert captured["default_model"] == "github-copilot/gpt-4.1"
+
+
def test_anthropic_backend_can_use_native_tool_calling() -> None:
assert can_use_native_tool_calling(binding="custom_anthropic", model="claude-test") is True
- assert can_use_native_tool_calling(binding="minimax_anthropic", model="MiniMax-M2") is True
+ assert can_use_native_tool_calling(binding="minimax_anthropic", model="MiniMax-M3") is True
def test_custom_qwen_can_use_native_tool_calling() -> None: