scalemax 0.1.55 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,9 +24,12 @@ function providerConfig(ctx) {
|
|
|
24
24
|
tool_call: modelSupportsTools(ctx, modelId),
|
|
25
25
|
limit: {
|
|
26
26
|
context: metadata?.context_window || (modelId.startsWith('claude-') ? 200000 : 128000),
|
|
27
|
+
// The catalog's own output cap. A flat 4096 for every non-Opus model
|
|
28
|
+
// cut DeepSeek V4.1 Flash (393k) replies off at 4k in OpenCode; the
|
|
29
|
+
// gateway enforces the catalog figure, so publishing it is safe.
|
|
27
30
|
output: hasLargeOutputCap(modelId)
|
|
28
31
|
? Math.min(metadata?.max_output_tokens || 128000, 128000)
|
|
29
|
-
:
|
|
32
|
+
: metadata?.max_output_tokens || 4096
|
|
30
33
|
}
|
|
31
34
|
}];
|
|
32
35
|
}));
|