@arbidocs/sdk 0.3.131 → 0.3.132
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/dist/browser.cjs +6 -0
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +6 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4312,6 +4312,7 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4312
4312
|
},
|
|
4313
4313
|
"response.output_text.done": (raw) => {
|
|
4314
4314
|
const data = JSON.parse(raw);
|
|
4315
|
+
text = data.text;
|
|
4315
4316
|
callbacks.onTextDone?.(data.text);
|
|
4316
4317
|
},
|
|
4317
4318
|
"response.output_item.done": (raw) => {
|
|
@@ -4329,6 +4330,11 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
4329
4330
|
metadata = meta;
|
|
4330
4331
|
callbacks.onMetadata?.(meta);
|
|
4331
4332
|
}
|
|
4333
|
+
const finalText = data.response?.metadata?.content;
|
|
4334
|
+
if (finalText) {
|
|
4335
|
+
text = finalText;
|
|
4336
|
+
callbacks.onTextDone?.(finalText);
|
|
4337
|
+
}
|
|
4332
4338
|
if (data.context) {
|
|
4333
4339
|
context = data.context;
|
|
4334
4340
|
}
|