fix(openai): source LLM context size from model profiles (#37489)

`BaseOpenAI.modelname_to_contextsize` now reads `max_input_tokens` from
the partner's model profile registry instead of a hand-maintained dict,
with a `@deprecated(since="1.2", removal="2.0")` marker steering callers
at the profile directly. The legacy mapping is trimmed to models that
have no profile (completion-only and dated chat variants) so existing
lookups keep working.
This commit is contained in:
Mason Daugherty
2026-05-17 23:49:06 -07:00
committed by GitHub
parent 6c091564ac
commit 992c613b51
2 changed files with 46 additions and 24 deletions

View File

@@ -559,7 +559,7 @@ wheels = [
[[package]]
name = "langchain"
version = "1.3.0"
version = "1.3.1"
source = { editable = "../../langchain_v1" }
dependencies = [
{ name = "langchain-core" },