190proof 1.0.4 → 1.0.5
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -31427,11 +31427,15 @@ function parseStreamedResponse(identifier, paragraph, functionCallName, function
|
|
|
31427
31427
|
"Stream error: received function call with unknown name: " + functionCallName
|
|
31428
31428
|
);
|
|
31429
31429
|
}
|
|
31430
|
-
|
|
31431
|
-
|
|
31432
|
-
|
|
31433
|
-
|
|
31434
|
-
|
|
31430
|
+
try {
|
|
31431
|
+
functionCall = {
|
|
31432
|
+
name: functionCallName,
|
|
31433
|
+
arguments: JSON.parse(functionCallArgs)
|
|
31434
|
+
};
|
|
31435
|
+
} catch (error) {
|
|
31436
|
+
console.error("Error parsing functionCallArgs:", functionCallArgs);
|
|
31437
|
+
throw error;
|
|
31438
|
+
}
|
|
31435
31439
|
}
|
|
31436
31440
|
if (!paragraph && !functionCall) {
|
|
31437
31441
|
console.error(
|