The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(kimi): pin gzip-only Accept-Encoding on both Moonshot profiles (#28043)
kshitijk4poor1318d61b37be
diff --git a/tests/plugins/model_providers/test_kimi_profile.py b/tests/plugins/model_providers/test_kimi_profile.pyindex 33115d60ab9..1e395c9d05f 100644--- a/tests/plugins/model_providers/test_kimi_profile.py+++ b/tests/plugins/model_providers/test_kimi_profile.py@@ -131,3 +131,16 @@ class TestKimiModelDiscovery:++[email protected]("name", ["kimi-coding", "kimi-coding-cn"])+def test_moonshot_profiles_exclude_brotli(name):+ """#28043: httpx/brotlicffi mis-decodes Moonshot's br-encoded SSE stream,+ so both Moonshot profiles must negotiate gzip instead of brotli."""+ import model_tools # noqa: F401+ import providers++ profile = providers.get_provider_profile(name)+ assert profile is not None+ enc = {k.lower(): v for k, v in profile.default_headers.items()}.get("accept-encoding", "")+ assert "br" not in enc.lower() and "gzip" in enc.lower()