feat: update all_models.json to content_length + max_output (#17839)

## Summary

Update `conf/all_models.json`: replace legacy `max_tokens` with
`content_length` + `max_output` for all 2,178 chat/vision models, with
values verified against official vendor documentation.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jay77721
2026-08-05 15:43:11 +08:00
committed by GitHub
parent 47ecc2a231
commit 40ff1c9d03
3 changed files with 6730 additions and 3819 deletions

View File

@@ -210,9 +210,9 @@ func TestGiteeListModelsKeepsModelNameAfterAliasMetadataLookup(t *testing.T) {
if model.Name != "deepseek/deepseek-v4-pro" {
t.Fatalf("Name=%q, want deepseek/deepseek-v4-pro", model.Name)
}
//if model.MaxOutput == nil || *model.MaxOutput != 1048576 {
// t.Fatalf("MaxOutput=%v, want 1048576", *model.MaxOutput)
//}
if model.MaxOutput == nil || *model.MaxOutput != 393216 {
t.Fatalf("MaxOutput=%v, want 393216", model.MaxOutput)
}
if len(model.ModelTypes) != 1 || model.ModelTypes[0] != "chat" {
t.Fatalf("ModelTypes=%v, want [chat]", model.ModelTypes)
}