190proof 1.0.4 → 1.0.6
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27028,6 +27028,7 @@ var GPTModel = /* @__PURE__ */ ((GPTModel2) => {
|
|
|
27028
27028
|
GPTModel2["GPT35_0125"] = "gpt-3.5-turbo-0125";
|
|
27029
27029
|
GPTModel2["GPT4_1106_PREVIEW"] = "gpt-4-1106-preview";
|
|
27030
27030
|
GPTModel2["GPT4_0125_PREVIEW"] = "gpt-4-0125-preview";
|
|
27031
|
+
GPTModel2["GPT4_0409"] = "gpt-4-turbo-2024-04-09";
|
|
27031
27032
|
return GPTModel2;
|
|
27032
27033
|
})(GPTModel || {});
|
|
27033
27034
|
var GroqModel = /* @__PURE__ */ ((GroqModel2) => {
|
|
@@ -31427,11 +31428,15 @@ function parseStreamedResponse(identifier, paragraph, functionCallName, function
|
|
|
31427
31428
|
"Stream error: received function call with unknown name: " + functionCallName
|
|
31428
31429
|
);
|
|
31429
31430
|
}
|
|
31430
|
-
|
|
31431
|
-
|
|
31432
|
-
|
|
31433
|
-
|
|
31434
|
-
|
|
31431
|
+
try {
|
|
31432
|
+
functionCall = {
|
|
31433
|
+
name: functionCallName,
|
|
31434
|
+
arguments: JSON.parse(functionCallArgs)
|
|
31435
|
+
};
|
|
31436
|
+
} catch (error) {
|
|
31437
|
+
console.error("Error parsing functionCallArgs:", functionCallArgs);
|
|
31438
|
+
throw error;
|
|
31439
|
+
}
|
|
31435
31440
|
}
|
|
31436
31441
|
if (!paragraph && !functionCall) {
|
|
31437
31442
|
console.error(
|