Skip to content

The agent that grows with you

test(models): bound the gpt-6.1-sol-900k cap by its own ceiling, drop change-detectors

kshitijk4poor035377b34872
diff --git a/tests/hermes_cli/test_gpt6_tiers_registration.py b/tests/hermes_cli/test_gpt6_tiers_registration.py
index 149b8cedd21..6984701a0e9 100644
--- a/tests/hermes_cli/test_gpt6_tiers_registration.py
+++ b/tests/hermes_cli/test_gpt6_tiers_registration.py
@@ -77,11 +77,10 @@ def test_gpt61_sol_resolves_context_and_pricing_like_its_tier():
base = _OFFICIAL_DOCS_PRICING[("openai", "gpt-6.1-sol")]
assert _OFFICIAL_DOCS_PRICING[("openai", "gpt-6.1-sol-pro")] is base
assert base.cache_read_cost_per_million == base.input_cost_per_million / 20 # 5%, not 6 Sol's 10%
- assert is_codex_900k_base("gpt-6.1-sol") # verified above 272K on Codex (live 2026-09-29, see 900k test)
def test_gpt61_sol_900k_is_opt_in_exact_and_billed_as_the_base():
- from agent.model_metadata import is_codex_context_variant
+ from agent.model_metadata import _CODEX_OAUTH_STALE_ADVERTISED_CTX, is_codex_context_variant
from agent.usage_pricing import _OFFICIAL_DOCS_PRICING
ids = _finalize_codex_models(["gpt-6.1-sol"]) # what live discovery hands the picker
@@ -91,8 +90,6 @@ def test_gpt61_sol_900k_is_opt_in_exact_and_billed_as_the_base():
assert strip_codex_context_variant_suffix("gpt-6.1-sol-900k") == "gpt-6.1-sol"
# The base keeps the advertised 272K; only the explicit variant opts into the bump.
assert _verified_codex_ctx_for_slug("gpt-6.1-sol") is None
- assert _verified_codex_ctx_for_slug("gpt-6.1-sol-900k") == _verified_codex_ctx_for_slug("gpt-6-astra-900k")
- assert _verified_codex_ctx_for_slug("gpt-6.1-sol-900k") < 922_000 # the model page's max input
+ assert _CODEX_OAUTH_STALE_ADVERTISED_CTX < _verified_codex_ctx_for_slug("gpt-6.1-sol-900k") < 922_000 # model page max input
assert _OFFICIAL_DOCS_PRICING[("openai", "gpt-6.1-sol-900k")] is _OFFICIAL_DOCS_PRICING[("openai", "gpt-6.1-sol")]
assert _compression_threshold_for_model("gpt-6.1-sol-900k", provider="openai-codex") is None
- assert not is_codex_context_variant("gpt-6.1-luna-900k")