Skip to content

Commit

Permalink
fix: promptfoo test cases build error
Browse files Browse the repository at this point in the history
  • Loading branch information
VisargD committed Jan 14, 2025
1 parent 59fa04f commit b150283
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions plugins/promptfoo/guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { GuardResult, PromptfooResult } from './types';
export const handler: PluginHandler = async (
context: PluginContext,
parameters: PluginParameters,
eventType: HookEventType,
options: { env: Record<string, any> }
eventType: HookEventType
) => {
let error = null;
let verdict = true;
Expand Down
3 changes: 1 addition & 2 deletions plugins/promptfoo/harm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { HarmResult, PromptfooResult } from './types';
export const handler: PluginHandler = async (
context: PluginContext,
parameters: PluginParameters,
eventType: HookEventType,
options: { env: Record<string, any> }
eventType: HookEventType
) => {
let error = null;
let verdict = true;
Expand Down
3 changes: 1 addition & 2 deletions plugins/promptfoo/pii.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import { PIIResult, PromptfooResult } from './types';
export const handler: PluginHandler = async (
context: PluginContext,
parameters: PluginParameters,
eventType: HookEventType,
options: { env: Record<string, any> }
eventType: HookEventType
) => {
let error = null;
let verdict = true;
Expand Down

0 comments on commit b150283

Please sign in to comment.