@aliou/pi-synthetic 0.17.2 → 0.17.3
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.
package/package.json
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* 1. "Error from inference backend: 400 The input (N tokens) is longer
|
|
16
16
|
* than the model's context length (M tokens)."
|
|
17
17
|
* 2. "Context limit exceeded"
|
|
18
|
+
* 3. "Error from inference backend: 400 status code (no body)"
|
|
19
|
+
* — some backends return a bare 400 when the context is too long.
|
|
18
20
|
*/
|
|
19
21
|
export const SYNTHETIC_OVERFLOW_PATTERN =
|
|
20
|
-
/input \(\d+ tokens\) is longer than the model's context length|Context limit exceeded/i;
|
|
22
|
+
/input \(\d+ tokens\) is longer than the model's context length|Context limit exceeded|400 status code \(no body\)/i;
|