mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-06 23:51:15 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user