feat: populate content_length and max_output from official docs (#17836)

## Summary

- Verify and populate `content_length` (context window) and `max_output`
(max generation tokens) for all **478 chat/vision models** across **47
provider configs**
- Data sourced from **official API documentation** via 12 parallel
agents + targeted web verification
- Update Go test assertions to match verified values

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jay77721
2026-08-05 15:22:57 +08:00
committed by GitHub
parent 310275208b
commit 47ecc2a231
48 changed files with 927 additions and 450 deletions

View File

@@ -15,7 +15,8 @@
"models": [
{
"name": "gpt-5.5",
"max_tokens": 400000,
"content_length": 1050000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -26,7 +27,8 @@
},
{
"name": "gpt-5.4",
"max_tokens": 400000,
"content_length": 1050000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -37,7 +39,8 @@
},
{
"name": "gpt-5.4-mini",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -48,7 +51,8 @@
},
{
"name": "gpt-5.4-nano",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -59,7 +63,8 @@
},
{
"name": "gpt-5.2-pro",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -70,7 +75,8 @@
},
{
"name": "gpt-5.2",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -81,7 +87,8 @@
},
{
"name": "gpt-5.1",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -92,7 +99,8 @@
},
{
"name": "gpt-5.1-chat-latest",
"max_tokens": 400000,
"content_length": 128000,
"max_output": 16384,
"model_types": [
"chat",
"vision"
@@ -103,7 +111,8 @@
},
{
"name": "gpt-5",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -114,7 +123,8 @@
},
{
"name": "gpt-5-mini",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -125,7 +135,8 @@
},
{
"name": "gpt-5-nano",
"max_tokens": 400000,
"content_length": 400000,
"max_output": 128000,
"model_types": [
"chat",
"vision"
@@ -136,7 +147,8 @@
},
{
"name": "gpt-5-chat-latest",
"max_tokens": 400000,
"content_length": 128000,
"max_output": 16384,
"model_types": [
"chat",
"vision"
@@ -147,7 +159,8 @@
},
{
"name": "gpt-4.1",
"max_tokens": 1047576,
"content_length": 1047576,
"max_output": 32768,
"model_types": [
"chat",
"vision"
@@ -158,7 +171,8 @@
},
{
"name": "gpt-4.1-mini",
"max_tokens": 1047576,
"content_length": 1047576,
"max_output": 32768,
"model_types": [
"chat",
"vision"
@@ -169,7 +183,8 @@
},
{
"name": "gpt-4.1-nano",
"max_tokens": 1047576,
"content_length": 1047576,
"max_output": 32768,
"model_types": [
"chat",
"vision"
@@ -180,7 +195,8 @@
},
{
"name": "gpt-4.5-preview",
"max_tokens": 128000,
"content_length": 128000,
"max_output": 16384,
"model_types": [
"chat"
],
@@ -190,7 +206,8 @@
},
{
"name": "gpt-4o-mini",
"max_tokens": 128000,
"content_length": 128000,
"max_output": 16384,
"model_types": [
"chat",
"vision"
@@ -201,7 +218,8 @@
},
{
"name": "gpt-4o",
"max_tokens": 128000,
"content_length": 128000,
"max_output": 16384,
"model_types": [
"chat",
"vision"
@@ -212,7 +230,8 @@
},
{
"name": "gpt-3.5-turbo",
"max_tokens": 4096,
"content_length": 16385,
"max_output": 4096,
"model_types": [
"chat"
],
@@ -222,7 +241,8 @@
},
{
"name": "gpt-3.5-turbo-16k-0613",
"max_tokens": 16385,
"content_length": 16385,
"max_output": 4096,
"model_types": [
"chat"
],
@@ -260,7 +280,8 @@
},
{
"name": "gpt-4",
"max_tokens": 8191,
"content_length": 8192,
"max_output": 8192,
"model_types": [
"chat"
],
@@ -270,7 +291,8 @@
},
{
"name": "gpt-4-turbo",
"max_tokens": 8191,
"content_length": 128000,
"max_output": 4096,
"model_types": [
"chat"
],
@@ -280,7 +302,8 @@
},
{
"name": "gpt-4-32k",
"max_tokens": 32768,
"content_length": 32768,
"max_output": 4096,
"model_types": [
"chat"
],