release(openai): 1.1.6: update max input tokens for gpt-5 series (#34419)

This commit is contained in:
ccurme
2025-12-18 12:49:59 -05:00
committed by GitHub
parent 5c94e47d14
commit e9f7cd3e0e
10 changed files with 135 additions and 18 deletions

View File

@@ -145,6 +145,10 @@ def test_profile() -> None:
model = ChatOpenAI(model="gpt-5", profile={"tool_calling": False})
assert model.profile == {"tool_calling": False}
# Test overrides for gpt-5 input tokens
model = ChatOpenAI(model="gpt-5")
assert model.profile["max_input_tokens"] == 272_000
def test_openai_o1_temperature() -> None:
llm = ChatOpenAI(model="o1-preview")