Hide LLM responses behind a config flag
Some checks failed
/ golint (push) Has been cancelled

...that we never use. I'm just turning it off for now, but I want the
linter to think it could be live at any moment.
This commit is contained in:
Eli Ribble 2026-05-19 15:11:16 +00:00
parent 71463433e7
commit e2bd38d665
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -13,6 +13,7 @@ var (
Bind string Bind string
ClientID string ClientID string
ClientSecret string ClientSecret string
DoLLMResponse bool
DomainRMO string DomainRMO string
DomainNidus string DomainNidus string
DomainTegola string DomainTegola string
@ -82,6 +83,7 @@ func Parse() (err error) {
if ClientSecret == "" { if ClientSecret == "" {
return fmt.Errorf("You must specify a non-empty ARCGIS_CLIENT_SECRET") return fmt.Errorf("You must specify a non-empty ARCGIS_CLIENT_SECRET")
} }
DoLLMResponse = false
DomainNidus = os.Getenv("DOMAIN_NIDUS") DomainNidus = os.Getenv("DOMAIN_NIDUS")
if DomainNidus == "" { if DomainNidus == "" {
return fmt.Errorf("You must specify a non-empty DOMAIN_NIDUS") return fmt.Errorf("You must specify a non-empty DOMAIN_NIDUS")

View file

@ -172,7 +172,9 @@ func respondText(ctx context.Context, log_id int32) error {
return nil return nil
} }
// Otherwise let the LLM handle the response // Otherwise let the LLM handle the response
//return respondTextLLM(ctx, *src) if config.DoLLMResponse {
return respondTextLLM(ctx, *src)
}
return nil return nil
} }