botinabox 2.3.0 → 2.3.1
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 +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6107,6 +6107,7 @@ ${systemContext}` : "",
|
|
|
6107
6107
|
};
|
|
6108
6108
|
if (toolDefs.length > 0) {
|
|
6109
6109
|
createParams.tools = toolDefs;
|
|
6110
|
+
createParams.tool_choice = i === 0 ? { type: "any" } : { type: "auto" };
|
|
6110
6111
|
}
|
|
6111
6112
|
const response = await config.client.messages.create(createParams);
|
|
6112
6113
|
totalInput += response.usage.input_tokens;
|