chore(openai): extend model_token_mapping till gpt-5.2 for modelname_to_contextsize (#35214)

This commit is contained in:
Mohammad Mohtashim
2026-02-16 07:55:58 +05:00
committed by GitHub
parent cdbe6c34f9
commit 99192b01da

View File

@@ -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,