The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(custom): align Mistral-omission test inputs; soften models.py comment
kshitijk4poor1e21fe862421
diff --git a/plugins/model-providers/custom/__init__.py b/plugins/model-providers/custom/__init__.pyindex fbe24be7a4a..80ad699dec9 100644--- a/plugins/model-providers/custom/__init__.py+++ b/plugins/model-providers/custom/__init__.py@@ -34,8 +34,8 @@ def _looks_like_ollama_endpoint(base_url: str | None) -> bool:# urlparse raises ValueError for non-integer / out-of-range ports# ("http://host:99999/v1" parses fine in the OpenAI client, so the URL# is reachable here). Treat a malformed port as "not Ollama" instead of- # killing the whole kwargs build — mirrors the same guard around the- # 11434 check in hermes_cli/models.py should_use_ollama_native_catalog.+ # killing the whole kwargs build — same try/except shape the 11434+ # check in hermes_cli/models.py uses, not the same detection logic.try:if parsed.port == 11434:return Truediff --git a/tests/agent/transports/test_chat_completions.py b/tests/agent/transports/test_chat_completions.pyindex 17074679845..45c1e6a91db 100644--- a/tests/agent/transports/test_chat_completions.py+++ b/tests/agent/transports/test_chat_completions.py@@ -309,7 +309,7 @@ class TestChatCompletionsBuildKwargs:model="mistral-small-latest",messages=msgs,provider_profile=profile,- reasoning_config={"effort": "none"},+ reasoning_config={"enabled": False, "effort": "none"},base_url="https://api.mistral.ai/v1",)assert kw.get("extra_body", {}).get("think") is None