190proof 1.0.27 → 1.0.28

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 CHANGED
@@ -31702,11 +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 && toolCall.index !== 0) {
31706
- continue;
31707
- }
31708
- const dFn = toolCall == null ? void 0 : toolCall.function;
31709
- if (dFn) {
31705
+ if ((toolCall == null ? void 0 : toolCall.index) === 0) {
31706
+ const dFn = toolCall == null ? void 0 : toolCall.function;
31710
31707
  if (dFn.name)
31711
31708
  functionCallName += dFn.name;
31712
31709
  if (dFn.arguments)