@wix/evalforge-evaluator 0.108.0 → 0.110.0
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/build/index.js +3 -3
- package/build/index.js.map +2 -2
- package/build/index.mjs +3 -3
- package/build/index.mjs.map +2 -2
- package/package.json +4 -4
package/build/index.mjs
CHANGED
|
@@ -2681,6 +2681,7 @@ var ClaudeCodeAdapter = class {
|
|
|
2681
2681
|
model: modelForSdk,
|
|
2682
2682
|
temperature: modelConfig?.temperature,
|
|
2683
2683
|
maxTokens: modelConfig?.maxTokens,
|
|
2684
|
+
maxTurns: modelConfig?.maxTurns,
|
|
2684
2685
|
aiGatewayUrl,
|
|
2685
2686
|
aiGatewayHeaders,
|
|
2686
2687
|
traceContext,
|
|
@@ -42718,7 +42719,6 @@ var MODEL_PRICING = {
|
|
|
42718
42719
|
CLAUDE_4_OPUS_1_0: { input: 15, output: 75 },
|
|
42719
42720
|
CLAUDE_4_SONNET_1_0: { input: 3, output: 15 },
|
|
42720
42721
|
// Anthropic — Claude 3.x
|
|
42721
|
-
CLAUDE_3_7_SONNET_1_0: { input: 3, output: 15 },
|
|
42722
42722
|
CLAUDE_3_5_SONNET_2_0: { input: 3, output: 15 },
|
|
42723
42723
|
CLAUDE_3_5_SONNET_1_0: { input: 3, output: 15 },
|
|
42724
42724
|
CLAUDE_3_HAIKU_1_0: { input: 0.25, output: 1.25 },
|
|
@@ -42836,7 +42836,7 @@ function estimateStepTimestamp(startMs, stepIndex, totalSteps) {
|
|
|
42836
42836
|
// src/run-scenario/agents/simple-agent/execute.ts
|
|
42837
42837
|
var PROVIDER_ANTHROPIC2 = "anthropic";
|
|
42838
42838
|
var PROVIDER_OPENAI = "openai";
|
|
42839
|
-
var
|
|
42839
|
+
var DEFAULT_MAX_TOOL_STEPS = 25;
|
|
42840
42840
|
function createModel(modelId, baseUrl, headers) {
|
|
42841
42841
|
const isClaudeModel = AVAILABLE_CLAUDE_MODEL_IDS.includes(
|
|
42842
42842
|
modelId
|
|
@@ -42919,7 +42919,7 @@ async function executeWithAiSdk(context2) {
|
|
|
42919
42919
|
temperature: supportsThinking ? void 0 : modelConfig.temperature,
|
|
42920
42920
|
maxOutputTokens: modelConfig.maxTokens,
|
|
42921
42921
|
tools: mcpTools,
|
|
42922
|
-
stopWhen: mcpTools ? stepCountIs(
|
|
42922
|
+
stopWhen: mcpTools ? stepCountIs(modelConfig.maxTurns ?? DEFAULT_MAX_TOOL_STEPS) : stepCountIs(1),
|
|
42923
42923
|
providerOptions: providerOpts
|
|
42924
42924
|
});
|
|
42925
42925
|
const durationMs = Date.now() - startTime;
|