190proof 1.0.28 → 1.0.30
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 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31702,7 +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
|
-
|
|
31705
|
+
const toolCallIndex = (toolCall == null ? void 0 : toolCall.index) || 0;
|
|
31706
|
+
if (toolCallIndex === 0) {
|
|
31706
31707
|
const dFn = toolCall == null ? void 0 : toolCall.function;
|
|
31707
31708
|
if (dFn.name)
|
|
31708
31709
|
functionCallName += dFn.name;
|