From 8a1e01dd03e6972f71009333fb259698207bf261 Mon Sep 17 00:00:00 2001 From: Mahesh Date: Tue, 17 Dec 2024 19:08:09 +0530 Subject: [PATCH] fix: review commits --- plugins/mistral/index.ts | 2 +- plugins/mistral/{mistra.test.ts => mistral.test.ts} | 0 plugins/types.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename plugins/mistral/{mistra.test.ts => mistral.test.ts} (100%) diff --git a/plugins/mistral/index.ts b/plugins/mistral/index.ts index b73d4f13..aca5c979 100644 --- a/plugins/mistral/index.ts +++ b/plugins/mistral/index.ts @@ -44,7 +44,7 @@ export const mistralGuardrailHandler: PluginHandler = async ( parameters: PluginParameters, eventType: HookEventType, _options, - fn: string + fn?: string ) => { let error = null; let verdict = true; diff --git a/plugins/mistral/mistra.test.ts b/plugins/mistral/mistral.test.ts similarity index 100% rename from plugins/mistral/mistra.test.ts rename to plugins/mistral/mistral.test.ts diff --git a/plugins/types.ts b/plugins/types.ts index 0c1f02f1..75e1a102 100644 --- a/plugins/types.ts +++ b/plugins/types.ts @@ -26,5 +26,5 @@ export type PluginHandler = ( env: Record; }, // Handler function, useful in cases for a provider with multiple guardrails ex: mistral - fn: string + fn?: string ) => Promise;