mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
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:
parent
46d9d8dbfb
commit
c70920d10b
1 changed files with 2 additions and 3 deletions
|
|
@ -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",
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue