ai-speedometer-headless 2.3.2 → 2.3.3
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.
|
@@ -1681,7 +1681,6 @@ async function benchmarkSingleModelRest(model, logger) {
|
|
|
1681
1681
|
model: actualModelId,
|
|
1682
1682
|
messages: [...systemMessages, userMessage],
|
|
1683
1683
|
max_tokens: 500,
|
|
1684
|
-
temperature: 0.7,
|
|
1685
1684
|
stream: true,
|
|
1686
1685
|
stream_options: { include_usage: true },
|
|
1687
1686
|
tools,
|
|
@@ -1692,7 +1691,7 @@ async function benchmarkSingleModelRest(model, logger) {
|
|
|
1692
1691
|
{ parts: systemMessages.map((m) => ({ text: m.content })) },
|
|
1693
1692
|
{ parts: [{ text: userMessage.content }] }
|
|
1694
1693
|
];
|
|
1695
|
-
body["generationConfig"] = { maxOutputTokens: 500
|
|
1694
|
+
body["generationConfig"] = { maxOutputTokens: 500 };
|
|
1696
1695
|
delete body["messages"];
|
|
1697
1696
|
delete body["max_tokens"];
|
|
1698
1697
|
delete body["stream"];
|
|
@@ -1701,6 +1700,7 @@ async function benchmarkSingleModelRest(model, logger) {
|
|
|
1701
1700
|
delete body["tool_choice"];
|
|
1702
1701
|
} else if (model.providerType === "anthropic") {
|
|
1703
1702
|
delete body["stream_options"];
|
|
1703
|
+
body["tool_choice"] = { type: "auto" };
|
|
1704
1704
|
body["system"] = systemMessages.map((m) => m.content).join(`
|
|
1705
1705
|
|
|
1706
1706
|
`);
|
package/package.json
CHANGED