[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
4104691b98
commit
27732404a3
2 changed files with 10 additions and 4 deletions
|
|
@ -81,9 +81,7 @@ _OPENAI_REASONING_SUMMARY_UNSUPPORTED = re.compile(r"^o3(?:[-.]|$)")
|
|||
# /v1/responses reference. Covers gpt-5.x family, o1/o3/o4 family,
|
||||
# and gpt-4.5 family. The `(?:[-.]|$)` anchor keeps gpt-50 / o30
|
||||
# hypotheticals out.
|
||||
_OPENAI_REASONING_FAMILY = re.compile(
|
||||
r"^(?:gpt-5(?:\.\d+)?|o[134]|gpt-4\.5)(?:[-.]|$)"
|
||||
)
|
||||
_OPENAI_REASONING_FAMILY = re.compile(r"^(?:gpt-5(?:\.\d+)?|o[134]|gpt-4\.5)(?:[-.]|$)")
|
||||
|
||||
|
||||
class _AnthropicThinkingSpec(NamedTuple):
|
||||
|
|
|
|||
|
|
@ -169,7 +169,15 @@ def test_responses_still_drops_sampling_for_reasoning_families(monkeypatch):
|
|||
# Sanity: parametrise across the reasoning-class families so a
|
||||
# future regex tweak that accidentally weakens the drop surfaces
|
||||
# here.
|
||||
for model in ("gpt-5.5", "gpt-5.4", "gpt-5", "o1", "o3-mini", "o4-mini", "gpt-4.5-preview"):
|
||||
for model in (
|
||||
"gpt-5.5",
|
||||
"gpt-5.4",
|
||||
"gpt-5",
|
||||
"o1",
|
||||
"o3-mini",
|
||||
"o4-mini",
|
||||
"gpt-4.5-preview",
|
||||
):
|
||||
captured: dict = {}
|
||||
|
||||
def handler(request: httpx.Request, _captured = captured) -> httpx.Response:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue