190proof 1.0.28 → 1.0.29
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31702,8 +31702,8 @@ async function callOpenAIStream(identifier, openAiPayload, openAiConfig, chunkTi
|
|
|
31702
31702
|
continue;
|
|
31703
31703
|
}
|
|
31704
31704
|
const toolCall = (_a3 = json.choices[0].tool_calls) == null ? void 0 : _a3[0];
|
|
31705
|
-
if ((toolCall == null ? void 0 : toolCall.index) === 0) {
|
|
31706
|
-
const dFn = toolCall
|
|
31705
|
+
if ((toolCall == null ? void 0 : toolCall.index) !== void 0 && toolCall.index === 0) {
|
|
31706
|
+
const dFn = toolCall.function;
|
|
31707
31707
|
if (dFn.name)
|
|
31708
31708
|
functionCallName += dFn.name;
|
|
31709
31709
|
if (dFn.arguments)
|