Skip to content

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

fix(evals): allow creating new evaluators for haiku 4.5 (#11100)

Hassieb Pakzad15da0142be27
diff --git a/packages/shared/src/server/llm/testModelCall.ts b/packages/shared/src/server/llm/testModelCall.ts
index 079585648b..ce0fd37bb6 100644
--- a/packages/shared/src/server/llm/testModelCall.ts
+++ b/packages/shared/src/server/llm/testModelCall.ts
@@ -12,13 +12,11 @@ export const testModelCall = async ({
provider,
model,
apiKey,
- prompt,
modelConfig,
}: {
provider: string;
model: string;
apiKey: z.infer<typeof LLMApiKeySchema>;
- prompt?: string;
modelConfig?: ModelConfig | null;
}) => {
await fetchLLMCompletion({
@@ -28,7 +26,6 @@ export const testModelCall = async ({
{
role: ChatMessageRole.User,
content:
- prompt ??
'Extract a score (1-5) and reasoning from this text: "This is a test. It worked perfectly because it matched all passing criteria."',
type: ChatMessageType.User,
},
diff --git a/web/src/features/evals/server/router.ts b/web/src/features/evals/server/router.ts
index ded8f4de39..4036cbee39 100644
--- a/web/src/features/evals/server/router.ts
+++ b/web/src/features/evals/server/router.ts
@@ -789,7 +789,6 @@ export const evalRouter = createTRPCRouter({
model: modelConfig.config.model,
apiKey: modelConfig.config.apiKey,
modelConfig: input.modelParams,
- prompt: input.prompt,
});
} catch (err) {
const message = err instanceof Error ? err.message : "Unknown error";