From d371a803c63837859a4003fec8eb5c3f0a1986b9 Mon Sep 17 00:00:00 2001 From: krichard1212 Date: Wed, 20 Nov 2024 12:31:52 +0100 Subject: [PATCH] fix --- lib/config.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/config.go b/lib/config.go index fa628ed..09fc910 100644 --- a/lib/config.go +++ b/lib/config.go @@ -33,11 +33,14 @@ type Providers struct { } type Services struct { - LlamaGuard *ServiceLlamaGuard `mapstructure:"llamaguard"` + LlamaGuard *ServiceLlamaGuard `mapstructure:"llamaguard"` + PromptGuard *ServicePromptGuard `mapstructure:"promptguard"` } type ServiceLlamaGuard struct { - PromptGuard *ServicePromptGuard `mapstructure:"promptguard"` + Enabled bool `mapstructure:"enabled"` + BaseUrl string `mapstructure:"url"` } + type ServicePromptGuard struct { Enabled bool `mapstructure:"enabled"` BaseUrl string `mapstructure:"url"`