test: swap context-switch-guard fixture off qwen3.8-max-preview
test_custom_provider_context_avoids_false_shrink_warning used qwen3.8-max-preview as a slug that deliberately falls through to the generic 'qwen' 131K catalog match. The new qwen3.8-max DEFAULT_CONTEXT_LENGTHS entry (1M) now substring-matches the preview slug too, so the no-custom-providers branch stopped warning. Swap the fixture to qwen3.9-max-preview, which still hits the generic fallback — the test's intent (custom_providers threading) is unchanged.
This commit is contained in:
parent
3c3ae7428d
commit
91937a6dc3
|
|
@ -79,7 +79,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch):
|
|||
"name": "qwen-token-plan",
|
||||
"base_url": "https://token-plan.example/compatible-mode/v1",
|
||||
"models": {
|
||||
"qwen3.8-max-preview": {"context_length": 1_048_576},
|
||||
"qwen3.9-max-preview": {"context_length": 1_048_576},
|
||||
},
|
||||
}
|
||||
]
|
||||
|
|
@ -110,7 +110,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch):
|
|||
)
|
||||
result = ModelSwitchResult(
|
||||
success=True,
|
||||
new_model="qwen3.8-max-preview",
|
||||
new_model="qwen3.9-max-preview",
|
||||
target_provider="qwen-token-plan",
|
||||
provider_changed=True,
|
||||
api_key="k",
|
||||
|
|
@ -131,7 +131,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch):
|
|||
# Agent snapshot alone (classic CLI historically forgot to pass the kwarg).
|
||||
result2 = ModelSwitchResult(
|
||||
success=True,
|
||||
new_model="qwen3.8-max-preview",
|
||||
new_model="qwen3.9-max-preview",
|
||||
target_provider="qwen-token-plan",
|
||||
provider_changed=True,
|
||||
api_key="k",
|
||||
|
|
@ -156,7 +156,7 @@ def test_custom_provider_context_avoids_false_shrink_warning(monkeypatch):
|
|||
)
|
||||
result3 = ModelSwitchResult(
|
||||
success=True,
|
||||
new_model="qwen3.8-max-preview",
|
||||
new_model="qwen3.9-max-preview",
|
||||
target_provider="qwen-token-plan",
|
||||
provider_changed=True,
|
||||
api_key="k",
|
||||
|
|
|
|||
Loading…
Reference in New Issue