@yeaft/webchat-agent 1.0.669 → 1.0.670
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.670"}
|
package/package.json
CHANGED
|
@@ -667,7 +667,11 @@ export class OpenAIResponsesAdapter extends LLMAdapter {
|
|
|
667
667
|
}
|
|
668
668
|
if (!sawTerminalEvent) {
|
|
669
669
|
if (hasToolItems()) {
|
|
670
|
-
|
|
670
|
+
// Calls remain buffered until terminal validation, so clean EOF here
|
|
671
|
+
// is a transport failure, not proof of invalid tool input. Let the
|
|
672
|
+
// engine apply its bounded retry/continuation policy; known malformed
|
|
673
|
+
// batches above (and in catch) still fail closed without replay.
|
|
674
|
+
throw new LLMServerError('OpenAI tool stream ended before terminal event', 0);
|
|
671
675
|
}
|
|
672
676
|
throw new LLMServerError('OpenAI stream ended before terminal event', 0);
|
|
673
677
|
}
|