Update gpt-4o model version and add new model details (#5056)

feat: Update gpt-4o-2024-11-20 version and model pointer

- Add version information for gpt-4o-2024-11-20
- Update model pointer

Signed-off-by: Hankyeol Kyung <kghnkl0103@gmail.com>
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
Co-authored-by: gagb <gagb@users.noreply.github.com>
This commit is contained in:
Hankyeol Kyung 2025-01-16 04:44:43 +09:00 committed by GitHub
parent c5ca53de5e
commit acb9117513
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ _MODEL_POINTERS = {
"o1": "o1-2024-12-17", "o1": "o1-2024-12-17",
"o1-preview": "o1-preview-2024-09-12", "o1-preview": "o1-preview-2024-09-12",
"o1-mini": "o1-mini-2024-09-12", "o1-mini": "o1-mini-2024-09-12",
"gpt-4o": "gpt-4o-2024-08-06", "gpt-4o": "gpt-4o-2024-11-20",
"gpt-4o-mini": "gpt-4o-mini-2024-07-18", "gpt-4o-mini": "gpt-4o-mini-2024-07-18",
"gpt-4-turbo": "gpt-4-turbo-2024-04-09", "gpt-4-turbo": "gpt-4-turbo-2024-04-09",
"gpt-4-turbo-preview": "gpt-4-0125-preview", "gpt-4-turbo-preview": "gpt-4-0125-preview",
@ -37,6 +37,12 @@ _MODEL_INFO: Dict[str, ModelInfo] = {
"json_output": False, "json_output": False,
"family": ModelFamily.O1, "family": ModelFamily.O1,
}, },
"gpt-4o-2024-11-20": {
"vision": True,
"function_calling": True,
"json_output": True,
"family": ModelFamily.GPT_4O,
},
"gpt-4o-2024-08-06": { "gpt-4o-2024-08-06": {
"vision": True, "vision": True,
"function_calling": True, "function_calling": True,
@ -127,6 +133,7 @@ _MODEL_TOKEN_LIMITS: Dict[str, int] = {
"o1-2024-12-17": 200000, "o1-2024-12-17": 200000,
"o1-preview-2024-09-12": 128000, "o1-preview-2024-09-12": 128000,
"o1-mini-2024-09-12": 128000, "o1-mini-2024-09-12": 128000,
"gpt-4o-2024-11-20": 128000,
"gpt-4o-2024-08-06": 128000, "gpt-4o-2024-08-06": 128000,
"gpt-4o-2024-05-13": 128000, "gpt-4o-2024-05-13": 128000,
"gpt-4o-mini-2024-07-18": 128000, "gpt-4o-mini-2024-07-18": 128000,