mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
fix(models): match gpt-6-astra reasoning effort levels to OpenAI docs
OpenAI documents low, medium, high, xhigh, and max for gpt-6-astra, with no none level, so the entry stops advertising none and starts advertising max.
This commit is contained in:
parent
897fba08c8
commit
4991d0bf3e
3 changed files with 21 additions and 2 deletions
|
|
@ -29330,9 +29330,10 @@
|
|||
],
|
||||
"supports_computer_use": true,
|
||||
"supports_function_calling": true,
|
||||
"supports_max_reasoning_effort": true,
|
||||
"supports_minimal_reasoning_effort": false,
|
||||
"supports_native_streaming": true,
|
||||
"supports_none_reasoning_effort": true,
|
||||
"supports_none_reasoning_effort": false,
|
||||
"supports_parallel_function_calling": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_prompt_cache_breakpoint": true,
|
||||
|
|
|
|||
|
|
@ -29330,9 +29330,10 @@
|
|||
],
|
||||
"supports_computer_use": true,
|
||||
"supports_function_calling": true,
|
||||
"supports_max_reasoning_effort": true,
|
||||
"supports_minimal_reasoning_effort": false,
|
||||
"supports_native_streaming": true,
|
||||
"supports_none_reasoning_effort": true,
|
||||
"supports_none_reasoning_effort": false,
|
||||
"supports_parallel_function_calling": true,
|
||||
"supports_pdf_input": true,
|
||||
"supports_prompt_cache_breakpoint": true,
|
||||
|
|
|
|||
|
|
@ -371,3 +371,20 @@ class TestKimiK3AdvertisesItsDocumentedLevels:
|
|||
"low",
|
||||
"high",
|
||||
)
|
||||
|
||||
|
||||
class TestGpt6AstraAdvertisesItsDocumentedLevels:
|
||||
def test_the_entry_advertises_low_through_max_without_none(self, local_model_cost_map):
|
||||
"""OpenAI documents low, medium, high, xhigh and max for gpt-6-astra. Unlike gpt-5.6-sol it
|
||||
does not take none, so a group must not offer none and must offer max."""
|
||||
from litellm.utils import _get_model_info_helper
|
||||
|
||||
model_info = dict(_get_model_info_helper(model="gpt-6-astra", custom_llm_provider="openai"))
|
||||
|
||||
assert resolve_supported_reasoning_efforts(model_info, deployment_is_mapped=True) == (
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh",
|
||||
"max",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue