test(chatgpt): refresh service-tier cases after main rebase

Keep the tier-preservation regression on the current subscription model and match the moved unit-test suite's formatting. The adapter still forwards preferences without claiming backend priority entitlement.
This commit is contained in:
Steffan Wolter 2026-10-01 20:15:14 +02:00
parent 46d9d8dbfb
commit c70920d10b

View file

@ -39,7 +39,7 @@ class TestChatGPTResponsesAPITransformation:
def test_chatgpt_preserves_service_tier(self, requested_tier: str, expected_tier: str, effort: str) -> None:
config: Final = ChatGPTResponsesAPIConfig()
request: Final = config.transform_responses_api_request(
model="chatgpt/gpt-5.6-sol",
model="chatgpt/gpt-6.1-sol",
input=[{"role": "user", "content": "Reply with OK"}],
response_api_optional_request_params={
"service_tier": requested_tier,
@ -62,7 +62,7 @@ class TestChatGPTResponsesAPITransformation:
def test_chatgpt_does_not_introduce_unsupported_service_tier(self, requested_tier: str | None) -> None:
config: Final = ChatGPTResponsesAPIConfig()
request: Final = config.transform_responses_api_request(
model="chatgpt/gpt-5.6-sol",
model="chatgpt/gpt-6.1-sol",
input=[{"role": "user", "content": "Reply with OK"}],
response_api_optional_request_params={} if requested_tier is None else {"service_tier": requested_tier},
litellm_params=GenericLiteLLMParams(),
@ -96,7 +96,6 @@ class TestChatGPTResponsesAPITransformation:
assert isinstance(config, ChatGPTResponsesAPIConfig)
assert config.custom_llm_provider == LlmProviders.CHATGPT
@pytest.mark.parametrize(
"model_name",
[