Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(evals): pass resolved model params to template validation (#14507)

Hassieb Pakzad72a8ab102785
diff --git a/web/src/features/evals/server/evalTemplateCreation.ts b/web/src/features/evals/server/evalTemplateCreation.ts
index 50d1bb6df8..c07f8c22db 100644
--- a/web/src/features/evals/server/evalTemplateCreation.ts
+++ b/web/src/features/evals/server/evalTemplateCreation.ts
@@ -110,7 +110,7 @@ async function validateLlmAsJudgeTemplateModel(
provider: modelConfig.config.provider,
model: modelConfig.config.model,
apiKey: modelConfig.config.apiKey,
- modelConfig: input.modelParams,
+ modelConfig: modelConfig.config.modelParams,
structuredOutputSchema: compilePersistedEvalOutputDefinition(
input.outputDefinition,
).outputResultSchema,