Skip to content

Commit 85cf38c

Browse files
committed
Evals fixes
1 parent c481827 commit 85cf38c

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

packages/evals/src/cli/runTask.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ export const runTask = async ({ run, task, publish, logger }: RunTaskOptions) =>
294294
data: {
295295
configuration: {
296296
...EVALS_SETTINGS,
297-
...run.settings,
298297
openRouterApiKey: process.env.OPENROUTER_API_KEY,
298+
...run.settings, // Allow the provided settings to override `openRouterApiKey`.
299299
},
300300
text: prompt,
301301
newTab: true,

packages/types/src/experiment.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ import type { Keys, Equals, AssertEqual } from "./type-fu.js"
66
* ExperimentId
77
*/
88

9-
export const experimentIds = ["powerSteering", "concurrentFileReads", "disableCompletionCommand", "marketplace", "multiFileApplyDiff"] as const
9+
export const experimentIds = [
10+
"powerSteering",
11+
"concurrentFileReads",
12+
"disableCompletionCommand",
13+
"marketplace",
14+
"multiFileApplyDiff",
15+
] as const
1016

1117
export const experimentIdsSchema = z.enum(experimentIds)
1218

@@ -17,11 +23,11 @@ export type ExperimentId = z.infer<typeof experimentIdsSchema>
1723
*/
1824

1925
export const experimentsSchema = z.object({
20-
powerSteering: z.boolean(),
21-
marketplace: z.boolean(),
22-
concurrentFileReads: z.boolean(),
23-
disableCompletionCommand: z.boolean(),
24-
multiFileApplyDiff: z.boolean(),
26+
powerSteering: z.boolean().optional(),
27+
concurrentFileReads: z.boolean().optional(),
28+
disableCompletionCommand: z.boolean().optional(),
29+
marketplace: z.boolean().optional(),
30+
multiFileApplyDiff: z.boolean().optional(),
2531
})
2632

2733
export type Experiments = z.infer<typeof experimentsSchema>

0 commit comments

Comments
 (0)