@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/browser.cjs
CHANGED
|
@@ -3911,6 +3911,7 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
3911
3911
|
},
|
|
3912
3912
|
"response.output_text.done": (raw) => {
|
|
3913
3913
|
const data = JSON.parse(raw);
|
|
3914
|
+
text = data.text;
|
|
3914
3915
|
callbacks.onTextDone?.(data.text);
|
|
3915
3916
|
},
|
|
3916
3917
|
"response.output_item.done": (raw) => {
|
|
@@ -3928,6 +3929,11 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
3928
3929
|
metadata = meta;
|
|
3929
3930
|
callbacks.onMetadata?.(meta);
|
|
3930
3931
|
}
|
|
3932
|
+
const finalText = data.response?.metadata?.content;
|
|
3933
|
+
if (finalText) {
|
|
3934
|
+
text = finalText;
|
|
3935
|
+
callbacks.onTextDone?.(finalText);
|
|
3936
|
+
}
|
|
3931
3937
|
if (data.context) {
|
|
3932
3938
|
context = data.context;
|
|
3933
3939
|
}
|