Skip to content

Commit 68eaa44

Browse files
committed
fix: types fix
fixed the typing for eval
1 parent 1ee452a commit 68eaa44

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ export class Qualifire {
7676
promptInjections = false,
7777
sexualContentCheck = false,
7878
}: {
79-
input: Input;
80-
output: Output;
81-
assertions: string[];
82-
consistencyCheck: boolean;
83-
dangerousContentCheck: boolean;
84-
hallucinationsCheck: boolean;
85-
harassmentCheck: boolean;
86-
hateSpeechCheck: boolean;
87-
piiCheck: boolean;
88-
promptInjections: boolean;
89-
sexualContentCheck: boolean;
79+
input: string;
80+
output: string;
81+
assertions?: string[];
82+
consistencyCheck?: boolean;
83+
dangerousContentCheck?: boolean;
84+
hallucinationsCheck?: boolean;
85+
harassmentCheck?: boolean;
86+
hateSpeechCheck?: boolean;
87+
piiCheck?: boolean;
88+
promptInjections?: boolean;
89+
sexualContentCheck?: boolean;
9090
}): Promise<EvaluationResponse | undefined> => {
9191
const url = `${this.baseUrl}/api/evaluation/evaluate`;
9292
const body = JSON.stringify({

0 commit comments

Comments
 (0)