mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 14:43:07 +00:00
chore(openai): extend model_token_mapping till gpt-5.2 for modelname_to_contextsize (#35214)
This commit is contained in:
committed by
GitHub
parent
cdbe6c34f9
commit
99192b01da
@@ -670,6 +670,16 @@ class BaseOpenAI(BaseLLM):
|
||||
```
|
||||
"""
|
||||
model_token_mapping = {
|
||||
"gpt-5.2": 400_000,
|
||||
"gpt-5.2-2025-12-11": 400_000,
|
||||
"gpt-5.1": 400_000,
|
||||
"gpt-5.1-2025-11-13": 400_000,
|
||||
"gpt-5": 400_000,
|
||||
"gpt-5-2025-08-07": 400_000,
|
||||
"gpt-5-mini": 400_000,
|
||||
"gpt-5-mini-2025-08-07": 400_000,
|
||||
"gpt-5-nano": 400_000,
|
||||
"gpt-5-nano-2025-08-07": 400_000,
|
||||
"gpt-4o-mini": 128_000,
|
||||
"gpt-4o": 128_000,
|
||||
"gpt-4o-2024-05-13": 128_000,
|
||||
|
||||
Reference in New Issue
Block a user