diff --git a/config/config.go b/config/config.go index 1408b516..88dcc92b 100644 --- a/config/config.go +++ b/config/config.go @@ -13,6 +13,7 @@ var ( Bind string ClientID string ClientSecret string + DoLLMResponse bool DomainRMO string DomainNidus string DomainTegola string @@ -82,6 +83,7 @@ func Parse() (err error) { if ClientSecret == "" { return fmt.Errorf("You must specify a non-empty ARCGIS_CLIENT_SECRET") } + DoLLMResponse = false DomainNidus = os.Getenv("DOMAIN_NIDUS") if DomainNidus == "" { return fmt.Errorf("You must specify a non-empty DOMAIN_NIDUS") diff --git a/platform/text/text.go b/platform/text/text.go index f800003c..eca07c4b 100644 --- a/platform/text/text.go +++ b/platform/text/text.go @@ -172,7 +172,9 @@ func respondText(ctx context.Context, log_id int32) error { return nil } // Otherwise let the LLM handle the response - //return respondTextLLM(ctx, *src) + if config.DoLLMResponse { + return respondTextLLM(ctx, *src) + } return nil }